Mercurial > geeqie.yaz
comparison src/preferences.c @ 1604:8a04e59ea31c
fixed compilation with older gtk
author | nadvornik |
---|---|
date | Tue, 12 May 2009 20:38:26 +0000 |
parents | 2b70f2a4adbf |
children | 397c25f6c9d6 |
comparison
equal
deleted
inserted
replaced
1603:eaef384a92e4 | 1604:8a04e59ea31c |
---|---|
892 static void image_overlay_help_cb(GtkWidget *widget, gpointer data) | 892 static void image_overlay_help_cb(GtkWidget *widget, gpointer data) |
893 { | 893 { |
894 help_window_show("overlay"); | 894 help_window_show("overlay"); |
895 } | 895 } |
896 | 896 |
897 #if GTK_CHECK_VERSION(2, 10, 0) | |
897 static void accel_store_populate(void) | 898 static void accel_store_populate(void) |
898 { | 899 { |
899 LayoutWindow *lw; | 900 LayoutWindow *lw; |
900 GList *groups, *actions; | 901 GList *groups, *actions; |
901 GtkAction *action; | 902 GtkAction *action; |
1152 static void accel_default_ok_cb(GenericDialog *gd, gpointer data) | 1153 static void accel_default_ok_cb(GenericDialog *gd, gpointer data) |
1153 { | 1154 { |
1154 accel_store_populate(); | 1155 accel_store_populate(); |
1155 } | 1156 } |
1156 | 1157 |
1158 #endif | |
1157 #endif | 1159 #endif |
1158 | 1160 |
1159 static GtkWidget *scrolled_notebook_page(GtkWidget *notebook, const gchar *title) | 1161 static GtkWidget *scrolled_notebook_page(GtkWidget *notebook, const gchar *title) |
1160 { | 1162 { |
1161 GtkWidget *label; | 1163 GtkWidget *label; |
1849 } | 1851 } |
1850 | 1852 |
1851 /* accelerators tab */ | 1853 /* accelerators tab */ |
1852 static void config_tab_accelerators(GtkWidget *notebook) | 1854 static void config_tab_accelerators(GtkWidget *notebook) |
1853 { | 1855 { |
1856 #if GTK_CHECK_VERSION(2, 10, 0) | |
1854 GtkWidget *hbox; | 1857 GtkWidget *hbox; |
1855 GtkWidget *vbox; | 1858 GtkWidget *vbox; |
1856 GtkWidget *group; | 1859 GtkWidget *group; |
1857 GtkWidget *button; | 1860 GtkWidget *button; |
1858 GtkWidget *scrolled; | 1861 GtkWidget *scrolled; |
1962 button = pref_button_new(NULL, _("Add Alt"), NULL, FALSE, | 1965 button = pref_button_new(NULL, _("Add Alt"), NULL, FALSE, |
1963 G_CALLBACK(accel_add_alt_cb), accel_view); | 1966 G_CALLBACK(accel_add_alt_cb), accel_view); |
1964 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 1967 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
1965 gtk_widget_show(button); | 1968 gtk_widget_show(button); |
1966 #endif | 1969 #endif |
1967 } | 1970 #endif |
1968 | 1971 } |
1969 | 1972 |
1970 /* Main preferences window */ | 1973 /* Main preferences window */ |
1971 static void config_window_create(void) | 1974 static void config_window_create(void) |
1972 { | 1975 { |
1973 GtkWidget *win_vbox; | 1976 GtkWidget *win_vbox; |