[PATCH] Progress Text Tweak
- From: Martin Wehner <martin wehner epost de>
- To: nautilus-list gnome org
- Subject: [PATCH] Progress Text Tweak
- Date: Sun, 13 Jun 2004 17:33:35 +0200
I noticed the progress dialog shows the remaining time left now, which
is quite handy. But I also noted that gtk_progress_bar_set_text() makes
the bar change it's height when a text is first inserted, which makes
the whole dialog pop larger.
So I'd suggest inserting a space character at initialization which makes
the bar have it's final height from the beginning.
Martin
Index: libnautilus-private/nautilus-file-operations-progress.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file-operations-progress.c,v
retrieving revision 1.41
diff -u -p -w -r1.41 nautilus-file-operations-progress.c
--- libnautilus-private/nautilus-file-operations-progress.c 7 Jun 2004 15:12:12 -0000 1.41
+++ libnautilus-private/nautilus-file-operations-progress.c 13 Jun 2004 15:30:32 -0000
@@ -304,6 +304,8 @@ nautilus_file_operations_progress_init (
progress->details->progress_bar = gtk_progress_bar_new ();
gtk_window_set_default_size (GTK_WINDOW (progress), PROGRESS_DIALOG_WIDTH, -1);
gtk_box_pack_start (GTK_BOX (vbox), progress->details->progress_bar, FALSE, TRUE, 0);
+ /* prevent a resizing of the bar when a real text is inserted later */
+ gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progress->details->progress_bar), " ");
titled_label_table = GTK_TABLE (gtk_table_new (3, 2, FALSE));
gtk_table_set_row_spacings (titled_label_table, 4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]