[Gnucash-changes] r14298 - gnucash/trunk - The progress bar changes
size when text is added/removed. Prevent
David Hampton
hampton at cvs.gnucash.org
Fri Jun 2 17:43:19 EDT 2006
Author: hampton
Date: 2006-06-02 17:43:18 -0400 (Fri, 02 Jun 2006)
New Revision: 14298
Trac: http://svn.gnucash.org/trac/changeset/14298
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/gnc-main-window.c
gnucash/trunk/src/gnome-utils/gnc-window.c
Log:
The progress bar changes size when text is added/removed. Prevent
these changes by setting the text to a single space when there is no
text to display. Fixes #343455.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-06-02 21:02:43 UTC (rev 14297)
+++ gnucash/trunk/ChangeLog 2006-06-02 21:43:18 UTC (rev 14298)
@@ -1,5 +1,11 @@
2006-06-02 David Hampton <hampton at employees.org>
+ * src/gnome-utils/gnc-main-window.c:
+ * src/gnome-utils/gnc-window.c: The progress bar changes size when
+ text is added/removed. Prevent these changes by setting the text
+ to a single space when there is no text to display. Fixes
+ #343455.
+
* src/gnome/window-reconcile.c: Limit the reconciliation date to
the past or today, never the future. Fixes #343527.
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-06-02 21:02:43 UTC (rev 14297)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-06-02 21:43:18 UTC (rev 14298)
@@ -2647,6 +2647,7 @@
gtk_statusbar_set_has_resize_grip( GTK_STATUSBAR(priv->statusbar), TRUE );
priv->progressbar = gtk_progress_bar_new ();
+ gtk_progress_bar_set_text(GTK_PROGRESS_BAR(priv->progressbar), " ");
gtk_widget_show (priv->progressbar);
gtk_box_pack_start (GTK_BOX (priv->statusbar), priv->progressbar,
FALSE, TRUE, 0);
Modified: gnucash/trunk/src/gnome-utils/gnc-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-window.c 2006-06-02 21:02:43 UTC (rev 14297)
+++ gnucash/trunk/src/gnome-utils/gnc-window.c 2006-06-02 21:43:18 UTC (rev 14298)
@@ -174,7 +174,7 @@
}
if (percentage < 0) {
- gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progressbar), NULL);
+ gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progressbar), " ");
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progressbar), 0.0);
if (GNC_WINDOW_GET_IFACE(window)->ui_set_sensitive != NULL)
GNC_WINDOW_GET_IFACE(window)->ui_set_sensitive(window, TRUE);
More information about the gnucash-changes
mailing list