[gnome-builder] project-selector: make sure the entry gets the first keypress



commit 9bbe9166ab129d37385f0271016ea56621cd99dc
Author: Christian Hergert <christian hergert me>
Date:   Fri Apr 17 14:30:02 2015 -0700

    project-selector: make sure the entry gets the first keypress
    
    I'm not thrilled about doing it this way, since most code in other places
    passes the event to the search bar.
    
    But, since we are doing a workaround for the search bar (because of 1px
    height constraints), we can just send the event to the search entry.
    
    Ideally we would change this after searchbar doesn't have the 1px height
    requirement and we can drop our workaround.

 src/dialogs/gb-projects-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/gb-projects-dialog.c b/src/dialogs/gb-projects-dialog.c
index a71f743..ec3f110 100644
--- a/src/dialogs/gb-projects-dialog.c
+++ b/src/dialogs/gb-projects-dialog.c
@@ -558,7 +558,7 @@ gb_projects_dialog_key_press_event (GtkWidget   *widget,
           !gb_gdk_event_key_is_tab (event))
         {
           gtk_toggle_button_set_active (self->search_button, TRUE);
-          gtk_search_bar_handle_event (self->search_bar, (GdkEvent *)event);
+          gtk_widget_event (GTK_WIDGET (self->search_entry), (GdkEvent *)event);
           return TRUE;
         }
     }


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