summaryrefslogtreecommitdiff
path: root/src/caja-search-bar.c
diff options
context:
space:
mode:
author张雯 <[email protected]>2018-02-13 15:06:07 +0800
committermonsta <[email protected]>2018-03-20 13:21:47 +0300
commit87d7bdb00281a8acb706d17e18a7e01a5ce67d3b (patch)
treeea3dcf3f2cef6db1f8a9c204758c7e1b0e57f56b /src/caja-search-bar.c
parent3eea173a327a86053ac671033408c95bd61ac5e4 (diff)
downloadcaja-87d7bdb00281a8acb706d17e18a7e01a5ce67d3b.tar.bz2
caja-87d7bdb00281a8acb706d17e18a7e01a5ce67d3b.tar.xz
allow selecting all the search keywords with Ctrl+A
(squashed 012d9f86e046cfbffd4d2d4e55633d250ec90dd7 + 01cec7e9f65985d5e16e54f0c5a64d4203f37474 for 1.18 branch)
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..a0867ffc 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),
+ FALSE);
return bar;
}