From 37ec0b463fd65f80c5cb7ca50b6b318b5d66bc24 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 22 Aug 2015 11:09:06 +0100 Subject: [PATCH] In GTK3, don't use the "has-separator" GtkDialog property. It doesn't exist any more, so the attempt to set it was generating an annoying runtime warning message. --- unix/gtkdlg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index b18ef996..d4d0e828 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -2883,8 +2883,11 @@ void set_dialog_action_area(GtkDialog *dlg, GtkWidget *w) w, FALSE, TRUE, 0); gtk_widget_show(w); gtk_widget_hide(gtk_dialog_get_action_area(dlg)); +#if !GTK_CHECK_VERSION(3,0,0) + /* This cosmetic property is withdrawn in GTK 3's GtkDialog */ g_object_set(G_OBJECT(dlg), "has-separator", TRUE, (const char *)NULL); #endif +#endif } int do_config_box(const char *title, Conf *conf, int midsession,