[Xfce4-commits] <xfce4-settings:master> Attach start-interactive-search.

Nick Schermer noreply at xfce.org
Thu Jan 26 23:02:14 CET 2012


Updating branch refs/heads/master
         to ae73197178941104404773cd798a1b10a17ea7e7 (commit)
       from efa7a0abf3d166d1dc68ba3ee0187bfea3a06ebb (commit)

commit ae73197178941104404773cd798a1b10a17ea7e7
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Jan 26 20:06:27 2012 +0100

    Attach start-interactive-search.

 .../xfce-settings-manager-dialog.c                 |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/xfce4-settings-manager/xfce-settings-manager-dialog.c b/xfce4-settings-manager/xfce-settings-manager-dialog.c
index 45f4b9e..2c3c3fd 100644
--- a/xfce4-settings-manager/xfce-settings-manager-dialog.c
+++ b/xfce4-settings-manager/xfce-settings-manager-dialog.c
@@ -953,6 +953,16 @@ xfce_settings_manager_dialog_selection_changed (ExoIconView               *iconv
 
 
 
+static gboolean
+xfce_settings_manager_start_search (GtkWidget                 *iconview,
+                                    XfceSettingsManagerDialog *dialog)
+{
+    gtk_widget_grab_focus (dialog->filter_entry);
+    return TRUE;
+}
+
+
+
 static void
 xfce_settings_manager_dialog_category_free (gpointer data)
 {
@@ -1038,6 +1048,8 @@ xfce_settings_manager_dialog_add_category (XfceSettingsManagerDialog *dialog,
         G_CALLBACK (xfce_settings_manager_dialog_item_activated), dialog);
     g_signal_connect (G_OBJECT (iconview), "selection-changed",
         G_CALLBACK (xfce_settings_manager_dialog_selection_changed), dialog);
+    g_signal_connect (G_OBJECT (iconview), "start-interactive-search",
+        G_CALLBACK (xfce_settings_manager_start_search), dialog);
 
     render = gtk_cell_renderer_pixbuf_new ();
     gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (iconview), render, FALSE);


More information about the Xfce4-commits mailing list