From dc30c4e87059c30f6ca8858c13516b282e44f7d7 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 2 Sep 2013 08:55:43 +0200 Subject: live-search: inherit from GtkBox GtkHBox has been deprecated since a while. https://bugzilla.gnome.org/show_bug.cgi?id=707265 --- tp-account-widgets/tpaw-live-search.c | 3 ++- tp-account-widgets/tpaw-live-search.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'tp-account-widgets') diff --git a/tp-account-widgets/tpaw-live-search.c b/tp-account-widgets/tpaw-live-search.c index 99d87f22..4d8ccc7b 100644 --- a/tp-account-widgets/tpaw-live-search.c +++ b/tp-account-widgets/tpaw-live-search.c @@ -26,7 +26,7 @@ #include "tpaw-utils.h" -G_DEFINE_TYPE (TpawLiveSearch, tpaw_live_search, GTK_TYPE_HBOX) +G_DEFINE_TYPE (TpawLiveSearch, tpaw_live_search, GTK_TYPE_BOX) struct _TpawLiveSearchPriv { @@ -597,6 +597,7 @@ tpaw_live_search_new (GtkWidget *hook) g_return_val_if_fail (hook == NULL || GTK_IS_WIDGET (hook), NULL); return g_object_new (TPAW_TYPE_LIVE_SEARCH, + "orientation", GTK_ORIENTATION_HORIZONTAL, "hook-widget", hook, NULL); } diff --git a/tp-account-widgets/tpaw-live-search.h b/tp-account-widgets/tpaw-live-search.h index 0772d9d9..986de674 100644 --- a/tp-account-widgets/tpaw-live-search.h +++ b/tp-account-widgets/tpaw-live-search.h @@ -40,14 +40,14 @@ typedef struct _TpawLiveSearchPriv TpawLiveSearchPriv; typedef struct _TpawLiveSearchClass TpawLiveSearchClass; struct _TpawLiveSearch { - GtkHBox parent; + GtkBox parent; /**/ TpawLiveSearchPriv *priv; }; struct _TpawLiveSearchClass { - GtkHBoxClass parent_class; + GtkBoxClass parent_class; }; GType tpaw_live_search_get_type (void) G_GNUC_CONST; -- cgit v1.2.1