datetime: make s/_/ / simpler
By using the same code as in the main panel code.
This commit is contained in:
parent
573179ce11
commit
7fa7ed9c8d
1 changed files with 2 additions and 4 deletions
|
@ -355,7 +355,7 @@ cc_timezone_map_expose_event (GtkWidget *widget,
|
|||
PangoRectangle rect;
|
||||
gint width, height;
|
||||
gdouble x1, y1, radius = 5;
|
||||
gchar *zone, *s;
|
||||
gchar *zone;
|
||||
|
||||
pointx = convert_longtitude_to_x (priv->location->longitude, alloc.width);
|
||||
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);
|
||||
|
||||
/* convert underscores to spaces */
|
||||
for (s = zone; *s; s++)
|
||||
if (*s == '_')
|
||||
*s = ' ';
|
||||
g_strdelimit (zone, "_", ' ');
|
||||
|
||||
layout = gtk_widget_create_pango_layout (widget, zone);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue