2009-04-25 [paul] 3.7.1cvs46
[claws.git] / src / printing.c
index e8104ff62e3b7c252c767f39bcac8f140f56be29..49b28fc56f720656117b60d9b306a33466274868 100644 (file)
@@ -420,7 +420,11 @@ static gboolean cb_preview(GtkPrintOperation        *operation,
   
   /* toolbar */
   toolbar = gtk_toolbar_new();
+#if (GTK_CHECK_VERSION(2,16,0))
+       gtk_orientable_set_orientation(GTK_ORIENTABLE(toolbar), GTK_ORIENTATION_HORIZONTAL);
+#else
   gtk_toolbar_set_orientation(GTK_TOOLBAR(toolbar), GTK_ORIENTATION_HORIZONTAL);
+#endif
   switch (prefs_common.toolbar_style) {
   case TOOLBAR_ICON:
     gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_ICONS);