[Xfce4-commits] <xfce4-appfinder:master> Properly propagate the focus-in-event of the search entry (bug #5883).
Jannis Pohlmann
noreply at xfce.org
Sun Oct 18 15:24:05 CEST 2009
Updating branch refs/heads/master
to 8372af95f8df8f5d173ec9383d6089a04acb2ca4 (commit)
from 83b727938eac267cde46600c350ced3a871a51d9 (commit)
commit 8372af95f8df8f5d173ec9383d6089a04acb2ca4
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Sun Oct 18 15:21:57 2009 +0200
Properly propagate the focus-in-event of the search entry (bug #5883).
Reported, identified and patch provided by Jérôme Guelfucci.
src/xfce-appfinder-window.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/xfce-appfinder-window.c b/src/xfce-appfinder-window.c
index 38b9703..6f5c1bd 100644
--- a/src/xfce-appfinder-window.c
+++ b/src/xfce-appfinder-window.c
@@ -83,7 +83,7 @@ static void _xfce_appfinder_window_entry_changed (GtkEditable
XfceAppfinderWindow *window);
static void _xfce_appfinder_window_entry_activated (GtkEntry *entry,
XfceAppfinderWindow *window);
-static void _xfce_appfinder_window_entry_focused (GtkWidget *entry,
+static gboolean _xfce_appfinder_window_entry_focused (GtkWidget *entry,
GdkEventFocus *event,
XfceAppfinderWindow *window);
static gboolean _xfce_appfinder_window_entry_key_pressed (GtkWidget *widget,
@@ -491,14 +491,14 @@ _xfce_appfinder_window_entry_activated (GtkEntry *entry,
-static void
+static gboolean
_xfce_appfinder_window_entry_focused (GtkWidget *entry,
GdkEventFocus *event,
XfceAppfinderWindow *window)
{
GtkTreeSelection *selection;
- g_return_if_fail (XFCE_IS_APPFINDER_WINDOW (window));
+ g_return_val_if_fail (XFCE_IS_APPFINDER_WINDOW (window), FALSE);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (window->tree_view));
@@ -506,6 +506,8 @@ _xfce_appfinder_window_entry_focused (GtkWidget *entry,
gtk_tree_selection_unselect_all (selection);
gtk_widget_set_sensitive (window->execute_button, FALSE);
+
+ return FALSE;
}
More information about the Xfce4-commits
mailing list