[libgweather/benzea/wip-variant-backend] location-entry: Use the ref_world() API in to fetch the top
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/benzea/wip-variant-backend] location-entry: Use the ref_world() API in to fetch the top
- Date: Sun, 26 Apr 2020 19:48:35 +0000 (UTC)
commit a85ba80237461654bcf3f873fabd4ff964eb1ab1
Author: Benjamin Berg <bberg redhat com>
Date: Sun Apr 26 21:36:40 2020 +0200
location-entry: Use the ref_world() API in to fetch the top
libgweather/gweather-location-entry.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgweather/gweather-location-entry.c b/libgweather/gweather-location-entry.c
index 2ff63be..c161467 100644
--- a/libgweather/gweather-location-entry.c
+++ b/libgweather/gweather-location-entry.c
@@ -175,7 +175,7 @@ constructed (GObject *object)
entry = GWEATHER_LOCATION_ENTRY (object);
if (!entry->priv->top)
- entry->priv->top = gweather_location_ref (gweather_location_get_world ());
+ entry->priv->top = gweather_location_ref_world ();
store = gtk_tree_store_new (4, G_TYPE_STRING, GWEATHER_TYPE_LOCATION, G_TYPE_STRING, G_TYPE_STRING);
fill_location_entry_model (store, entry->priv->top, NULL, NULL, NULL, entry->priv->show_named_timezones);
@@ -825,7 +825,7 @@ _no_matches (GtkEntryCompletion *completion, GWeatherLocationEntry *entry) {
* Creates a new #GWeatherLocationEntry.
*
* @top will normally be the location returned from
- * gweather_location_get_world(), but you can create an entry that
+ * gweather_location_ref_world(), but you can create an entry that
* only accepts a smaller set of locations if you want.
*
* Return value: the new #GWeatherLocationEntry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]