summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-02 08:55:43 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-02 08:58:17 +0200
commitdc30c4e87059c30f6ca8858c13516b282e44f7d7 (patch)
tree381c5ee193f88c1b7636753f9e1fe13f77bf0aa4
parente65a7c49d7749e2e6bed5167a489f06f6ddb0273 (diff)
live-search: inherit from GtkBox
GtkHBox has been deprecated since a while. https://bugzilla.gnome.org/show_bug.cgi?id=707265
-rw-r--r--tp-account-widgets/tpaw-live-search.c3
-rw-r--r--tp-account-widgets/tpaw-live-search.h4
2 files changed, 4 insertions, 3 deletions
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;
/*<private>*/
TpawLiveSearchPriv *priv;
};
struct _TpawLiveSearchClass {
- GtkHBoxClass parent_class;
+ GtkBoxClass parent_class;
};
GType tpaw_live_search_get_type (void) G_GNUC_CONST;