summaryrefslogtreecommitdiff
path: root/src/trg-torrent-move-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-torrent-move-dialog.c')
-rw-r--r--src/trg-torrent-move-dialog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/trg-torrent-move-dialog.c b/src/trg-torrent-move-dialog.c
index 555ea09..fec1932 100644
--- a/src/trg-torrent-move-dialog.c
+++ b/src/trg-torrent-move-dialog.c
@@ -80,7 +80,7 @@ trg_torrent_move_response_cb(GtkDialog * dlg, gint res_id, gpointer data)
gtk_widget_destroy(GTK_WIDGET(dlg));
}
-static void location_changed(GtkWidget * w, gpointer data)
+static void location_changed(GtkComboBox * w, gpointer data)
{
TrgTorrentMoveDialogPrivate *priv =
TRG_TORRENT_MOVE_DIALOG_GET_PRIVATE(data);
@@ -114,8 +114,7 @@ static GObject *trg_torrent_move_dialog_constructor(GType type,
w = priv->location_combo =
trg_destination_combo_new(priv->client,
TRG_PREFS_KEY_LAST_MOVE_DESTINATION);
- g_signal_connect(trg_destination_combo_get_entry
- (TRG_DESTINATION_COMBO(w)), "changed",
+ g_signal_connect(w, "changed",
G_CALLBACK(location_changed), object);
hig_workarea_add_row(t, &row, _("Location:"), w, NULL);