summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentchooserwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-06-07 18:35:28 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-06-07 18:35:28 -0400
commitb1278b9ee283d81e1f2917a298b60f7d67faae15 (patch)
tree2f47d135cba880a5f9876475fa772d5074dc6f54 /gtk/gtkrecentchooserwidget.c
parent896540f56b30aab6bf63a1f0dad7cb746ae85788 (diff)
downloadgtk+-b1278b9ee283d81e1f2917a298b60f7d67faae15.tar.gz
GtkRecentChooserWidget: derive from GtkBox, not GtkVBox
Diffstat (limited to 'gtk/gtkrecentchooserwidget.c')
-rw-r--r--gtk/gtkrecentchooserwidget.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkrecentchooserwidget.c b/gtk/gtkrecentchooserwidget.c
index cc05491c94..6b8a0ad45d 100644
--- a/gtk/gtkrecentchooserwidget.c
+++ b/gtk/gtkrecentchooserwidget.c
@@ -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 *