summaryrefslogtreecommitdiff
path: root/src/resample/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resample/plugin.c')
-rw-r--r--src/resample/plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resample/plugin.c b/src/resample/plugin.c
index 8017f69..e2772b4 100644
--- a/src/resample/plugin.c
+++ b/src/resample/plugin.c
@@ -188,7 +188,11 @@ static void resample_configure (void)
button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
gtk_box_pack_end ((GtkBox *) hbox, button, FALSE, FALSE, 0);
+#if GTK_CHECK_VERSION (2, 18, 0)
gtk_widget_set_can_default (button, TRUE);
+#else
+ GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
+#endif
gtk_widget_grab_default (button);
g_signal_connect_swapped (button, "clicked", (GCallback)
gtk_widget_destroy, window);