GtkPrinterOptionWidget: derive from GtkBox, not GtkHBox

This commit is contained in:
Matthias Clasen 2011-06-07 19:55:24 -04:00
parent 876cbb7517
commit ec4b566866
2 changed files with 6 additions and 5 deletions

View File

@ -37,6 +37,7 @@
#include "gtkstock.h"
#include "gtktable.h"
#include "gtktogglebutton.h"
#include "gtkorientable.h"
#include "gtkprivate.h"
#include "gtkprinteroptionwidget.h"
@ -76,7 +77,7 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkPrinterOptionWidget, gtk_printer_option_widget, GTK_TYPE_HBOX)
G_DEFINE_TYPE (GtkPrinterOptionWidget, gtk_printer_option_widget, GTK_TYPE_BOX)
static void gtk_printer_option_widget_set_property (GObject *object,
guint prop_id,
@ -104,7 +105,7 @@ gtk_printer_option_widget_class_init (GtkPrinterOptionWidgetClass *class)
widget_class->mnemonic_activate = gtk_printer_option_widget_mnemonic_activate;
g_type_class_add_private (class, sizeof (GtkPrinterOptionWidgetPrivate));
g_type_class_add_private (class, sizeof (GtkPrinterOptionWidgetPrivate));
signals[CHANGED] =
g_signal_new ("changed",

View File

@ -20,7 +20,7 @@
#define __GTK_PRINTER_OPTION_WIDGET_H__
#include "gtkprinteroption.h"
#include "gtkhbox.h"
#include "gtkbox.h"
G_BEGIN_DECLS
@ -38,14 +38,14 @@ typedef struct GtkPrinterOptionWidgetPrivate GtkPrinterOptionWidgetPrivate;
struct _GtkPrinterOptionWidget
{
GtkHBox parent_instance;
GtkBox parent_instance;
GtkPrinterOptionWidgetPrivate *priv;
};
struct _GtkPrinterOptionWidgetClass
{
GtkHBoxClass parent_class;
GtkBoxClass parent_class;
void (*changed) (GtkPrinterOptionWidget *widget);