aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-08-21 13:19:50 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-08-21 13:19:50 -0500
commit0f1f31d9925cbce92b176c0acc74e3a162450d5c (patch)
tree81268e54a499e361ee0899cc21c9abfc77f78e31
parente99fb9fae2845cf269d71bf197d35eeb69f29354 (diff)
downloadayatana-ido-0f1f31d9925cbce92b176c0acc74e3a162450d5c.tar.gz
ayatana-ido-0f1f31d9925cbce92b176c0acc74e3a162450d5c.tar.bz2
ayatana-ido-0f1f31d9925cbce92b176c0acc74e3a162450d5c.zip
comment tweaks
-rw-r--r--src/idoswitchmenuitem.c10
-rw-r--r--src/idoswitchmenuitem.h2
2 files changed, 8 insertions, 4 deletions
diff --git a/src/idoswitchmenuitem.c b/src/idoswitchmenuitem.c
index 451e27d..a85ecc6 100644
--- a/src/idoswitchmenuitem.c
+++ b/src/idoswitchmenuitem.c
@@ -1,4 +1,6 @@
/*
+ * A GtkCheckMenuItem that uses a GtkSwitch to show its 'active' property
+ *
* Copyright © 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
@@ -88,8 +90,8 @@ ido_switch_menu_item_init (IdoSwitchMenuItem *item)
}
/***
-**** Don't popdown immediately after clicking this...
-**** instead, wait a moment so the user can see the GtkSwitch be toggled.
+**** Don't popdown the menu immediately after clicking on a switch...
+**** wait a moment so the user can see the GtkSwitch be toggled.
***/
static gboolean
@@ -101,7 +103,7 @@ popdown_later_cb (gpointer widget)
gtk_menu_popdown (GTK_MENU(parent));
}
g_object_unref (widget);
- return FALSE;
+ return FALSE; /* only call this cb once */
}
static gboolean
@@ -109,7 +111,7 @@ ido_switch_menu_button_release_event (GtkWidget * widget, GdkEventButton * event
{
gtk_menu_item_activate (GTK_MENU_ITEM(widget));
g_timeout_add (500, popdown_later_cb, g_object_ref(widget));
- return TRUE; /* stop the event so that popdown() won't get called yet */
+ return TRUE; /* stop the event so that it doesn't trigger popdown() */
}
/***
diff --git a/src/idoswitchmenuitem.h b/src/idoswitchmenuitem.h
index a63ec72..7e7e2d2 100644
--- a/src/idoswitchmenuitem.h
+++ b/src/idoswitchmenuitem.h
@@ -1,4 +1,6 @@
/*
+ * A GtkCheckMenuItem that uses a GtkSwitch to show its 'active' property.
+ *
* Copyright © 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it