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.
return err;
}
+GtkWidget *make_gtk_toplevel_window(void *frontend)
+{
+ return gtk_window_new(GTK_WINDOW_TOPLEVEL);
+}
+
extern int cfgbox(Conf *conf);
int main(int argc, char **argv)
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)
void launch_duplicate_session(Conf *conf);
void launch_new_session(void);
void launch_saved_session(const char *str);
+#ifdef MAY_REFER_TO_GTK_IN_HEADERS
+GtkWidget *make_gtk_toplevel_window(void *frontend);
+#endif
/* Defined in gtkcomm.c */
void gtkcomm_setup(void);