[gnome-maps] Add NULL sentinels to g_object(get|set) calls
- From: Dominique Leuenberger <dleuen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Add NULL sentinels to g_object(get|set) calls
- Date: Wed, 18 Feb 2015 10:24:37 +0000 (UTC)
commit 6834d4d93cbae1782cc192354777f019f9b748ff
Author: Dominique Leuenberger <dimstar opensuse org>
Date: Wed Feb 18 09:36:17 2015 +0100
Add NULL sentinels to g_object(get|set) calls
lib/maps-contact-store.c | 8 ++++----
lib/maps-contact.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/lib/maps-contact-store.c b/lib/maps-contact-store.c
index 9045d12..112ed09 100644
--- a/lib/maps-contact-store.c
+++ b/lib/maps-contact-store.c
@@ -125,14 +125,14 @@ get_contact (FolksIndividual *individual)
contact = maps_contact_new ();
g_object_set (G_OBJECT (contact), "name",
- folks_individual_get_display_name (individual));
+ folks_individual_get_display_name (individual), NULL);
g_object_set (G_OBJECT (contact), "id",
- folks_individual_get_id (individual));
+ folks_individual_get_id (individual), NULL);
g_object_get (G_OBJECT (individual), "avatar",
- &avatar);
+ &avatar, NULL);
g_object_set (G_OBJECT (contact), "icon",
- avatar);
+ avatar, NULL);
while (gee_iterator_has_next (iter))
{
diff --git a/lib/maps-contact.c b/lib/maps-contact.c
index 06ccf8f..237c0b8 100644
--- a/lib/maps-contact.c
+++ b/lib/maps-contact.c
@@ -269,9 +269,9 @@ on_geocode_search_async (GeocodeForward *forward,
/* Keep the naming, but add location and osm info */
geocode_place_set_location (data->place, location);
g_object_set (G_OBJECT (data->place), "osm-type",
- geocode_place_get_osm_type (place));
+ geocode_place_get_osm_type (place), NULL);
g_object_set (G_OBJECT (data->place), "osm-id",
- geocode_place_get_osm_id (place));
+ geocode_place_get_osm_id (place), NULL);
/* Update the contact bounding box */
if (contact->priv->bbox == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]