View | Details | Raw Unified | Return to bug 44212
Collapse All | Expand All

(-)a/src/account.c (-2 / +10 lines)
Lines 384-393 GList *account_get_list(void) Link Here
384
384
385
void account_edit_focus(void)
385
void account_edit_focus(void)
386
{
386
{
387
	MainWindow *mainwin;
388
387
	if (edit_account.window == NULL) {
389
	if (edit_account.window == NULL) {
388
		return;
390
		return;
389
	}
391
	}
390
	manage_window_set_transient(GTK_WINDOW(edit_account.window));
392
	/* Keep the window above its parent: with no focused window (e.g. after
393
	 * the account preferences dialog has been closed) fall back to the main
394
	 * window, otherwise a fullscreen main window covers this modal window */
395
	if (focus_window && focus_window != edit_account.window)
396
		manage_window_set_transient(GTK_WINDOW(edit_account.window));
397
	else if ((mainwin = mainwindow_get_mainwindow()) != NULL)
398
		gtk_window_set_transient_for(GTK_WINDOW(edit_account.window),
399
					     GTK_WINDOW(mainwin->window));
391
	gtk_widget_grab_focus(edit_account.close_btn);
400
	gtk_widget_grab_focus(edit_account.close_btn);
392
	gtk_widget_show(edit_account.window);
401
	gtk_widget_show(edit_account.window);
393
	gtk_window_set_modal(GTK_WINDOW(edit_account.window), TRUE);
402
	gtk_window_set_modal(GTK_WINDOW(edit_account.window), TRUE);
394
- 

Return to bug 44212