diff options
author | monsta <[email protected]> | 2016-11-23 17:51:24 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-23 17:52:57 +0300 |
commit | 7884bbe50fe8b8c26e68b8077c18047861c2dd0c (patch) | |
tree | e82955c69fc9c0ab25f20401da55d24386c07116 | |
parent | a2ae88b93b02c8dea6b1dfe3f5af7646d00860c1 (diff) | |
download | atril-7884bbe50fe8b8c26e68b8077c18047861c2dd0c.tar.bz2 atril-7884bbe50fe8b8c26e68b8077c18047861c2dd0c.tar.xz |
cut-n-paste: set vertical box to be homogeneous in GTK+3 code too
-rw-r--r-- | cut-n-paste/zoom-control/ephy-zoom-control.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cut-n-paste/zoom-control/ephy-zoom-control.c b/cut-n-paste/zoom-control/ephy-zoom-control.c index ed56bd1f..ed5dc52e 100644 --- a/cut-n-paste/zoom-control/ephy-zoom-control.c +++ b/cut-n-paste/zoom-control/ephy-zoom-control.c @@ -28,10 +28,6 @@ #include <gtk/gtk.h> #include <glib/gi18n.h> -#if GTK_CHECK_VERSION (3, 0, 0) -#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) -#endif - #define EPHY_ZOOM_CONTROL_GET_PRIVATE(object)\ (G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlPrivate)) @@ -204,7 +200,12 @@ ephy_zoom_control_init (EphyZoomControl *control) i = ephy_zoom_get_zoom_level_index (p->zoom); gtk_combo_box_set_active (p->combo, i); +#if GTK_CHECK_VERSION (3, 0, 0) + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE); +#else vbox = gtk_vbox_new (TRUE, 0); +#endif gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (p->combo), TRUE, FALSE, 0); gtk_widget_show (vbox); |