From f5b61ba409db5976bcc5be71accaac57ea88fcd0 Mon Sep 17 00:00:00 2001
From: Jasmine Hassan <jasmine.aura@gmail.com>
Date: Thu, 18 Oct 2012 11:21:40 +0200
Subject: [places-sidebar] use gtk_widget_set_visible() instead of the eel
 helper

http://git.gnome.org/browse/nautilus/commit/?id=bb145a018a9d66b748971e40be4e09a7f843b2be
---
 src/caja-places-sidebar.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'src')

diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index a6b3f022..7b188152 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -1764,16 +1764,16 @@ bookmarks_check_popup_sensitivity (CajaPlacesSidebar *sidebar)
     show_empty_trash = (uri != NULL) &&
                        (!strcmp (uri, "trash:///"));
 
-    eel_gtk_widget_set_shown (sidebar->popup_menu_separator_item,
+    gtk_widget_set_visible (sidebar->popup_menu_separator_item,
                               show_mount || show_unmount || show_eject || show_format || show_empty_trash);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_mount_item, show_mount);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_unmount_item, show_unmount);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_eject_item, show_eject);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_rescan_item, show_rescan);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_format_item, show_format);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_start_item, show_start);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_stop_item, show_stop);
-    eel_gtk_widget_set_shown (sidebar->popup_menu_empty_trash_item, show_empty_trash);
+    gtk_widget_set_visible (sidebar->popup_menu_mount_item, show_mount);
+    gtk_widget_set_visible (sidebar->popup_menu_unmount_item, show_unmount);
+    gtk_widget_set_visible (sidebar->popup_menu_eject_item, show_eject);
+    gtk_widget_set_visible (sidebar->popup_menu_rescan_item, show_rescan);
+    gtk_widget_set_visible (sidebar->popup_menu_format_item, show_format);
+    gtk_widget_set_visible (sidebar->popup_menu_start_item, show_start);
+    gtk_widget_set_visible (sidebar->popup_menu_stop_item, show_stop);
+    gtk_widget_set_visible (sidebar->popup_menu_empty_trash_item, show_empty_trash);
 
     /* Adjust start/stop items to reflect the type of the drive */
     gtk_menu_item_set_label (GTK_MENU_ITEM (sidebar->popup_menu_start_item), _("_Start"));
-- 
cgit v1.2.1