[giggle] src/giggle-revision-info: derive from GtkBox, not GtkVBox
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] src/giggle-revision-info: derive from GtkBox, not GtkVBox
- Date: Tue, 21 Jun 2011 16:43:30 +0000 (UTC)
commit 090d6d526c7013c77d717812b360a2ee0472259a
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Jun 21 17:29:06 2011 +0100
src/giggle-revision-info: derive from GtkBox, not GtkVBox
src/giggle-revision-info.c | 5 ++++-
src/giggle-revision-info.h | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/giggle-revision-info.c b/src/giggle-revision-info.c
index 89fe0f1..a8aa48b 100644
--- a/src/giggle-revision-info.c
+++ b/src/giggle-revision-info.c
@@ -43,7 +43,7 @@ typedef struct {
unsigned use_markup : 1;
} GiggleRevisionInfoPriv;
-G_DEFINE_TYPE (GiggleRevisionInfo, giggle_revision_info, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GiggleRevisionInfo, giggle_revision_info, GTK_TYPE_BOX)
static void
revision_info_set_revision (GiggleRevisionInfoPriv *priv,
@@ -214,6 +214,9 @@ giggle_revision_info_init (GiggleRevisionInfo *info)
priv = GET_PRIV (info);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (info),
+ GTK_ORIENTATION_VERTICAL);
+
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_box_pack_start (GTK_BOX (info), hbox, FALSE, FALSE, 0);
diff --git a/src/giggle-revision-info.h b/src/giggle-revision-info.h
index c6f4328..eae6272 100644
--- a/src/giggle-revision-info.h
+++ b/src/giggle-revision-info.h
@@ -38,11 +38,11 @@ typedef struct GiggleRevisionInfo GiggleRevisionInfo;
typedef struct GiggleRevisionInfoClass GiggleRevisionInfoClass;
struct GiggleRevisionInfo {
- GtkVBox parent_instance;
+ GtkBox parent_instance;
};
struct GiggleRevisionInfoClass {
- GtkVBoxClass parent_class;
+ GtkBoxClass parent_class;
};
GType
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]