GtkStatusbar: derive from GtkBox, not GtkHBox

This commit is contained in:
Matthias Clasen 2011-06-07 19:55:46 -04:00
parent ec4b566866
commit 8389161842
2 changed files with 5 additions and 4 deletions

View File

@ -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));

View File

@ -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;