diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-04 14:40:06 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-04 14:40:06 +0000 |
commit | 4830642eba6b6dc741ee140088ee7e4be69ca8e8 (patch) | |
tree | 3617ba62085044f2bf73bd28b4e002e71d1fe020 | |
parent | f5fe60d8133ab3c7ca75fd80ed1c8d02d5e68e70 (diff) |
looks like GValue does initialising with = { 0 }
-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> |