summaryrefslogtreecommitdiff
path: root/gnome-about
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2002-11-04 22:54:20 +0000
committerMark McLoughlin <mmclouglin@src.gnome.org>2002-11-04 22:54:20 +0000
commit1d220165a6cc3f7c76bf3c0b424a56790e011ad2 (patch)
treedb0c0f8be55bae805c3cf5a9cc67790748e195c1 /gnome-about
parente57a1433653034af44cde1504488c05e9cf99398 (diff)
downloadgnome-desktop-1d220165a6cc3f7c76bf3c0b424a56790e011ad2.tar.gz
do not translate pango markup, only translate the strings themeselves.
2002-11-05 Mark McLoughlin <mark@skynet.ie> * gnome-about.c: (draw_intro), (draw_end): do not translate pango markup, only translate the strings themeselves. Fixes #84779, #97073.
Diffstat (limited to 'gnome-about')
-rw-r--r--gnome-about/ChangeLog6
-rw-r--r--gnome-about/gnome-about.c24
2 files changed, 22 insertions, 8 deletions
diff --git a/gnome-about/ChangeLog b/gnome-about/ChangeLog
index 4c369428..7e93f24c 100644
--- a/gnome-about/ChangeLog
+++ b/gnome-about/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-05 Mark McLoughlin <mark@skynet.ie>
+
+ * gnome-about.c: (draw_intro), (draw_end): do not
+ translate pango markup, only translate the strings
+ themeselves. Fixes #84779, #97073.
+
2002-11-04 Kristian Rietveld <kris@gtk.org>
* contributors.h: Added myself.
diff --git a/gnome-about/gnome-about.c b/gnome-about/gnome-about.c
index b0736555..fc43afec 100644
--- a/gnome-about/gnome-about.c
+++ b/gnome-about/gnome-about.c
@@ -427,12 +427,16 @@ keypress_scroll (GtkWidget *widget,
static void
draw_intro (void)
{
- static int initial_pause = 50;
- static int x = G_MININT;
- static int y = G_MININT;
- static int layout_width = 0;
+ static int initial_pause = 50;
+ static int x = G_MININT;
+ static int y = G_MININT;
+ static int layout_width = 0;
+ char *markup;
+
+ markup = g_strdup_printf ("<big><b>%s</b></big>", _("GNOME Was Brought To You By"));
+ pango_layout_set_markup (layout, markup, -1);
+ g_free (markup);
- pango_layout_set_markup (layout, _("<big><b>GNOME Was Brought To You By</b></big>"), -1);
if (x == G_MININT) {
PangoRectangle extents;
@@ -563,10 +567,14 @@ draw_names ()
static void
draw_end ()
{
- PangoRectangle extents;
- static int pause = 100;
+ PangoRectangle extents;
+ static int pause = 100;
+ char *markup;
+
+ markup = g_strdup_printf ("<big><b>%s</b></big>", _("And Many More ..."));
+ pango_layout_set_markup (layout, markup, -1);
+ g_free (markup);
- pango_layout_set_markup (layout, _("<big><b>And Many More ...</b></big>"), -1);
pango_layout_get_pixel_extents (layout, NULL, &extents);
gdk_draw_layout (pixmap, area->style->white_gc,