diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/torrent.c | 2 | ||||
-rw-r--r-- | src/trg-main-window.c | 2 | ||||
-rw-r--r-- | src/trg-peers-model.h | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src/torrent.c b/src/torrent.c index e004e4c..9cc4d10 100644 --- a/src/torrent.c +++ b/src/torrent.c @@ -152,7 +152,7 @@ gboolean torrent_get_is_finished(JsonObject * t) gdouble torrent_get_percent_done(JsonObject * t) { JsonNode *percentDone = json_object_get_member(t, FIELD_PERCENTDONE); - GValue a; + GValue a = { 0 }; json_node_get_value(percentDone, &a); switch (G_VALUE_TYPE(&a)) { case G_TYPE_INT64: diff --git a/src/trg-main-window.c b/src/trg-main-window.c index 92f7011..4e445c4 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -223,8 +223,6 @@ static void on_torrent_completed(TrgTorrentModel * model, notify_notification_attach_to_status_icon(notify, priv->statusIcon); #endif - - notify_notification_set_urgency(notify, NOTIFY_URGENCY_LOW); notify_notification_set_timeout(notify, 8000); diff --git a/src/trg-peers-model.h b/src/trg-peers-model.h index c5f17b0..c08598b 100644 --- a/src/trg-peers-model.h +++ b/src/trg-peers-model.h @@ -27,7 +27,7 @@ #include <gtk/gtk.h> #include <json-glib/json-glib.h> -#if HAVE_GEOIP +#ifdef HAVE_GEOIP #include <GeoIP.h> #endif #include <glib-object.h> |