summaryrefslogtreecommitdiff
path: root/src/caja-search-bar.c
diff options
context:
space:
mode:
author张雯 <[email protected]>2018-02-13 15:06:07 +0800
committerlukefromdc <[email protected]>2018-02-22 21:01:07 -0500
commit012d9f86e046cfbffd4d2d4e55633d250ec90dd7 (patch)
tree29f5e88df11dabc151fa98a389bf64f2f0a75a27 /src/caja-search-bar.c
parent54a9de15cde0302ee1d624176279a5d3dd2e4951 (diff)
downloadcaja-012d9f86e046cfbffd4d2d4e55633d250ec90dd7.tar.bz2
caja-012d9f86e046cfbffd4d2d4e55633d250ec90dd7.tar.xz
can selected all the search keywords with Ctrl+a. #918
Diffstat (limited to 'src/caja-search-bar.c')
-rw-r--r--src/caja-search-bar.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/caja-search-bar.c b/src/caja-search-bar.c
index af0531ea..6c5d221a 100644
--- a/src/caja-search-bar.c
+++ b/src/caja-search-bar.c
@@ -28,6 +28,7 @@
#include <eel/eel-gtk-macros.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
+#include <libcaja-private/caja-clipboard.h>
struct CajaSearchBarDetails
{
@@ -212,11 +213,19 @@ caja_search_bar_return_entry (CajaSearchBar *bar)
}
GtkWidget *
-caja_search_bar_new (void)
+caja_search_bar_new (CajaWindow *window)
{
GtkWidget *bar;
+ CajaSearchBar *search_bar;
bar = g_object_new (CAJA_TYPE_SEARCH_BAR, NULL);
+ search_bar = CAJA_SEARCH_BAR(bar);
+
+ /* Clipboard */
+ caja_clipboard_set_up_editable
+ (GTK_EDITABLE (search_bar->details->entry),
+ caja_window_get_ui_manager (window),
+ TRUE);
return bar;
}