Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added 'Find in Files' option to right click context (patch by oly, th…

  • Loading branch information...
commit ef7c27f0716b42d69378ad25b34862abbf85b75a 1 parent 6c5b933
@dimitrov-adrian dimitrov-adrian authored
Showing with 17 additions and 0 deletions.
  1. +6 −0 treebrowser/ChangeLog
  2. +11 −0 treebrowser/src/treebrowser.c
View
6 treebrowser/ChangeLog
@@ -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
View
11 treebrowser/src/treebrowser.c
@@ -975,6 +975,12 @@ on_menu_set_as_root(GtkMenuItem *menuitem, gchar *uri)
}
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 @@ create_popup_menu(gchar *name, gchar *uri)
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);
Please sign in to comment.
Something went wrong with that request. Please try again.