r18063 - gnucash/trunk/src/gnome-utils - Commit patch for Bug 577221 – optimization update title only when changed
Phil Longstaff
plongstaff at code.gnucash.org
Tue Apr 28 20:53:32 EDT 2009
Author: plongstaff
Date: 2009-04-28 20:53:32 -0400 (Tue, 28 Apr 2009)
New Revision: 18063
Trac: http://svn.gnucash.org/trac/changeset/18063
Modified:
gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Commit patch for Bug 577221 – optimization update title only when changed
Patch by David Fries.
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2009-04-29 00:25:33 UTC (rev 18062)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2009-04-29 00:53:32 UTC (rev 18063)
@@ -1722,9 +1722,10 @@
return;
}
name = g_strstrip(g_strdup(name_in));
- if (*name == '\0') {
+ /* Optimization, if the name hasn't changed, don't update X. */
+ if (*name == '\0' || 0 == strcmp(name, gnc_plugin_page_get_page_name(page))) {
g_free(name);
- LEAVE("empty string");
+ LEAVE("empty string or name unchanged");
return;
}
More information about the gnucash-changes
mailing list