From 3343101d993edf10f9782e390a600ca568b840f7 Mon Sep 17 00:00:00 2001 From: Alan F Date: Fri, 25 Apr 2014 19:32:19 +0100 Subject: issue 260 - present (bring to front) the torrent add options dialog to the user when it is opened. --- src/trg-main-window.c | 1 + src/trg-torrent-add-dialog.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trg-main-window.c b/src/trg-main-window.c index 561dd59..dbac9a4 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -527,6 +527,7 @@ gint trg_add_from_filename(TrgMainWindow * win, gchar ** uris) filesList); gtk_widget_show_all(GTK_WIDGET(dialog)); + gtk_window_present(GTK_WINDOW(dialog)); } else { trg_upload *upload = g_new0(trg_upload, 1); diff --git a/src/trg-torrent-add-dialog.c b/src/trg-torrent-add-dialog.c index 5b406d4..9058757 100644 --- a/src/trg-torrent-add-dialog.c +++ b/src/trg-torrent-add-dialog.c @@ -908,8 +908,8 @@ void trg_torrent_add_dialog(TrgMainWindow * win, TrgClient * client) TrgTorrentAddDialog *dialog = trg_torrent_add_dialog_new_from_filenames(win, client, l); - gtk_widget_show_all(GTK_WIDGET(dialog)); + gtk_window_present(GTK_WINDOW(dialog)); } else { trg_upload *upload = g_new0(trg_upload, 1); -- cgit v1.2.3