summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alan F <ajf@eth0.org.uk>2014-04-25 19:32:19 +0100
committerGravatar Alan F <ajf@eth0.org.uk>2014-04-25 19:32:19 +0100
commit3343101d993edf10f9782e390a600ca568b840f7 (patch)
treec2e4afea12f1bb591e257ddbb08576364c8408f5
parent9f2d49a27efdfe941ed35753ceccf1c953667053 (diff)
issue 260 - present (bring to front) the torrent add options dialog to the user when it is opened.
-rw-r--r--src/trg-main-window.c1
-rw-r--r--src/trg-torrent-add-dialog.c2
2 files changed, 2 insertions, 1 deletions
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);