Skip to content

g_time_zone_new() has been deprecated

It needs to be replaced with g_time_zone_new_identifier
https://gitlab.xfce.org/xfce/xfce4-panel/-/blob/master/plugins/clock/clock-time.c#L180

clock-time.c: У функції ‘clock_time_set_property’:
clock-time.c:180:15: попередження: ‘g_time_zone_new’ вважається застарілим: Use 'g_time_zone_new_identifier' instead [-Wdeprecated-declarations]
  180 |               time->timezone = g_time_zone_new (str_value);
      |               ^~~~
У файлі, який включено у /usr/include/glib-2.0/glib/gdatetime.h:31,
                 з /usr/include/glib-2.0/glib/gbookmarkfile.h:26,
                 з /usr/include/glib-2.0/glib.h:37,
                 з clock-time.c:20:
/usr/include/glib-2.0/glib/gtimezone.h:57:25: зауваження: оголошено тут
   57 | GTimeZone *             g_time_zone_new                                 (const gchar *identifier);
      |                         ^~~~~~~~~~~~~~~
Edited by lindevel