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



commit ec4b5668665f9e8231ceb861158efee765532af9
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 7 19:55:24 2011 -0400

    GtkPrinterOptionWidget: derive from GtkBox, not GtkHBox

 gtk/gtkprinteroptionwidget.c |    5 +++--
 gtk/gtkprinteroptionwidget.h |    6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index 89891a4..0c38d88 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -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",
diff --git a/gtk/gtkprinteroptionwidget.h b/gtk/gtkprinteroptionwidget.h
index ad35fb9..f392c52 100644
--- a/gtk/gtkprinteroptionwidget.h
+++ b/gtk/gtkprinteroptionwidget.h
@@ -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);
 



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