gnome-panel r11202 - branches/gnome-2-22/applets/clock



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

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

	Merged from trunk:

	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:
   branches/gnome-2-22/applets/clock/ChangeLog
   branches/gnome-2-22/applets/clock/clock-location-tile.c
   branches/gnome-2-22/applets/clock/clock.c

Modified: branches/gnome-2-22/applets/clock/clock-location-tile.c
==============================================================================
--- branches/gnome-2-22/applets/clock/clock-location-tile.c	(original)
+++ branches/gnome-2-22/applets/clock/clock-location-tile.c	Wed Aug  6 18:32:31 2008
@@ -354,8 +354,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: branches/gnome-2-22/applets/clock/clock.c
==============================================================================
--- branches/gnome-2-22/applets/clock/clock.c	(original)
+++ branches/gnome-2-22/applets/clock/clock.c	Wed Aug  6 18:32:31 2008
@@ -1142,6 +1142,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]