[telepathy-account-widgets] live-search: inherit from GtkBox
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telepathy-account-widgets] live-search: inherit from GtkBox
- Date: Mon, 2 Sep 2013 12:50:43 +0000 (UTC)
commit dc30c4e87059c30f6ca8858c13516b282e44f7d7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Sep 2 08:55:43 2013 +0200
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(-)
---
diff --git a/tp-account-widgets/tpaw-live-search.c b/tp-account-widgets/tpaw-live-search.c
index 99d87f2..4d8ccc7 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 0772d9d..986de67 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]