forked from AuroraMiddleware/gtk
Add an "Open _Location" item. Fixes #148839.
2005-01-06 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an "Open _Location" item. Fixes #148839.
This commit is contained in:
parent
ab3d7ad6e1
commit
74f4872211
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-06 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
|
||||||
|
"Open _Location" item. Fixes #148839.
|
||||||
|
|
||||||
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-06 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
|
||||||
|
"Open _Location" item. Fixes #148839.
|
||||||
|
|
||||||
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-06 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
|
||||||
|
"Open _Location" item. Fixes #148839.
|
||||||
|
|
||||||
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-06 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
|
||||||
|
"Open _Location" item. Fixes #148839.
|
||||||
|
|
||||||
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
2005-01-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
* README.in: Fix a typo. (#163128, kentaro fukuchi)
|
||||||
|
@ -2962,6 +2962,14 @@ add_to_shortcuts_cb (GtkMenuItem *item,
|
|||||||
bookmarks_add_selected_folder (impl);
|
bookmarks_add_selected_folder (impl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Callback used when the "Open Location" menu item is activated */
|
||||||
|
static void
|
||||||
|
open_location_cb (GtkMenuItem *item,
|
||||||
|
GtkFileChooserDefault *impl)
|
||||||
|
{
|
||||||
|
location_popup_handler (impl, "");
|
||||||
|
}
|
||||||
|
|
||||||
/* Callback used when the "Show Hidden Files" menu item is toggled */
|
/* Callback used when the "Show Hidden Files" menu item is toggled */
|
||||||
static void
|
static void
|
||||||
show_hidden_toggled_cb (GtkCheckMenuItem *item,
|
show_hidden_toggled_cb (GtkCheckMenuItem *item,
|
||||||
@ -2996,6 +3004,14 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl)
|
|||||||
gtk_widget_show (item);
|
gtk_widget_show (item);
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item);
|
gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item);
|
||||||
|
|
||||||
|
item = gtk_image_menu_item_new_with_mnemonic (_("Open _Location"));
|
||||||
|
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item),
|
||||||
|
gtk_image_new_from_stock (GTK_STOCK_OPEN, GTK_ICON_SIZE_MENU));
|
||||||
|
g_signal_connect (item, "activate",
|
||||||
|
G_CALLBACK (open_location_cb), impl);
|
||||||
|
gtk_widget_show (item);
|
||||||
|
gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item);
|
||||||
|
|
||||||
item = gtk_separator_menu_item_new ();
|
item = gtk_separator_menu_item_new ();
|
||||||
gtk_widget_show (item);
|
gtk_widget_show (item);
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item);
|
gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item);
|
||||||
|
Loading…
Reference in New Issue
Block a user