static void application_open (GApplication *app, GFile **files, gint n_files, const gchar *hint) { GList *windows; MainWindow *win; int i; windows = gtk_application_get_windows (GTK_APPLICATION (app)); if (windows) win = MAIN_WINDOW (windows->data); else win = main_window_new (APPLICATION (app)); for (i = 0; i < n_files; i++) main_window_open (win, files[i]); gtk_window_present (GTK_WINDOW (win)); }
/** * MAINTOFRONT Arexx Command. * * @param rxmsg the message defining the ARexx context. * @param args */ static void arexx_maintofront(struct RexxMsg *rxmsg, STRPTR args) { main_window_open(); }