gnome-panel r11201 - trunk/applets/clock



Author: federico
Date: Wed Aug  6 18:20:16 2008
New Revision: 11201
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11201&view=rev

Log:
bnc414458 - Location tiles appear in 24-hour format initially
2008-08-06  Federico Mena Quintero  <federico novell com>

	https://bugzilla.novell.com/show_bug.cgi?id=414458 - When in
	12-hour mode, bringing up the clock window shows the location
	tiles in 24-hour format, but they get updated to 12-hour format at
	the next minute.

	* clock-location-tile.c (clock_location_tile_fill): Don't refresh
	the tile during creation (this gets called from
	clock_location_tile_new()), since the caller will not have had a
	chance to connect to the "need_clock_format" signal yet.

	* clock.c (create_cities_section): Refresh the location tile here,
	after connecting to its signals.

Signed-off-by: Federico Mena Quintero <federico novell com>


Modified:
   trunk/applets/clock/ChangeLog
   trunk/applets/clock/clock-location-tile.c
   trunk/applets/clock/clock.c

Modified: trunk/applets/clock/clock-location-tile.c
==============================================================================
--- trunk/applets/clock/clock-location-tile.c	(original)
+++ trunk/applets/clock/clock-location-tile.c	Wed Aug  6 18:20:16 2008
@@ -364,8 +364,6 @@
         gtk_container_add (GTK_CONTAINER (alignment), tile);
         gtk_container_add (GTK_CONTAINER (priv->box), alignment);
         gtk_container_add (GTK_CONTAINER (this), priv->box);
-
-        clock_location_tile_refresh (this, TRUE);
 }
 
 static gboolean

Modified: trunk/applets/clock/clock.c
==============================================================================
--- trunk/applets/clock/clock.c	(original)
+++ trunk/applets/clock/clock.c	Wed Aug  6 18:20:16 2008
@@ -1125,6 +1125,8 @@
 
                 cd->location_tiles = g_list_prepend (cd->location_tiles, city);
 
+                clock_location_tile_refresh (city, TRUE);
+
                 node = g_list_next (node);
         }
 



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