[nautilus] list-view: return FALSE from focus-out-event signal



commit 8032628adc9c8286050716d609c574dc7273dfcb
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Sep 13 10:58:18 2014 -0700

    list-view: return FALSE from focus-out-event signal
    
    Or we'll possibly eat the event for the entry itself, which will have
    bad consequences to the state tracking of editable GtkCellRendererText.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732513

 src/nautilus-list-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 67afef2..8711af6 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1253,7 +1253,7 @@ sort_column_changed_callback (GtkTreeSortable *sortable,
        view->details->last_sort_attr = sort_attr;
 }
 
-static void
+static gboolean
 editable_focus_out_cb (GtkWidget *widget,
                       GdkEvent *event,
                       gpointer user_data)
@@ -1264,6 +1264,8 @@ editable_focus_out_cb (GtkWidget *widget,
 
        nautilus_view_set_is_renaming (NAUTILUS_VIEW (view), FALSE);
        nautilus_view_unfreeze_updates (NAUTILUS_VIEW (view));
+
+       return FALSE;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]