gnome-panel r11031 - trunk/applets/clock
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r11031 - trunk/applets/clock
- Date: Thu, 10 Apr 2008 06:34:02 +0100 (BST)
Author: vuntz
Date: Thu Apr 10 06:34:01 2008
New Revision: 11031
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11031&view=rev
Log:
2008-04-10 Vincent Untz <vuntz gnome org>
* clock-location-tile.c: (clock_location_tile_fill): actually, we don't
have to call can_set_system_timezone() here since the button label is
dynamically set on EnterNotify anyway. Again, save some time quite
easiliy.
Modified:
trunk/applets/clock/ChangeLog
trunk/applets/clock/clock-location-tile.c
Modified: trunk/applets/clock/clock-location-tile.c
==============================================================================
--- trunk/applets/clock/clock-location-tile.c (original)
+++ trunk/applets/clock/clock-location-tile.c Thu Apr 10 06:34:01 2008
@@ -259,7 +259,6 @@
GtkWidget *alignment;
GtkWidget *tile;
GtkWidget *head_section;
- gint can_set;
priv->box = gtk_event_box_new ();
@@ -297,16 +296,9 @@
gtk_box_pack_start (GTK_BOX (box), align, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (box), priv->time_label, FALSE, FALSE, 0);
- can_set = can_set_system_timezone ();
-
priv->current_button = gtk_button_new ();
+ /* The correct label is set on EnterNotify events */
priv->current_label = gtk_label_new ("");
- if (can_set != 0) {
- gtk_label_set_markup (GTK_LABEL (priv->current_label),
- can_set == 1 ?
- _("<small>Set...</small>") :
- _("<small>Set</small>"));
- }
gtk_widget_show (priv->current_label);
gtk_widget_set_no_show_all (priv->current_button, TRUE);
gtk_container_add (GTK_CONTAINER (priv->current_button), priv->current_label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]