From 5267b52c7011941fefb70ef18a906707de795535 Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Fri, 13 Jan 2017 03:33:53 -0800 Subject: [PATCH] xed-searchbar: Add a couple missing casts and remove an unused variable --- xed/xed-searchbar.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xed/xed-searchbar.c b/xed/xed-searchbar.c index 09de427..0fae5de 100755 --- a/xed/xed-searchbar.c +++ b/xed/xed-searchbar.c @@ -51,9 +51,8 @@ static void xed_searchbar_class_init (XedSearchbarClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); - GtkBindingSet *binding_set; + g_type_class_add_private (object_class, sizeof(XedSearchbarPrivate)); - binding_set = gtk_binding_set_by_class (klass); } #define XED_SEARCHBAR_KEY "xed-searchbar-key" @@ -564,7 +563,7 @@ xed_searchbar_init (XedSearchbar *searchbar) NULL); g_free (file); - gtk_style_context_add_class (gtk_widget_get_style_context (searchbar), "xed-searchbar"); + gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (searchbar)), "xed-searchbar"); searchbar->priv->search_entry = xed_history_entry_new ("history-search-for", TRUE); gtk_widget_set_hexpand (searchbar->priv->search_entry, TRUE); @@ -653,7 +652,7 @@ xed_searchbar_new (GtkWindow *parent, { XedSearchbar *searchbar; searchbar = g_object_new (XED_TYPE_SEARCHBAR, NULL); - searchbar->window = parent; + searchbar->window = XED_WINDOW (parent); return GTK_WIDGET(searchbar); }