[giggle] src/giggle-description-editor: derive from GtkBox, not GtkVBox
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] src/giggle-description-editor: derive from GtkBox, not GtkVBox
- Date: Tue, 21 Jun 2011 16:43:25 +0000 (UTC)
commit c45543d0d98a78f504190ad94969f3c1287fc7c6
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Jun 21 17:28:43 2011 +0100
src/giggle-description-editor: derive from GtkBox, not GtkVBox
src/giggle-description-editor.c | 5 ++++-
src/giggle-description-editor.h | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/giggle-description-editor.c b/src/giggle-description-editor.c
index 6ea55ad..3e832fb 100644
--- a/src/giggle-description-editor.c
+++ b/src/giggle-description-editor.c
@@ -38,7 +38,7 @@ struct GiggleDescriptionEditorPriv {
static void description_editor_finalize (GObject *object);
-G_DEFINE_TYPE (GiggleDescriptionEditor, giggle_description_editor, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GiggleDescriptionEditor, giggle_description_editor, GTK_TYPE_BOX)
#define GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GIGGLE_TYPE_DESCRIPTION_EDITOR, GiggleDescriptionEditorPriv))
@@ -117,6 +117,9 @@ giggle_description_editor_init (GiggleDescriptionEditor *editor)
priv = GET_PRIV (editor);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (editor),
+ GTK_ORIENTATION_VERTICAL);
+
gtk_box_set_spacing (GTK_BOX (editor), 6);
priv->git = giggle_git_get ();
diff --git a/src/giggle-description-editor.h b/src/giggle-description-editor.h
index c3187e5..ed885f1 100644
--- a/src/giggle-description-editor.h
+++ b/src/giggle-description-editor.h
@@ -37,11 +37,11 @@ typedef struct _GiggleDescriptionEditor GiggleDescriptionEditor;
typedef struct _GiggleDescriptionEditorClass GiggleDescriptionEditorClass;
struct _GiggleDescriptionEditor {
- GtkVBox parent_instance;
+ GtkBox parent_instance;
};
struct _GiggleDescriptionEditorClass {
- GtkVBoxClass parent_class;
+ GtkBoxClass parent_class;
};
GType giggle_description_editor_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]