[gnome-initial-setup] assistant: Remove progress indicator
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] assistant: Remove progress indicator
- Date: Thu, 31 Oct 2013 22:42:59 +0000 (UTC)
commit ecc7ff533a39374a60f6cf9c10fdfb9b81c2d006
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Oct 31 18:31:15 2013 -0400
assistant: Remove progress indicator
gnome-initial-setup/gis-assistant.c | 43 ----------------------------------
gnome-initial-setup/gis-assistant.ui | 7 -----
2 files changed, 0 insertions(+), 50 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index d3a9a35..67f7651 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -53,7 +53,6 @@ struct _GisAssistantPrivate
GtkWidget *back;
GtkWidget *cancel;
- GtkWidget *progress_indicator;
GtkWidget *main_layout;
GtkWidget *spinner;
GtkWidget *titlebar;
@@ -165,44 +164,6 @@ gis_assistant_previous_page (GisAssistant *assistant)
}
static void
-remove_from_progress_indicator (GtkWidget *widget,
- gpointer user_data)
-{
- GisAssistantPrivate *priv = user_data;
- gtk_container_remove (GTK_CONTAINER (priv->progress_indicator), widget);
-}
-
-static void
-update_progress_indicator (GisAssistant *assistant)
-{
- GisAssistantPrivate *priv = gis_assistant_get_instance_private (assistant);
- GList *l;
-
- gtk_container_foreach (GTK_CONTAINER (priv->progress_indicator),
- remove_from_progress_indicator, priv);
-
- for (l = priv->pages; l != NULL; l = l->next)
- {
- GisPage *page = GIS_PAGE (l->data);
- GtkWidget *label;
-
- if (!gtk_widget_get_visible (GTK_WIDGET (page)))
- continue;
-
- label = gtk_label_new ("•");
-
- if (page != priv->current_page)
- {
- GtkStyleContext *context = gtk_widget_get_style_context (label);
- gtk_style_context_add_class (context, "dim-label");
- }
-
- gtk_container_add (GTK_CONTAINER (priv->progress_indicator), label);
- gtk_widget_show (label);
- }
-}
-
-static void
set_suggested_action_sensitive (GtkWidget *widget,
gboolean sensitive)
{
@@ -334,8 +295,6 @@ gis_assistant_add_page (GisAssistant *assistant,
if (priv->current_page->assistant_priv->link == link->prev)
update_navigation_buttons (assistant);
-
- update_progress_indicator (assistant);
}
GisPage *
@@ -407,7 +366,6 @@ update_current_page (GisAssistant *assistant,
update_titlebar (assistant);
update_applying_state (assistant);
update_navigation_buttons (assistant);
- update_progress_indicator (assistant);
gis_page_shown (page);
}
@@ -503,7 +461,6 @@ gis_assistant_class_init (GisAssistantClass *klass)
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, back);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, cancel);
- gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, progress_indicator);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, main_layout);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, spinner);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, titlebar);
diff --git a/gnome-initial-setup/gis-assistant.ui b/gnome-initial-setup/gis-assistant.ui
index 4434646..911776f 100644
--- a/gnome-initial-setup/gis-assistant.ui
+++ b/gnome-initial-setup/gis-assistant.ui
@@ -68,12 +68,5 @@
</child>
</object>
</child>
- <child>
- <object class="GtkBox" id="progress_indicator">
- <property name="visible">True</property>
- <property name="orientation">horizontal</property>
- <property name="halign">center</property>
- </object>
- </child>
</template>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]