diff options
author | Ted Gould <ted@gould.cx> | 2011-03-29 11:18:57 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-29 11:18:57 -0500 |
commit | 5e0da43a9b1a98225279161db5b5f574b409736f (patch) | |
tree | 5db05fce6fdcec93cb4f145561556132d675e295 /src/datetime-prefs-locations.c | |
parent | 72b47b902755c77611774e082e1f3f7d66f171f1 (diff) | |
parent | 143f495ab94cb006954c036cf29079cbb49d584b (diff) | |
download | ayatana-indicator-datetime-5e0da43a9b1a98225279161db5b5f574b409736f.tar.gz ayatana-indicator-datetime-5e0da43a9b1a98225279161db5b5f574b409736f.tar.bz2 ayatana-indicator-datetime-5e0da43a9b1a98225279161db5b5f574b409736f.zip |
Update to map to make it lovely and UTC fixes
Diffstat (limited to 'src/datetime-prefs-locations.c')
-rw-r--r-- | src/datetime-prefs-locations.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datetime-prefs-locations.c b/src/datetime-prefs-locations.c index 5e93a56..b8d9f8f 100644 --- a/src/datetime-prefs-locations.c +++ b/src/datetime-prefs-locations.c @@ -39,6 +39,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #define COL_TIME 1 #define COL_ZONE 2 +static gboolean update_times (TimezoneCompletion * completion); + static void handle_add (GtkWidget * button, GtkTreeView * tree) { @@ -103,8 +105,6 @@ timezone_selected (GtkEntryCompletion * widget, GtkTreeModel * model, TIMEZONE_COMPLETION_NAME, &name, -1); - g_debug("match selected: %s, %s", name, zone); - if (zone == NULL || zone[0] == 0) { const gchar * strlon, * strlat; gdouble lon = 0.0, lat = 0.0; @@ -132,6 +132,8 @@ timezone_selected (GtkEntryCompletion * widget, GtkTreeModel * model, gtk_list_store_set (store, store_iter, COL_NAME, name, COL_ZONE, zone, -1); } + update_times (TIMEZONE_COMPLETION (widget)); + return FALSE; // Do normal action too } |