diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-06-07 18:36:22 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-06-07 18:36:22 -0400 |
commit | 88c6fc1d8468f98b95cd088da3dc3fda23377a8c (patch) | |
tree | 84b99979a602d23a36fcc725cb7c76643645d087 /gtk/gtkfilechooserwidget.c | |
parent | 7c0d51dd5c000602beffd90619ca3635b651fd5a (diff) | |
download | gtk+-88c6fc1d8468f98b95cd088da3dc3fda23377a8c.tar.gz |
GtkFileChooserWidget: derive from GtkBox, not GtkVBox
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 7969bff200..7295e7bac6 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 |