summaryrefslogtreecommitdiff
path: root/src/trg-torrent-move-dialog.c
diff options
context:
space:
mode:
authorGravatar Patrick Griffis <tingping@tingping.se>2016-02-17 10:09:31 -0500
committerGravatar Patrick Griffis <tingping@tingping.se>2016-02-17 15:15:41 -0500
commitb6bb8fb323f3885e106c0606de050c0437ccf81f (patch)
tree4b45ef1277ce646a8b42eea7ae52b4264d89b2cf /src/trg-torrent-move-dialog.c
parent2ad81ecf9806b3842fed99afe29adcb327801b83 (diff)
Redesign destination combobox
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);