[gnome-initial-setup] timezone: Hide the overlay when the user has selected a city
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] timezone: Hide the overlay when the user has selected a city
- Date: Thu, 31 Oct 2013 18:35:29 +0000 (UTC)
commit e81e49ca1940be4702018918663ead89ead27e19
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Oct 31 14:25:51 2013 -0400
timezone: Hide the overlay when the user has selected a city
.../pages/timezone/gis-timezone-page.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
index cb87080..6c2f514 100644
--- a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
+++ b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
@@ -53,6 +53,7 @@ struct _GisTimezonePagePrivate
GtkWidget *auto_result;
GtkWidget *search_button;
GtkWidget *search_entry;
+ GtkWidget *search_overlay;
GWeatherLocation *auto_location;
GWeatherLocation *current_location;
@@ -107,6 +108,8 @@ set_location (GisTimezonePage *page,
cc_timezone_map_set_location (CC_TIMEZONE_MAP (priv->map), location);
+ gtk_widget_set_visible (priv->search_overlay, (location != NULL));
+
if (location)
{
GWeatherTimezone *zone;
@@ -358,6 +361,7 @@ gis_timezone_page_class_init (GisTimezonePageClass *klass)
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisTimezonePage, auto_result);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisTimezonePage, search_button);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisTimezonePage, search_entry);
+ gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisTimezonePage, search_overlay);
page_class->page_id = PAGE_ID;
page_class->locale_changed = gis_timezone_page_locale_changed;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]