]> Pileus Git - ~andy/gtk/commitdiff
Fix a problem with context menu sensitivity
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 15 Jul 2008 05:57:39 +0000 (05:57 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 15 Jul 2008 05:57:39 +0000 (05:57 +0000)
svn path=/trunk/; revision=20834

ChangeLog
gtk/gtkfilechooserdefault.c

index 11ee415dcf5298a1d21be1488f7ffdf9ca22a584..e7e0f0a75d0b82d9034b5452fdb3f4ec379bf70a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-15  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 479780 – Bookmarks in left pane of FileChooser cannot be renamed
+
+       * gtk/gtkfilechooserdefault.c (shortcuts_build_popup_menu):
+       Call shortcuts_check_popup_sensitivity() every time the
+       menu is popped up. Problem reported by Hong Jen Yee
+       
 2008-07-15  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 488766 – GtkFileChooserButton doesn't clear icon after
index c101492ed43e6a7a0a7294728af491b362b483e4..8a6f0975c5a1c4704cfbb4d4883bce3c62eb66a2 100644 (file)
@@ -3708,14 +3708,13 @@ shortcuts_build_popup_menu (GtkFileChooserDefault *impl)
                    G_CALLBACK (rename_shortcut_cb), impl);
   gtk_widget_show (item);
   gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_shortcuts_popup_menu), item);
-
-  shortcuts_check_popup_sensitivity (impl);
 }
 
 static void
 shortcuts_update_popup_menu (GtkFileChooserDefault *impl)
 {
   shortcuts_build_popup_menu (impl);  
+  shortcuts_check_popup_sensitivity (impl);
 }
 
 static void