Revision: 1973 http://geany.svn.sourceforge.net/geany/?rev=1973&view=rev Author: ntrel Date: 2007-10-24 04:15:00 -0700 (Wed, 24 Oct 2007)
Log Message: ----------- Add 'Show hidden files' checkbox in the popup menu.
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/filebrowser.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-10-24 11:02:43 UTC (rev 1972) +++ trunk/ChangeLog 2007-10-24 11:15:00 UTC (rev 1973) @@ -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>
Modified: trunk/plugins/filebrowser.c =================================================================== --- trunk/plugins/filebrowser.c 2007-10-24 11:02:43 UTC (rev 1972) +++ trunk/plugins/filebrowser.c 2007-10-24 11:15:00 UTC (rev 1973) @@ -271,6 +271,13 @@ }
+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 @@ 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));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.