Mercurial > geeqie.yaz
diff 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 |
line wrap: on
line diff
--- a/src/preferences.c Tue May 12 20:17:03 2009 +0000 +++ b/src/preferences.c Tue May 12 20:38:26 2009 +0000 @@ -894,6 +894,7 @@ help_window_show("overlay"); } +#if GTK_CHECK_VERSION(2, 10, 0) static void accel_store_populate(void) { LayoutWindow *lw; @@ -1155,6 +1156,7 @@ } #endif +#endif static GtkWidget *scrolled_notebook_page(GtkWidget *notebook, const gchar *title) { @@ -1851,6 +1853,7 @@ /* accelerators tab */ static void config_tab_accelerators(GtkWidget *notebook) { +#if GTK_CHECK_VERSION(2, 10, 0) GtkWidget *hbox; GtkWidget *vbox; GtkWidget *group; @@ -1964,9 +1967,9 @@ gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_widget_show(button); #endif +#endif } - /* Main preferences window */ static void config_window_create(void) {