[gtk+/places-sidebar] Ahem, read radio menu items like I knew how to do it
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/places-sidebar] Ahem, read radio menu items like I knew how to do it
- Date: Tue, 27 Nov 2012 02:45:57 +0000 (UTC)
commit c16654bb75d0c872861c1f6fcab3d9408783ee72
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Nov 26 20:43:23 2012 -0600
Ahem, read radio menu items like I knew how to do it
Signed-off-by: Federico Mena Quintero <federico gnome org>
gtk/gtkplacessidebar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index b555b43..8df9d30 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -2930,9 +2930,9 @@ settings_start_in_changed_cb (GtkCheckMenuItem *item, GtkPlacesSidebar *sidebar)
StartupMode startup_mode;
GSettings *settings;
- if (item == GTK_CHECK_MENU_ITEM (sidebar->popup_menu_start_in_recent_item))
+ if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (sidebar->popup_menu_start_in_recent_item)))
startup_mode = STARTUP_MODE_RECENT;
- else if (item == GTK_CHECK_MENU_ITEM (sidebar->popup_menu_start_in_cwd_item))
+ else if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (sidebar->popup_menu_start_in_cwd_item)))
startup_mode = STARTUP_MODE_CWD;
else {
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]