mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 05:52:48 -05:00
Delegate GTK window creation to gtkmain.c.
This is a weird thing to have to do, but it is necessary: the OS X PuTTY will need its top-level windows to be instances of a thing called GtkApplicationWindow, rather than plain GtkWindow. Hence, the actual creation of windows needs to be somewhere that isn't centralised between the two kinds of front end.
This commit is contained in:
@ -4120,7 +4120,7 @@ struct gui_data *new_session_window(Conf *conf, const char *geometry_string)
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
inst->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
inst->window = make_gtk_toplevel_window(inst);
|
||||
{
|
||||
const char *winclass = conf_get_str(inst->conf, CONF_winclass);
|
||||
if (*winclass)
|
||||
|
Reference in New Issue
Block a user