mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -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:
parent
5e738877be
commit
37ec0b463f
@ -2883,8 +2883,11 @@ void set_dialog_action_area(GtkDialog *dlg, GtkWidget *w)
|
|||||||
w, FALSE, TRUE, 0);
|
w, FALSE, TRUE, 0);
|
||||||
gtk_widget_show(w);
|
gtk_widget_show(w);
|
||||||
gtk_widget_hide(gtk_dialog_get_action_area(dlg));
|
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);
|
g_object_set(G_OBJECT(dlg), "has-separator", TRUE, (const char *)NULL);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int do_config_box(const char *title, Conf *conf, int midsession,
|
int do_config_box(const char *title, Conf *conf, int midsession,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user