forked from AuroraMiddleware/gtk
Fix 'Add to bookmarks' initial sensitivity
Make sure that we always call bookmarks_check_add_sensitivity() at least once before popping up a newly created menu. Fixes bug 585858.
This commit is contained in:
parent
05cef0731f
commit
823151ba8c
@ -4313,7 +4313,6 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl)
|
||||
impl->browse_files_popup_menu_add_shortcut_item = item;
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item),
|
||||
gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_MENU));
|
||||
gtk_widget_set_sensitive (item, FALSE);
|
||||
g_signal_connect (item, "activate",
|
||||
G_CALLBACK (add_to_shortcuts_cb), impl);
|
||||
gtk_widget_show (item);
|
||||
@ -4336,6 +4335,8 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl)
|
||||
G_CALLBACK (show_size_column_toggled_cb), impl);
|
||||
gtk_widget_show (item);
|
||||
gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item);
|
||||
|
||||
bookmarks_check_add_sensitivity (impl);
|
||||
}
|
||||
|
||||
/* Updates the popup menu for the file list, creating it if necessary */
|
||||
|
Loading…
Reference in New Issue
Block a user