Revision: 1966 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1966&view=re... Author: dimitrov-adrian Date: 2011-03-08 20:03:34 +0000 (Tue, 08 Mar 2011)
Log Message: ----------- Added 'Find in Files' option to right click context (patch by oly, thanks)
Modified Paths: -------------- trunk/geany-plugins/treebrowser/ChangeLog trunk/geany-plugins/treebrowser/src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/ChangeLog =================================================================== --- trunk/geany-plugins/treebrowser/ChangeLog 2011-03-08 10:10:18 UTC (rev 1965) +++ trunk/geany-plugins/treebrowser/ChangeLog 2011-03-08 20:03:34 UTC (rev 1966) @@ -37,6 +37,12 @@ +-------------------------------+
+08-02-2011 Adrian Dimitrov dimitrov.adrian@gmail.com + + * src/treebrowser.c + Added "Find in Files" option to right click context + (patch by oly, thanks) + 23-02-2011 Adrian Dimitrov dimitrov.adrian@gmail.com
* src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c =================================================================== --- trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-03-08 10:10:18 UTC (rev 1965) +++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-03-08 20:03:34 UTC (rev 1966) @@ -975,6 +975,12 @@ }
static void +on_menu_find_in_files(GtkMenuItem *menuitem, gchar *uri) +{ + search_show_find_in_files_dialog(uri); +} + +static void on_menu_create_new_object(GtkMenuItem *menuitem, gchar *type) { GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); @@ -1201,6 +1207,11 @@ gtk_container_add(GTK_CONTAINER(menu), item); g_signal_connect(item, "activate", G_CALLBACK(on_menu_refresh), NULL);
+ item = ui_image_menu_item_new(GTK_STOCK_FIND, _("Find in Files")); + gtk_container_add(GTK_CONTAINER(menu), item); + g_signal_connect(item, "activate", G_CALLBACK(on_menu_find_in_files), uri); + gtk_widget_set_sensitive(item, is_dir); + item = gtk_separator_menu_item_new(); gtk_container_add(GTK_CONTAINER(menu), item);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org