Skip to content
Permalink
Browse files

can selected all the search keywords with Ctrl+a.

Fixes #918
  • Loading branch information...
zhangwen2 authored and raveit65 committed Feb 13, 2018
1 parent fcbee7f commit d8856945be447589fb4d01882a8befcf04582ebe
Showing with 13 additions and 3 deletions.
  1. +1 −1 src/caja-navigation-window-pane.c
  2. +10 −1 src/caja-search-bar.c
  3. +2 −1 src/caja-search-bar.h
@@ -784,7 +784,7 @@ caja_navigation_window_pane_setup (CajaNavigationWindowPane *pane)
pane->navigation_bar,
TRUE, TRUE, 0);

pane->search_bar = caja_search_bar_new ();
pane->search_bar = caja_search_bar_new (CAJA_WINDOW_PANE (pane)->window);
g_signal_connect_object (pane->search_bar, "activate",
G_CALLBACK (search_bar_activate_callback), pane, 0);
g_signal_connect_object (pane->search_bar, "cancel",
@@ -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;
}
@@ -26,6 +26,7 @@

#include <gtk/gtk.h>
#include <libcaja-private/caja-query.h>
#include "caja-window.h"

#define CAJA_TYPE_SEARCH_BAR caja_search_bar_get_type()
#define CAJA_SEARCH_BAR(obj) \
@@ -57,7 +58,7 @@ typedef struct
} CajaSearchBarClass;

GType caja_search_bar_get_type (void);
GtkWidget* caja_search_bar_new (void);
GtkWidget* caja_search_bar_new (CajaWindow *window);

GtkWidget * caja_search_bar_borrow_entry (CajaSearchBar *bar);
void caja_search_bar_return_entry (CajaSearchBar *bar);

0 comments on commit d885694

Please sign in to comment.
You can’t perform that action at this time.