]> Pileus Git - ~andy/gtk/commitdiff
GtkRecentChooserWidget: derive from GtkBox, not GtkVBox
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 22:35:28 +0000 (18:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 22:35:28 +0000 (18:35 -0400)
gtk/gtkrecentchooserwidget.c
gtk/gtkrecentchooserwidget.h

index cc05491c945414d52056c0e42ec8b4208cc51bff..6b8a0ad45d66bbe506ed28a50815fb9925fa9b91 100644 (file)
@@ -23,6 +23,7 @@
 #include "gtkrecentchooserwidget.h"
 #include "gtkrecentchooserdefault.h"
 #include "gtkrecentchooserutils.h"
+#include "gtkorientable.h"
 #include "gtktypebuiltins.h"
 
 /**
@@ -68,7 +69,7 @@ static void     gtk_recent_chooser_widget_finalize     (GObject               *o
 
 G_DEFINE_TYPE_WITH_CODE (GtkRecentChooserWidget,
                         gtk_recent_chooser_widget,
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         G_IMPLEMENT_INTERFACE (GTK_TYPE_RECENT_CHOOSER,
                                                _gtk_recent_chooser_delegate_iface_init))
 
@@ -92,7 +93,10 @@ static void
 gtk_recent_chooser_widget_init (GtkRecentChooserWidget *widget)
 {
   widget->priv = G_TYPE_INSTANCE_GET_PRIVATE (widget, GTK_TYPE_RECENT_CHOOSER_WIDGET,
-                                             GtkRecentChooserWidgetPrivate);
+                                              GtkRecentChooserWidgetPrivate);
+
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (widget),
+                                  GTK_ORIENTATION_VERTICAL);
 }
 
 static GObject *
index dce28059754cac4e3d4b585821b2835644168102..a4a7ca6a91fa78bdf92ae0fd8e539b5eae30dffe 100644 (file)
@@ -26,7 +26,7 @@
 #define __GTK_RECENT_CHOOSER_WIDGET_H__
 
 #include <gtk/gtkrecentchooser.h>
-#include <gtk/gtkvbox.h>
+#include <gtk/gtkbox.h>
 
 G_BEGIN_DECLS
 
@@ -44,7 +44,7 @@ typedef struct _GtkRecentChooserWidgetPrivate GtkRecentChooserWidgetPrivate;
 
 struct _GtkRecentChooserWidget
 {
-  GtkVBox parent_instance;
+  GtkBox parent_instance;
 
   /*< private >*/
   GtkRecentChooserWidgetPrivate *priv;
@@ -52,7 +52,7 @@ struct _GtkRecentChooserWidget
 
 struct _GtkRecentChooserWidgetClass
 {
-  GtkVBoxClass parent_class;
+  GtkBoxClass parent_class;
 
   /* Padding for future expansion */
   void (*_gtk_reserved1) (void);