]> Pileus Git - ~andy/gtk/commitdiff
GtkFileChooserButton: derive from GtkBox, not GtkHBox
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 23:54:40 +0000 (19:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 23:54:40 +0000 (19:54 -0400)
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserbutton.h

index d785bd151c89454660b317e8b2699f1f232cc447..81b720d5b4f27af08f08ebd5fe61aabb640bcb12 100644 (file)
@@ -52,6 +52,8 @@
 
 #include "gtkfilechooserbutton.h"
 
+#include "gtkorientable.h"
+
 #include "gtktypebuiltins.h"
 #include "gtkprivate.h"
 
@@ -342,7 +344,7 @@ static guint file_chooser_button_signals[LAST_SIGNAL] = { 0 };
  *  GType Declaration  *
  * ******************* */
 
-G_DEFINE_TYPE_WITH_CODE (GtkFileChooserButton, gtk_file_chooser_button, GTK_TYPE_HBOX, { \
+G_DEFINE_TYPE_WITH_CODE (GtkFileChooserButton, gtk_file_chooser_button, GTK_TYPE_BOX, { \
     G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER, gtk_file_chooser_button_file_chooser_iface_init) \
 })
 
index e469ef7c98bed5341c78bb04e519c61e3b5b9657..fb0cee19dcd6febb2c2a7498fa6dd128b26eac93 100644 (file)
@@ -25,7 +25,7 @@
 #ifndef __GTK_FILE_CHOOSER_BUTTON_H__
 #define __GTK_FILE_CHOOSER_BUTTON_H__
 
-#include <gtk/gtkhbox.h>
+#include <gtk/gtkbox.h>
 #include <gtk/gtkfilechooser.h>
 
 G_BEGIN_DECLS
@@ -43,7 +43,7 @@ typedef struct _GtkFileChooserButtonClass   GtkFileChooserButtonClass;
 
 struct _GtkFileChooserButton
 {
-  GtkHBox parent;
+  GtkBox parent;
 
   /*< private >*/
   GtkFileChooserButtonPrivate *priv;
@@ -52,7 +52,7 @@ struct _GtkFileChooserButton
 struct _GtkFileChooserButtonClass
 {
   /*< private >*/
-  GtkHBoxClass parent_class;
+  GtkBoxClass parent_class;
 
   void (* file_set) (GtkFileChooserButton *fc);