[gnome-initial-setup/youre-welcome: 1/5] assistant: Hide the next button when requested
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/youre-welcome: 1/5] assistant: Hide the next button when requested
- Date: Thu, 6 Aug 2020 17:46:08 +0000 (UTC)
commit f0d8f6d9b54d3301eff5a5a2d32d45f3f7bcbee7
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 5 18:02:37 2020 -0400
assistant: Hide the next button when requested
Use the has-forward property of pages to hide the
"Next" button. This will be used in the future for
pages that have their own "Next" button and don't
need one in the header.
gnome-initial-setup/gis-assistant.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index 2ea0035b..14887f66 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -239,6 +239,10 @@ update_navigation_buttons (GisAssistant *assistant)
set_suggested_action_sensitive (next_widget, FALSE);
set_navigation_button (assistant, next_widget);
}
+
+ if (gis_page_get_has_forward (page)) {
+ gtk_widget_hide (next_widget);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]