# HG changeset patch # User nadvornik # Date 1242160706 0 # Node ID 8a04e59ea31c5c7622b69b67bb9a19dd46a48a91 # Parent eaef384a92e4bf0de6cf5a985d4287f188395a6f fixed compilation with older gtk diff -r eaef384a92e4 -r 8a04e59ea31c 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 @@ -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) {