[gnome-initial-setup] gis-assistant: Make the back/forward buttons insensitive, not invisible
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] gis-assistant: Make the back/forward buttons insensitive, not invisible
- Date: Fri, 18 Jan 2013 03:17:15 +0000 (UTC)
commit 5b49301c20dee8106c346809bc9eb119a466a8dd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 17 22:08:05 2013 -0500
gis-assistant: Make the back/forward buttons insensitive, not invisible
This means that buttons won't jump around on us.
gnome-initial-setup/gis-assistant.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index 334d4d5..9bfb3d3 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -149,13 +149,12 @@ update_navigation_buttons (GisAssistant *assistant)
page_priv = page->assistant_priv;
- can_go_forward = gis_page_get_complete (page);
- gtk_widget_set_sensitive (priv->forward, can_go_forward);
-
is_first_page = (page_priv->link->prev == NULL);
+ gtk_widget_set_sensitive (priv->back, !is_first_page);
+
is_last_page = (page_priv->link->next == NULL);
- gtk_widget_set_visible (priv->back, !is_first_page);
- gtk_widget_set_visible (priv->forward, !is_last_page);
+ can_go_forward = gis_page_get_complete (page) && !is_last_page;
+ gtk_widget_set_sensitive (priv->forward, can_go_forward);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]