]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/gtkmain.c
Delegate GTK window creation to gtkmain.c.
[PuTTY.git] / unix / gtkmain.c
index 5e8b9fe25fcd5242202f53962a009fb72404b835..00db3464b6e48cb7703a9582710648d2d6a89811 100644 (file)
@@ -532,15 +532,27 @@ int do_cmdline(int argc, char **argv, int do_everything, int *allow_launch,
     return err;
 }
 
+GtkWidget *make_gtk_toplevel_window(void *frontend)
+{
+    return gtk_window_new(GTK_WINDOW_TOPLEVEL);
+}
+
 extern int cfgbox(Conf *conf);
 
-int pt_main(int argc, char **argv)
+int main(int argc, char **argv)
 {
     Conf *conf;
     int need_config_box;
 
     setlocale(LC_CTYPE, "");
 
+    {
+        /* Call the function in ux{putty,pterm}.c to do app-type
+         * specific setup */
+        extern void setup(int);
+        setup(TRUE);     /* TRUE means we are a one-session process */
+    }
+
     progname = argv[0];
 
     /*