Fix a problem with context menu sensitivity

svn path=/trunk/; revision=20834
This commit is contained in:
Matthias Clasen 2008-07-15 05:57:39 +00:00
parent b0ac0f978e
commit ba3b08bc7b
2 changed files with 9 additions and 2 deletions

View File

@ -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

View 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