From 876cbb7517f24e89ad7fad42d07f3bb52284550c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 7 Jun 2011 19:55:03 -0400 Subject: [PATCH] GtkInfoBar: derive from GtkBox, not GtkHBox --- gtk/gtkinfobar.c | 3 ++- gtk/gtkinfobar.h | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 45ca5fe336..642f99c853 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -46,6 +46,7 @@ #include "gtkintl.h" #include "gtkprivate.h" #include "gtkstock.h" +#include "gtkorientable.h" #include "gtktypebuiltins.h" /** @@ -177,7 +178,7 @@ static void gtk_info_bar_buildable_custom_finished (GtkBuildable *build gpointer user_data); -G_DEFINE_TYPE_WITH_CODE (GtkInfoBar, gtk_info_bar, GTK_TYPE_HBOX, +G_DEFINE_TYPE_WITH_CODE (GtkInfoBar, gtk_info_bar, GTK_TYPE_BOX, G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE, gtk_info_bar_buildable_interface_init)) diff --git a/gtk/gtkinfobar.h b/gtk/gtkinfobar.h index 4a7cf5d83c..38ee94a41b 100644 --- a/gtk/gtkinfobar.h +++ b/gtk/gtkinfobar.h @@ -35,7 +35,7 @@ #ifndef __GTK_INFO_BAR_H__ #define __GTK_INFO_BAR_H__ -#include +#include #include G_BEGIN_DECLS @@ -58,7 +58,7 @@ typedef struct _GtkInfoBar GtkInfoBar; struct _GtkInfoBar { - GtkHBox parent; + GtkBox parent; /*< private > */ GtkInfoBarPrivate *priv; @@ -67,7 +67,7 @@ struct _GtkInfoBar struct _GtkInfoBarClass { - GtkHBoxClass parent_class; + GtkBoxClass parent_class; /* Signals */ void (* response) (GtkInfoBar *info_bar, gint response_id);