# HG changeset patch # User nadvornik # Date 1242160706 0 # Node ID 088ed72ef3844e87a6c26df4cb6c83bd4b98201a # Parent ff1ae7618a17ddd29aa1b23b9c4bcb9cb3dab787 fixed compilation with older gtk diff -r ff1ae7618a17 -r 088ed72ef384 src/preferences.c --- a/src/preferences.c Tue May 12 20:17:03 2009 +0000 +++ b/src/preferences.c Tue May 12 20:38:26 2009 +0000 @@ -895,6 +895,7 @@ help_window_show("overlay"); } +#if GTK_CHECK_VERSION(2, 10, 0) static void accel_store_populate(void) { LayoutWindow *lw; @@ -1156,6 +1157,7 @@ } #endif +#endif static GtkWidget *scrolled_notebook_page(GtkWidget *notebook, const gchar *title) { @@ -1861,6 +1863,7 @@ /* accelerators tab */ static void config_tab_accelerators(GtkWidget *notebook) { +#if GTK_CHECK_VERSION(2, 10, 0) GtkWidget *hbox; GtkWidget *vbox; GtkWidget *group; @@ -1974,9 +1977,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) {