mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
GtkPrinterOptionWidget: derive from GtkBox, not GtkHBox
This commit is contained in:
parent
876cbb7517
commit
ec4b566866
@ -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",
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user