[gnome-packagekit] trivial: Move the progressbar to the RHS of the dialog
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] trivial: Move the progressbar to the RHS of the dialog
- Date: Fri, 11 May 2012 16:16:52 +0000 (UTC)
commit df7c7366adc3dba78ddc2a1adc1c59f0ebe54996
Author: Richard Hughes <richard hughsie com>
Date: Fri May 11 16:07:26 2012 +0100
trivial: Move the progressbar to the RHS of the dialog
data/gpk-application.ui | 22 +++++++++++-----------
src/gpk-application.c | 5 ++++-
2 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/data/gpk-application.ui b/data/gpk-application.ui
index 373d5f6..0805b75 100644
--- a/data/gpk-application.ui
+++ b/data/gpk-application.ui
@@ -158,17 +158,6 @@
<property name="position">0</property>
</packing>
</child>
- <child>
- <object class="GtkProgressBar" id="progressbar_progress">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
</object>
<packing>
<property name="expand">False</property>
@@ -523,6 +512,17 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkProgressBar" id="progressbar_progress">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">True</property>
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 8e32257..a26bcab 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -646,6 +646,10 @@ gpk_application_status_changed_timeout_cb (GpkApplicationPrivate *priv)
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_cancel"));
gtk_widget_show (widget);
+ /* show progressbar */
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "progressbar_progress"));
+ gtk_widget_show (widget);
+
/* never repeat */
priv->status_id = 0;
return FALSE;
@@ -716,7 +720,6 @@ gpk_application_progress_cb (PkProgress *progress, PkProgressType type, GpkAppli
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "progressbar_progress"));
if (percentage > 0) {
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (widget), (gfloat) percentage / 100.0f);
- gtk_widget_show (widget);
} else {
gtk_widget_hide (widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]