Use a font size of "smaller" when printing to the splash

screen. Should solve 104436 except for people running with huge system
fonts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13539 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-03-08 06:13:28 +00:00
parent a1b27bc933
commit 1a2bd156cf
2 changed files with 20 additions and 4 deletions

View File

@ -1,5 +1,9 @@
2006-03-07 David Hampton <hampton@employees.org> 2006-03-07 David Hampton <hampton@employees.org>
* src/gnome-utils/gnc-splash.c: Use a font size of "smaller" when
printing to the splash screen. Should solve 104436 except for
people running with huge system fonts.
* src/gnome-utils/gnc-tree-view-account.[ch]: Relabel column * src/gnome-utils/gnc-tree-view-account.[ch]: Relabel column
titles from "XXX (Report)" to a label that includes the currency titles from "XXX (Report)" to a label that includes the currency
mnemonic (e.g. "Total (EUR)"). Closes 118695. mnemonic (e.g. "Total (EUR)"). Closes 118695.

View File

@ -29,6 +29,7 @@
#include "gnc-splash.h" #include "gnc-splash.h"
#include "gnc-version.h" #include "gnc-version.h"
#define MARKUP_STRING "<span size='small'>%s</span>"
static GtkWidget * splash = NULL; static GtkWidget * splash = NULL;
static GtkWidget * progress = NULL; static GtkWidget * progress = NULL;
@ -57,7 +58,7 @@ gnc_show_splash_screen (void)
GtkWidget *vbox; GtkWidget *vbox;
GtkWidget *version; GtkWidget *version;
GtkWidget *separator; GtkWidget *separator;
gchar *ver_string; gchar *ver_string, *markup;
if (splash) return; if (splash) return;
@ -92,10 +93,17 @@ gnc_show_splash_screen (void)
VERSION, GNUCASH_SVN_REV, GNUCASH_BUILD_DATE); VERSION, GNUCASH_SVN_REV, GNUCASH_BUILD_DATE);
#endif #endif
version = gtk_label_new (ver_string); version = gtk_label_new(NULL);
markup = g_markup_printf_escaped(MARKUP_STRING, ver_string);
gtk_label_set_markup(GTK_LABEL(version), markup);
g_free(markup);
g_free(ver_string); g_free(ver_string);
separator = gtk_hseparator_new(); separator = gtk_hseparator_new();
progress = gtk_label_new(_("Loading..."));
progress = gtk_label_new(NULL);
markup = g_markup_printf_escaped(MARKUP_STRING, _("Loading..."));
gtk_label_set_markup(GTK_LABEL(progress), markup);
g_free(markup);
gtk_container_add (GTK_CONTAINER (frame), pixmap); gtk_container_add (GTK_CONTAINER (frame), pixmap);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
@ -127,9 +135,13 @@ gnc_destroy_splash_screen (void)
void void
gnc_update_splash_screen (const gchar *string) gnc_update_splash_screen (const gchar *string)
{ {
gchar *markup;
if (progress) if (progress)
{ {
gtk_label_set_text (GTK_LABEL(progress), string); markup = g_markup_printf_escaped(MARKUP_STRING, string);
gtk_label_set_markup (GTK_LABEL(progress), markup);
g_free (markup);
/* make sure new text is up */ /* make sure new text is up */
while (gtk_events_pending ()) while (gtk_events_pending ())