1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

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.
This commit is contained in:
Simon Tatham 2015-08-22 11:09:06 +01:00
parent 5e738877be
commit 37ec0b463f

View File

@ -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,