summaryrefslogtreecommitdiff
path: root/src/trg-torrent-model.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-23 16:27:32 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-23 16:27:32 +0000
commitecacee36541bf3e4df775b465d5d1ecee3a65cce (patch)
treeb0bb4941dbe2c89bafc9ea97524cda4923f24695 /src/trg-torrent-model.c
parentcc9a1543b899d59fbc6db8dcdbd4122d910f25e6 (diff)
remember the last selected destination on moving torrents
Diffstat (limited to 'src/trg-torrent-model.c')
-rw-r--r--src/trg-torrent-model.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/trg-torrent-model.c b/src/trg-torrent-model.c
index fb60c37..79ce396 100644
--- a/src/trg-torrent-model.c
+++ b/src/trg-torrent-model.c
@@ -195,7 +195,7 @@ gboolean trg_torrent_model_is_remove_in_progress(TrgTorrentModel * model) {
(G_OBJECT(model), PROP_REMOVE_IN_PROGRESS));
}
-static gboolean trg_torrent_model_reload_dir_alises_foreachfunc(
+static gboolean trg_torrent_model_reload_dir_aliases_foreachfunc(
GtkTreeModel * model, GtkTreePath * path G_GNUC_UNUSED,
GtkTreeIter * iter, gpointer gdata) {
gchar *downloadDir, *shortDownloadDir;
@@ -214,10 +214,10 @@ static gboolean trg_torrent_model_reload_dir_alises_foreachfunc(
return FALSE;
}
-void trg_torrent_model_reload_dir_alises(TrgClient *tc, GtkTreeModel *model)
+void trg_torrent_model_reload_dir_aliases(TrgClient *tc, GtkTreeModel *model)
{
gtk_tree_model_foreach(model,
- trg_torrent_model_reload_dir_alises_foreachfunc, tc);
+ trg_torrent_model_reload_dir_aliases_foreachfunc, tc);
}
static gboolean trg_torrent_model_stats_scan_foreachfunc(GtkTreeModel * model,
@@ -300,7 +300,7 @@ gchar *shorten_download_dir(TrgClient *tc, const gchar *downloadDir) {
return g_strdup(downloadDir);
}
-static void update_torrent_iter(TrgTorrentModel * model, TrgClient *tc,
+static inline void update_torrent_iter(TrgTorrentModel * model, TrgClient *tc,
gint64 rpcv, gint64 serial, GtkTreeIter * iter, JsonObject * t,
trg_torrent_model_update_stats * stats) {
TrgTorrentModelPrivate *priv = TRG_TORRENT_MODEL_GET_PRIVATE(model);