[glade] Converted GladeIconFactoryEditor, GladeImageItemEditor and GladeStoreEditor to be GtkBox subclasses



commit edb74dd238ee64222b0067d6196928bb3f40090d
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Tue May 7 14:34:05 2013 +0900

    Converted GladeIconFactoryEditor, GladeImageItemEditor and GladeStoreEditor to be GtkBox subclasses

 plugins/gtk+/glade-icon-factory-editor.c |    4 +++-
 plugins/gtk+/glade-icon-factory-editor.h |    4 ++--
 plugins/gtk+/glade-image-item-editor.c   |    5 +++--
 plugins/gtk+/glade-image-item-editor.h   |    4 ++--
 plugins/gtk+/glade-store-editor.c        |    4 +++-
 plugins/gtk+/glade-store-editor.h        |    4 ++--
 6 files changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/plugins/gtk+/glade-icon-factory-editor.c b/plugins/gtk+/glade-icon-factory-editor.c
index eb317df..5c132ad 100644
--- a/plugins/gtk+/glade-icon-factory-editor.c
+++ b/plugins/gtk+/glade-icon-factory-editor.c
@@ -37,7 +37,7 @@ static void glade_icon_factory_editor_grab_focus (GtkWidget * widget);
 static GladeEditableIface *parent_editable_iface;
 
 G_DEFINE_TYPE_WITH_CODE (GladeIconFactoryEditor, glade_icon_factory_editor,
-                         GTK_TYPE_VBOX,
+                         GTK_TYPE_BOX,
                          G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
                                                 glade_icon_factory_editor_editable_init));
 
@@ -55,6 +55,8 @@ glade_icon_factory_editor_class_init (GladeIconFactoryEditorClass * klass)
 static void
 glade_icon_factory_editor_init (GladeIconFactoryEditor * self)
 {
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
+                                 GTK_ORIENTATION_VERTICAL);
 }
 
 static void
diff --git a/plugins/gtk+/glade-icon-factory-editor.h b/plugins/gtk+/glade-icon-factory-editor.h
index 5fe3dcb..fd120b7 100644
--- a/plugins/gtk+/glade-icon-factory-editor.h
+++ b/plugins/gtk+/glade-icon-factory-editor.h
@@ -37,7 +37,7 @@ typedef struct _GladeIconFactoryEditorClass   GladeIconFactoryEditorClass;
 
 struct _GladeIconFactoryEditor
 {
-       GtkVBox  parent;
+       GtkBox  parent;
 
        GtkWidget *embed;           /* Embedded parent class editor */
 
@@ -46,7 +46,7 @@ struct _GladeIconFactoryEditor
 
 struct _GladeIconFactoryEditorClass
 {
-       GtkVBoxClass parent;
+       GtkBoxClass parent;
 };
 
 GType            glade_icon_factory_editor_get_type (void) G_GNUC_CONST;
diff --git a/plugins/gtk+/glade-image-item-editor.c b/plugins/gtk+/glade-image-item-editor.c
index f64853b..d6d855b 100644
--- a/plugins/gtk+/glade-image-item-editor.c
+++ b/plugins/gtk+/glade-image-item-editor.c
@@ -35,8 +35,7 @@ static void glade_image_item_editor_grab_focus (GtkWidget * widget);
 
 static GladeEditableIface *parent_editable_iface;
 
-G_DEFINE_TYPE_WITH_CODE (GladeImageItemEditor, glade_image_item_editor,
-                         GTK_TYPE_VBOX,
+G_DEFINE_TYPE_WITH_CODE (GladeImageItemEditor, glade_image_item_editor, GTK_TYPE_BOX,
                          G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
                                                 glade_image_item_editor_editable_init));
 
@@ -54,6 +53,8 @@ glade_image_item_editor_class_init (GladeImageItemEditorClass * klass)
 static void
 glade_image_item_editor_init (GladeImageItemEditor * self)
 {
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
+                                 GTK_ORIENTATION_VERTICAL);
 }
 
 static GladeWidget *
diff --git a/plugins/gtk+/glade-image-item-editor.h b/plugins/gtk+/glade-image-item-editor.h
index 66c1465..8146cc5 100644
--- a/plugins/gtk+/glade-image-item-editor.h
+++ b/plugins/gtk+/glade-image-item-editor.h
@@ -37,7 +37,7 @@ typedef struct _GladeImageItemEditorClass   GladeImageItemEditorClass;
 
 struct _GladeImageItemEditor
 {
-  GtkVBox  parent;
+  GtkBox  parent;
 
   GtkWidget *embed;           /* Embedded parent class editor */
   GtkWidget *embed_image;     /* Embedded GladeEditable for the image */
@@ -52,7 +52,7 @@ struct _GladeImageItemEditor
 
 struct _GladeImageItemEditorClass
 {
-  GtkVBoxClass parent;
+  GtkBoxClass parent;
 };
 
 GType            glade_image_item_editor_get_type (void) G_GNUC_CONST;
diff --git a/plugins/gtk+/glade-store-editor.c b/plugins/gtk+/glade-store-editor.c
index 4d045f9..51003a0 100644
--- a/plugins/gtk+/glade-store-editor.c
+++ b/plugins/gtk+/glade-store-editor.c
@@ -36,7 +36,7 @@ static void glade_store_editor_grab_focus (GtkWidget * widget);
 
 static GladeEditableIface *parent_editable_iface;
 
-G_DEFINE_TYPE_WITH_CODE (GladeStoreEditor, glade_store_editor, GTK_TYPE_VBOX,
+G_DEFINE_TYPE_WITH_CODE (GladeStoreEditor, glade_store_editor, GTK_TYPE_BOX,
                          G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
                                                 glade_store_editor_editable_init));
 
@@ -54,6 +54,8 @@ glade_store_editor_class_init (GladeStoreEditorClass * klass)
 static void
 glade_store_editor_init (GladeStoreEditor * self)
 {
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
+                                 GTK_ORIENTATION_VERTICAL);
 }
 
 static void
diff --git a/plugins/gtk+/glade-store-editor.h b/plugins/gtk+/glade-store-editor.h
index 93ba9c5..d8942d6 100644
--- a/plugins/gtk+/glade-store-editor.h
+++ b/plugins/gtk+/glade-store-editor.h
@@ -37,7 +37,7 @@ typedef struct _GladeStoreEditorClass   GladeStoreEditorClass;
 
 struct _GladeStoreEditor
 {
-       GtkVBox  parent;
+       GtkBox  parent;
 
        GtkWidget *embed;
 
@@ -46,7 +46,7 @@ struct _GladeStoreEditor
 
 struct _GladeStoreEditorClass
 {
-       GtkVBoxClass parent;
+       GtkBoxClass parent;
 };
 
 GType            glade_store_editor_get_type (void) G_GNUC_CONST;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]