[Pkg-privacy-commits] [nautilus-wipe] 139/224: Fix progress dialog padding and margins

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 19:45:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository nautilus-wipe.

commit 610b489a9cb02a5bf862c63386f93135d09c01e5
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Wed Aug 17 22:53:56 2011 +0200

    Fix progress dialog padding and margins
---
 nautilus-wipe/progress-dialog.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/nautilus-wipe/progress-dialog.c b/nautilus-wipe/progress-dialog.c
index fc52002..553d0a2 100644
--- a/nautilus-wipe/progress-dialog.c
+++ b/nautilus-wipe/progress-dialog.c
@@ -164,6 +164,7 @@ update_action_area_visibility (NautilusWipeProgressDialog *dialog,
 static void
 nautilus_wipe_progress_dialog_init (NautilusWipeProgressDialog *self)
 {
+  GtkWidget *content_area;
   GtkWidget *vbox;
   
   self->priv = GET_PRIVATE (self);
@@ -175,11 +176,16 @@ nautilus_wipe_progress_dialog_init (NautilusWipeProgressDialog *self)
   self->priv->canceled = FALSE;
   self->priv->auto_hide_action_area = FALSE;
   
-  vbox = gtk_dialog_get_content_area (GTK_DIALOG (self));
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
-  gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (self->priv->label), TRUE, TRUE, 7);
+  gtk_container_set_border_width (GTK_CONTAINER (self), 5);
+  content_area = gtk_dialog_get_content_area (GTK_DIALOG (self));
+  vbox = g_object_new (GTK_TYPE_VBOX,
+                       "spacing", 10, /* we add 2 around the progress bar */
+                       "border-width", 5, NULL);
+  gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0);
+  gtk_widget_show (GTK_WIDGET (vbox));
+  gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (self->priv->label), TRUE, TRUE, 0);
   gtk_widget_show (GTK_WIDGET (self->priv->label));
-  gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (self->priv->progress), FALSE, TRUE, 7);
+  gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (self->priv->progress), FALSE, TRUE, 2);
   gtk_widget_show (GTK_WIDGET (self->priv->progress));
   
   gtk_progress_bar_set_ellipsize (self->priv->progress, PANGO_ELLIPSIZE_END);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/nautilus-wipe.git



More information about the Pkg-privacy-commits mailing list