[gtk/wip/baedert/for-master: 446/447] clocks: Avoid shadowing a global from time.h



commit c536c2d2b56b2a27be00e86a850f7c692be22fd5
Author: Timm Bäder <mail baedert org>
Date:   Fri Jun 5 06:26:25 2020 +0200

    clocks: Avoid shadowing a global from time.h
    
    Sad but true.

 demos/gtk-demo/listview_clocks.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/listview_clocks.c b/demos/gtk-demo/listview_clocks.c
index 49108ac280..9b9a399aba 100644
--- a/demos/gtk-demo/listview_clocks.c
+++ b/demos/gtk-demo/listview_clocks.c
@@ -309,16 +309,16 @@ gtk_clock_init (GtkClock *self)
 
 static GtkClock *
 gtk_clock_new (const char *location,
-               GTimeZone  *timezone)
+               GTimeZone  *_timezone)
 {
   GtkClock *result;
 
   result = g_object_new (GTK_TYPE_CLOCK,
                          "location", location,
-                         "timezone", timezone,
+                         "timezone", _timezone,
                          NULL);
 
-  g_clear_pointer (&timezone, g_time_zone_unref);
+  g_clear_pointer (&_timezone, g_time_zone_unref);
 
   return result;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]