aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/main_filter_toolbar.c5
-rw-r--r--gtk/main_toolbar.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gtk/main_filter_toolbar.c b/gtk/main_filter_toolbar.c
index fc9b71561b..3c015f4bd5 100644
--- a/gtk/main_filter_toolbar.c
+++ b/gtk/main_filter_toolbar.c
@@ -104,8 +104,13 @@ GtkWidget *filter_toolbar_new(void)
/* filter toolbar */
filter_tb = gtk_toolbar_new();
+#if GTK_CHECK_VERSION(2,16,0)
+ gtk_orientable_set_orientation(GTK_ORIENTABLE(filter_tb),
+ GTK_ORIENTATION_HORIZONTAL);
+#else
gtk_toolbar_set_orientation(GTK_TOOLBAR(filter_tb),
GTK_ORIENTATION_HORIZONTAL);
+#endif
g_object_set_data(G_OBJECT(top_level), E_TB_FILTER_KEY, filter_tb);
gtk_widget_show(filter_tb);
diff --git a/gtk/main_toolbar.c b/gtk/main_toolbar.c
index 6f322a05c2..a69a2f74f1 100644
--- a/gtk/main_toolbar.c
+++ b/gtk/main_toolbar.c
@@ -287,8 +287,13 @@ toolbar_new(void)
/* toolbar will be horizontal, with both icons and text (as default here) */
/* (this will usually be overwritten by the preferences setting) */
main_tb = gtk_toolbar_new();
+#if GTK_CHECK_VERSION(2,16,0)
+ gtk_orientable_set_orientation(GTK_ORIENTABLE(main_tb),
+ GTK_ORIENTATION_HORIZONTAL);
+#else
gtk_toolbar_set_orientation(GTK_TOOLBAR(main_tb),
GTK_ORIENTATION_HORIZONTAL);
+#endif
g_object_set_data(G_OBJECT(top_level), E_TB_MAIN_KEY, main_tb);