[gtk+] GtkStatusbar: derive from GtkBox, not GtkHBox



commit 83891618424fb7beddefecd9f301099d6a5b4cc2
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 7 19:55:46 2011 -0400

    GtkStatusbar: derive from GtkBox, not GtkHBox

 gtk/gtkstatusbar.c |    3 ++-
 gtk/gtkstatusbar.h |    6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index ff47d2e..44398b3 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -35,6 +35,7 @@
 #include "gtkprivate.h"
 #include "gtkintl.h"
 #include "gtkbuildable.h"
+#include "gtkorientable.h"
 #include "gtktypebuiltins.h"
 
 /**
@@ -118,7 +119,7 @@ static void     gtk_statusbar_hierarchy_changed (GtkWidget         *widget,
 
 static guint              statusbar_signals[SIGNAL_LAST] = { 0 };
 
-G_DEFINE_TYPE_WITH_CODE (GtkStatusbar, gtk_statusbar, GTK_TYPE_HBOX,
+G_DEFINE_TYPE_WITH_CODE (GtkStatusbar, gtk_statusbar, GTK_TYPE_BOX,
                          G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
                                                 gtk_statusbar_buildable_interface_init));
 
diff --git a/gtk/gtkstatusbar.h b/gtk/gtkstatusbar.h
index 4de1f90..f043718 100644
--- a/gtk/gtkstatusbar.h
+++ b/gtk/gtkstatusbar.h
@@ -32,7 +32,7 @@
 #ifndef __GTK_STATUSBAR_H__
 #define __GTK_STATUSBAR_H__
 
-#include <gtk/gtkhbox.h>
+#include <gtk/gtkbox.h>
 
 G_BEGIN_DECLS
 
@@ -50,7 +50,7 @@ typedef struct _GtkStatusbarClass         GtkStatusbarClass;
 
 struct _GtkStatusbar
 {
-  GtkHBox parent_widget;
+  GtkBox parent_widget;
 
   /*< private >*/
   GtkStatusbarPrivate *priv;
@@ -58,7 +58,7 @@ struct _GtkStatusbar
 
 struct _GtkStatusbarClass
 {
-  GtkHBoxClass parent_class;
+  GtkBoxClass parent_class;
 
   gpointer reserved;
 



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