summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/trg-main-window.c2
-rw-r--r--src/trg-remote-prefs-dialog.c3
-rw-r--r--src/trg-torrent-props-dialog.c4
3 files changed, 3 insertions, 6 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index db68ea3..909156b 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -778,7 +778,7 @@ gboolean on_session_set(gpointer data) {
if (response->status == CURLE_OK || response->status == FAIL_RESPONSE_UNSUCCESSFUL)
dispatch_async(priv->client, session_get(), on_session_get, response->cb_data);
- trg_dialog_error_handler(TRG_MAIN_WINDOW(data), response);
+ trg_dialog_error_handler(TRG_MAIN_WINDOW(response->cb_data), response);
trg_response_free(response);
return FALSE;
diff --git a/src/trg-remote-prefs-dialog.c b/src/trg-remote-prefs-dialog.c
index 00be01a..9522b5c 100644
--- a/src/trg-remote-prefs-dialog.c
+++ b/src/trg-remote-prefs-dialog.c
@@ -402,7 +402,8 @@ static GObject *trg_remote_prefs_dialog_constructor(GType type,
gtk_container_set_border_width(GTK_CONTAINER(object), GUI_PAD);
- gtk_dialog_set_default_response(GTK_DIALOG(object), GTK_RESPONSE_OK);
+ gtk_dialog_set_default_response(GTK_DIALOG(object),
+ GTK_RESPONSE_OK);
gtk_dialog_set_alternative_button_order(GTK_DIALOG(object),
GTK_RESPONSE_OK, GTK_RESPONSE_CLOSE, -1);
diff --git a/src/trg-torrent-props-dialog.c b/src/trg-torrent-props-dialog.c
index 2ac11f5..cf8898d 100644
--- a/src/trg-torrent-props-dialog.c
+++ b/src/trg-torrent-props-dialog.c
@@ -261,10 +261,6 @@ static GObject *trg_torrent_props_dialog_constructor(GType type,
gtk_dialog_set_default_response(GTK_DIALOG(object),
GTK_RESPONSE_OK);
- gtk_dialog_set_alternative_button_order(GTK_DIALOG(object),
- GTK_RESPONSE_ACCEPT,
- GTK_RESPONSE_OK, -1);
-
g_signal_connect(G_OBJECT(object),
"response",
G_CALLBACK(trg_torrent_props_response_cb), NULL);