From: Matthias Clasen Date: Tue, 7 Jun 2011 22:36:22 +0000 (-0400) Subject: GtkFileChooserWidget: derive from GtkBox, not GtkVBox X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=88c6fc1d8468f98b95cd088da3dc3fda23377a8c;p=~andy%2Fgtk GtkFileChooserWidget: derive from GtkBox, not GtkVBox --- diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 7969bff20..7295e7bac 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -26,6 +26,7 @@ #include "gtkfilechooserutils.h" #include "gtktypebuiltins.h" #include "gtkfilechooserembed.h" +#include "gtkorientable.h" #include "gtkintl.h" @@ -63,7 +64,7 @@ static void gtk_file_chooser_widget_get_property (GObject *obj GValue *value, GParamSpec *pspec); -G_DEFINE_TYPE_WITH_CODE (GtkFileChooserWidget, gtk_file_chooser_widget, GTK_TYPE_VBOX, +G_DEFINE_TYPE_WITH_CODE (GtkFileChooserWidget, gtk_file_chooser_widget, GTK_TYPE_BOX, G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER, _gtk_file_chooser_delegate_iface_init) G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER_EMBED, @@ -91,6 +92,8 @@ gtk_file_chooser_widget_init (GtkFileChooserWidget *chooser_widget) GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetPrivate); chooser_widget->priv = priv; + gtk_orientable_set_orientation (GTK_ORIENTABLE (chooser_widget), + GTK_ORIENTATION_VERTICAL); } static void diff --git a/gtk/gtkfilechooserwidget.h b/gtk/gtkfilechooserwidget.h index c7cea5f11..2aaa19990 100644 --- a/gtk/gtkfilechooserwidget.h +++ b/gtk/gtkfilechooserwidget.h @@ -26,7 +26,7 @@ #define __GTK_FILE_CHOOSER_WIDGET_H__ #include -#include +#include G_BEGIN_DECLS @@ -43,14 +43,14 @@ typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass; struct _GtkFileChooserWidget { - GtkVBox parent_instance; + GtkBox parent_instance; GtkFileChooserWidgetPrivate *priv; }; struct _GtkFileChooserWidgetClass { - GtkVBoxClass parent_class; + GtkBoxClass parent_class; /* Padding for future expansion */ void (*_gtk_reserved1) (void);