diff src/preferences.c @ 2337:7ff7000c458c

Image overlay configurable items The gui items require GTK+ 3.4. For GTK+ 2 the effects are neverthless obtainable by editing the relevant lines in geeqierc.xml
author Colin Clark <cclark@mcb.net>
date Thu, 19 May 2016 15:27:16 +0100
parents aa2e9d37193b
children c9948056a6db
line wrap: on
line diff
--- a/src/preferences.c	Wed May 18 22:19:52 2016 +0100
+++ b/src/preferences.c	Thu May 19 15:27:16 2016 +0100
@@ -1026,6 +1026,7 @@
 	help_window_show("overlay");
 }
 
+#if GTK_CHECK_VERSION(3,4,0)
 static void image_overlay_set_font_cb(GtkWidget *widget, gpointer data)
 {
 	GenericDialog *dialog;
@@ -1092,6 +1093,7 @@
 		}
 	gtk_widget_destroy (dialog);
 }
+#endif
 
 static void accel_store_populate(void)
 {
@@ -1529,6 +1531,7 @@
 
 	hbox = pref_box_new(group, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_BUTTON_GAP);
 
+#if GTK_CHECK_VERSION(3,4,0)
 	button = pref_button_new(NULL, GTK_STOCK_SELECT_FONT, _("Font"), FALSE,
 				 G_CALLBACK(image_overlay_set_font_cb), notebook);
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, NULL, 0);
@@ -1544,6 +1547,7 @@
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
 	gtk_widget_show(button);
 	image_overlay_set_text_colours();
+#endif
 
 	button = pref_button_new(NULL, NULL, _("Defaults"), FALSE,
 				 G_CALLBACK(image_overlay_default_template_cb), image_overlay_template_view);