datetime: make s/_/ / simpler

By using the same code as in the main panel code.
This commit is contained in:
Bastien Nocera 2010-09-21 14:05:48 +01:00
parent 573179ce11
commit 7fa7ed9c8d

View file

@ -355,7 +355,7 @@ cc_timezone_map_expose_event (GtkWidget *widget,
PangoRectangle rect; PangoRectangle rect;
gint width, height; gint width, height;
gdouble x1, y1, radius = 5; gdouble x1, y1, radius = 5;
gchar *zone, *s; gchar *zone;
pointx = convert_longtitude_to_x (priv->location->longitude, alloc.width); pointx = convert_longtitude_to_x (priv->location->longitude, alloc.width);
pointy = convert_latitude_to_y (priv->location->latitude, alloc.height); pointy = convert_latitude_to_y (priv->location->latitude, alloc.height);
@ -369,9 +369,7 @@ cc_timezone_map_expose_event (GtkWidget *widget,
zone = g_strdup (priv->location->zone); zone = g_strdup (priv->location->zone);
/* convert underscores to spaces */ /* convert underscores to spaces */
for (s = zone; *s; s++) g_strdelimit (zone, "_", ' ');
if (*s == '_')
*s = ' ';
layout = gtk_widget_create_pango_layout (widget, zone); layout = gtk_widget_create_pango_layout (widget, zone);