[gnome-initial-setup] gis-assistant: Hide the back button on the first page
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] gis-assistant: Hide the back button on the first page
- Date: Wed, 14 Nov 2012 18:14:56 +0000 (UTC)
commit dab107c4e0c97d3e123cd0d278ee593514cead82
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Nov 14 12:32:54 2012 -0500
gis-assistant: Hide the back button on the first page
gnome-initial-setup/gis-assistant.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index da95640..858d6c6 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -127,21 +127,19 @@ update_navigation_buttons (GisAssistant *assistant)
GisAssistantPrivate *priv = assistant->priv;
GisPage *page = priv->current_page;
GisAssistantPagePrivate *page_priv;
- gboolean can_go_backward, can_go_forward, is_last_page;
+ gboolean can_go_forward, is_first_page, is_last_page;
if (page == NULL)
return;
page_priv = page->assistant_priv;
- can_go_backward = (page_priv->link->prev != NULL);
- gtk_widget_set_sensitive (priv->back, can_go_backward);
-
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);
is_last_page = (page_priv->link->next == NULL);
- gtk_widget_set_visible (priv->back, !is_last_page);
+ gtk_widget_set_visible (priv->back, !is_first_page && !is_last_page);
gtk_widget_set_visible (priv->forward, !is_last_page);
if (gis_page_get_use_arrow_buttons (page))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]