diff options
Diffstat (limited to 'lib/widgets')
-rw-r--r-- | lib/widgets/ephy-download-widget.c | 5 | ||||
-rw-r--r-- | lib/widgets/ephy-download-widget.h | 4 | ||||
-rw-r--r-- | lib/widgets/ephy-zoom-control.c | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c index 4c8103fbd..e8353a94e 100644 --- a/lib/widgets/ephy-download-widget.c +++ b/lib/widgets/ephy-download-widget.c @@ -33,7 +33,7 @@ #include <glib/gi18n.h> #include <webkit/webkit.h> -G_DEFINE_TYPE (EphyDownloadWidget, ephy_download_widget, GTK_TYPE_HBOX) +G_DEFINE_TYPE (EphyDownloadWidget, ephy_download_widget, GTK_TYPE_BOX) #define DOWNLOAD_WIDGET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), EPHY_TYPE_DOWNLOAD_WIDGET, EphyDownloadWidgetPrivate)) @@ -399,6 +399,9 @@ static void ephy_download_widget_init (EphyDownloadWidget *self) { self->priv = DOWNLOAD_WIDGET_PRIVATE (self); + + gtk_orientable_set_orientation (GTK_ORIENTABLE (self), + GTK_ORIENTATION_HORIZONTAL); } /** diff --git a/lib/widgets/ephy-download-widget.h b/lib/widgets/ephy-download-widget.h index f2a1d8826..b767e5e32 100644 --- a/lib/widgets/ephy-download-widget.h +++ b/lib/widgets/ephy-download-widget.h @@ -47,14 +47,14 @@ typedef struct _EphyDownloadWidgetPrivate EphyDownloadWidgetPrivate; struct _EphyDownloadWidget { - GtkHBox parent; + GtkBox parent; EphyDownloadWidgetPrivate *priv; }; struct _EphyDownloadWidgetClass { - GtkHBoxClass parent_class; + GtkBoxClass parent_class; }; GType ephy_download_widget_get_type (void) G_GNUC_CONST; diff --git a/lib/widgets/ephy-zoom-control.c b/lib/widgets/ephy-zoom-control.c index fc132d438..e16f91b15 100644 --- a/lib/widgets/ephy-zoom-control.c +++ b/lib/widgets/ephy-zoom-control.c @@ -116,7 +116,8 @@ ephy_zoom_control_init (EphyZoomControl *control) i = ephy_zoom_get_zoom_level_index (p->zoom); gtk_combo_box_set_active (combo, i); - vbox = gtk_vbox_new (TRUE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE); gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (combo), TRUE, FALSE, 0); gtk_widget_show (vbox); |