Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 100543 | Differences between
and this patch

Collapse All | Expand All

(-)gdm-2.6.0.9/gui/gdmflexiserver.c (-2 / +10 lines)
Lines 51-56 Link Here
51
static const char *server = NULL;
51
static const char *server = NULL;
52
static const char *chosen_server = NULL;
52
static const char *chosen_server = NULL;
53
static gboolean debug = FALSE;
53
static gboolean debug = FALSE;
54
static gboolean startnew = FALSE;
54
static char *auth_cookie = NULL;
55
static char *auth_cookie = NULL;
55
56
56
static int
57
static int
Lines 306-313 Link Here
306
	GtkWidget *treeview;
307
	GtkWidget *treeview;
307
	GtkTreeIter iter;
308
	GtkTreeIter iter;
308
	GtkTreeSelection *selection;
309
	GtkTreeSelection *selection;
310
	gint response;
309
311
310
	dialog = gtk_dialog_new_with_buttons (_("Open Displays"),
312
    if (startnew == TRUE) {
313
        return;
314
    } else {
315
        dialog = gtk_dialog_new_with_buttons (_("Open Displays"),
311
					      NULL /* parent */,
316
					      NULL /* parent */,
312
					      0 /* flags */,
317
					      0 /* flags */,
313
					      _("_Open New Display"),
318
					      _("_Open New Display"),
Lines 364-372 Link Here
364
					   FALSE);
369
					   FALSE);
365
370
366
	gtk_widget_show_all (dialog);
371
	gtk_widget_show_all (dialog);
372
	response = gtk_dialog_run (GTK_DIALOG (dialog));
373
    }
367
374
368
run_again:
375
run_again:
369
	switch (gtk_dialog_run (GTK_DIALOG (dialog))) {
376
    	switch (response) {
370
	case RESPONSE_OPEN_NEW_DISPLAY:
377
	case RESPONSE_OPEN_NEW_DISPLAY:
371
		gtk_widget_destroy (dialog);
378
		gtk_widget_destroy (dialog);
372
		/* just continue what you are doing */
379
		/* just continue what you are doing */
Lines 634-639 Link Here
634
	{ "no-lock", 'l', POPT_ARG_NONE, &no_lock, 0, N_("Do not lock current screen"), NULL },
641
	{ "no-lock", 'l', POPT_ARG_NONE, &no_lock, 0, N_("Do not lock current screen"), NULL },
635
	{ "debug", 'd', POPT_ARG_NONE, &debug, 0, N_("Debugging output"), NULL },
642
	{ "debug", 'd', POPT_ARG_NONE, &debug, 0, N_("Debugging output"), NULL },
636
	{ "authenticate", 'a', POPT_ARG_NONE, &authenticate, 0, N_("Authenticate before running --command"), NULL },
643
	{ "authenticate", 'a', POPT_ARG_NONE, &authenticate, 0, N_("Authenticate before running --command"), NULL },
644
	{ "startnew", 's', POPT_ARG_NONE, &startnew, 0, N_("Start new flexible session, do not show popup"), NULL },
637
	{ "monte-carlo-pi", 0, POPT_ARG_NONE, &monte_carlo_pi, 0, NULL, NULL },
645
	{ "monte-carlo-pi", 0, POPT_ARG_NONE, &monte_carlo_pi, 0, NULL, NULL },
638
	POPT_AUTOHELP
646
	POPT_AUTOHELP
639
	{ NULL, 0, 0, NULL, 0}
647
	{ NULL, 0, 0, NULL, 0}

Return to bug 100543