aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-03-24 07:25:30 -0500
committerMichael Terry <mike@mterry.name>2011-03-24 07:25:30 -0500
commitf76208b252ab4eeec71b9ac305ff5dd8283571d5 (patch)
tree1a7a45e34daa0320af5b56fa1badbf214ccb626a
parent2021a9554f85a9f78f1b65de30cb78572dab2752 (diff)
downloadayatana-indicator-datetime-f76208b252ab4eeec71b9ac305ff5dd8283571d5.tar.gz
ayatana-indicator-datetime-f76208b252ab4eeec71b9ac305ff5dd8283571d5.tar.bz2
ayatana-indicator-datetime-f76208b252ab4eeec71b9ac305ff5dd8283571d5.zip
drop debugging line and update times when user selects a zone
-rw-r--r--src/datetime-prefs-locations.c6
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
}