[glade] Converted GladeToolItemGroupEditor and GladeTreeViewEditor to be GtkBox subclasses.



commit cc43c221c6d716ad463ba2323d882bf6aa6245fa
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Tue May 7 14:26:29 2013 +0900

    Converted GladeToolItemGroupEditor and GladeTreeViewEditor to be GtkBox subclasses.

 plugins/gtk+/glade-tool-item-group-editor.c |    4 +++-
 plugins/gtk+/glade-tool-item-group-editor.h |    4 ++--
 plugins/gtk+/glade-treeview-editor.c        |    4 +++-
 plugins/gtk+/glade-treeview-editor.h        |    4 ++--
 4 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/plugins/gtk+/glade-tool-item-group-editor.c b/plugins/gtk+/glade-tool-item-group-editor.c
index 0fe1361..3722b33 100644
--- a/plugins/gtk+/glade-tool-item-group-editor.c
+++ b/plugins/gtk+/glade-tool-item-group-editor.c
@@ -36,7 +36,7 @@ static void glade_tool_item_group_editor_grab_focus (GtkWidget * widget);
 
 static GladeEditableIface *parent_editable_iface;
 
-G_DEFINE_TYPE_WITH_CODE (GladeToolItemGroupEditor, glade_tool_item_group_editor, GTK_TYPE_VBOX,
+G_DEFINE_TYPE_WITH_CODE (GladeToolItemGroupEditor, glade_tool_item_group_editor, GTK_TYPE_BOX,
                          G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
                                                 glade_tool_item_group_editor_editable_init));
 
@@ -54,6 +54,8 @@ glade_tool_item_group_editor_class_init (GladeToolItemGroupEditorClass * klass)
 static void
 glade_tool_item_group_editor_init (GladeToolItemGroupEditor * self)
 {
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
+                                 GTK_ORIENTATION_VERTICAL);
 }
 
 static void
diff --git a/plugins/gtk+/glade-tool-item-group-editor.h b/plugins/gtk+/glade-tool-item-group-editor.h
index 38a6ef6..ac229ad 100644
--- a/plugins/gtk+/glade-tool-item-group-editor.h
+++ b/plugins/gtk+/glade-tool-item-group-editor.h
@@ -37,7 +37,7 @@ typedef struct _GladeToolItemGroupEditorClass   GladeToolItemGroupEditorClass;
 
 struct _GladeToolItemGroupEditor
 {
-       GtkVBox  parent;
+       GtkBox  parent;
 
        GtkWidget *embed;
 
@@ -49,7 +49,7 @@ struct _GladeToolItemGroupEditor
 
 struct _GladeToolItemGroupEditorClass
 {
-       GtkVBoxClass parent;
+       GtkBoxClass parent;
 };
 
 GType            glade_tool_item_group_editor_get_type (void) G_GNUC_CONST;
diff --git a/plugins/gtk+/glade-treeview-editor.c b/plugins/gtk+/glade-treeview-editor.c
index fa21a35..73c406e 100644
--- a/plugins/gtk+/glade-treeview-editor.c
+++ b/plugins/gtk+/glade-treeview-editor.c
@@ -37,7 +37,7 @@ static void glade_tree_view_editor_grab_focus (GtkWidget * widget);
 
 static GladeEditableIface *parent_editable_iface;
 
-G_DEFINE_TYPE_WITH_CODE (GladeTreeViewEditor, glade_tree_view_editor, GTK_TYPE_HBOX,
+G_DEFINE_TYPE_WITH_CODE (GladeTreeViewEditor, glade_tree_view_editor, GTK_TYPE_BOX,
                          G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
                                                 glade_tree_view_editor_editable_init));
 
@@ -57,6 +57,8 @@ glade_tree_view_editor_class_init (GladeTreeViewEditorClass * klass)
 static void
 glade_tree_view_editor_init (GladeTreeViewEditor * self)
 {
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
+                                 GTK_ORIENTATION_HORIZONTAL);
 }
 
 static GladeWidget *
diff --git a/plugins/gtk+/glade-treeview-editor.h b/plugins/gtk+/glade-treeview-editor.h
index 19e3e31..d9c4362 100644
--- a/plugins/gtk+/glade-treeview-editor.h
+++ b/plugins/gtk+/glade-treeview-editor.h
@@ -37,7 +37,7 @@ typedef struct _GladeTreeViewEditorClass   GladeTreeViewEditorClass;
 
 struct _GladeTreeViewEditor
 {
-       GtkHBox  parent;
+       GtkBox  parent;
 
        GtkWidget *embed;
        GtkWidget *embed_list_store;
@@ -47,7 +47,7 @@ struct _GladeTreeViewEditor
 
 struct _GladeTreeViewEditorClass
 {
-       GtkVBoxClass parent;
+       GtkBoxClass parent;
 };
 
 GType            glade_tree_view_editor_get_type (void) G_GNUC_CONST;


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