Add 'Show hidden files' checkbox in the popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1973 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
b8cdb9774a
commit
58243ee302
@ -13,6 +13,8 @@
|
||||
Use the current directory when there are no documents open.
|
||||
Add popup menu with Open command.
|
||||
Separate toolbar code from init().
|
||||
* plugins/filebrowser.c:
|
||||
Add 'Show hidden files' checkbox in the popup menu.
|
||||
|
||||
|
||||
2007-10-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -271,6 +271,13 @@ static void open_selected_files()
|
||||
}
|
||||
|
||||
|
||||
static void on_hidden_files_clicked(GtkCheckMenuItem *item)
|
||||
{
|
||||
show_hidden_files = gtk_check_menu_item_get_active(item);
|
||||
refresh();
|
||||
}
|
||||
|
||||
|
||||
static GtkWidget *create_popup_menu()
|
||||
{
|
||||
GtkWidget *item, *menu;
|
||||
@ -287,6 +294,16 @@ static GtkWidget *create_popup_menu()
|
||||
gtk_widget_show(item);
|
||||
gtk_container_add(GTK_CONTAINER(menu), item);
|
||||
|
||||
item = gtk_check_menu_item_new_with_mnemonic(_("Show _hidden files"));
|
||||
gtk_widget_show(item);
|
||||
gtk_container_add(GTK_CONTAINER(menu), item);
|
||||
g_signal_connect((gpointer) item, "activate",
|
||||
G_CALLBACK(on_hidden_files_clicked), NULL);
|
||||
|
||||
item = gtk_separator_menu_item_new();
|
||||
gtk_widget_show(item);
|
||||
gtk_container_add(GTK_CONTAINER(menu), item);
|
||||
|
||||
item = gtk_image_menu_item_new_with_mnemonic(_("H_ide sidebar"));
|
||||
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item),
|
||||
gtk_image_new_from_stock("gtk-close", GTK_ICON_SIZE_MENU));
|
||||
|
Loading…
x
Reference in New Issue
Block a user