aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-08-21 06:37:30 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-08-21 06:37:30 +0800
commit1f651552bc92ff527dbc660e15a97f69b6b0ea08 (patch)
treecce419c1f5feb6c7ce1675ce52905685b3fff5e3 /mail
parentd9b2f929a9b8a90120b970b011fe1be7fe3f8865 (diff)
downloadgsoc2013-evolution-1f651552bc92ff527dbc660e15a97f69b6b0ea08.tar
gsoc2013-evolution-1f651552bc92ff527dbc660e15a97f69b6b0ea08.tar.gz
gsoc2013-evolution-1f651552bc92ff527dbc660e15a97f69b6b0ea08.tar.bz2
gsoc2013-evolution-1f651552bc92ff527dbc660e15a97f69b6b0ea08.tar.lz
gsoc2013-evolution-1f651552bc92ff527dbc660e15a97f69b6b0ea08.tar.xz
gsoc2013-evolution-1f651552bc92ff527dbc660e15a97f69b6b0ea08.tar.zst
gsoc2013-evolution-1f651552bc92ff527dbc660e15a97f69b6b0ea08.zip
be sure that widget is realized so that e_utf8_from_gtk_string works
2002-08-20 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (do_mail_print): be sure that widget is realized so that e_utf8_from_gtk_string works properly (footer_print_cb): save/restore svn path=/trunk/; revision=17826
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 868a556169..341768ffaf 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-20 Radek Doulik <rodo@ximian.com>
+
+ * mail-callbacks.c (do_mail_print): be sure that widget is
+ realized so that e_utf8_from_gtk_string works properly
+ (footer_print_cb): save/restore
+
2002-08-20 Mike Kestner <mkestner@ximian.com>
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): guard
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index d953676ff9..a72de4389b 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -3044,11 +3044,13 @@ footer_print_cb (GtkHTML *html, GnomePrintContext *print_context,
gchar *text = g_strdup_printf (_("Page %d of %d"), info->page_num, info->pages);
gdouble tw = gnome_font_get_width_string (info->local_font, text);
+ gnome_print_gsave (print_context);
gnome_print_newpath (print_context);
gnome_print_setrgbcolor (print_context, .0, .0, .0);
gnome_print_moveto (print_context, x + width - tw, y - gnome_font_get_ascender (info->local_font));
gnome_print_setfont (print_context, info->local_font);
gnome_print_show (print_context, text);
+ gnome_print_grestore (print_context);
g_free (text);
info->page_num++;
@@ -3137,6 +3139,8 @@ do_mail_print (FolderBrowser *fb, gboolean preview)
user's theme. */
fb->mail_display->printing = TRUE;
+ if (!GTK_WIDGET_REALIZED (GTK_WIDGET (html)))
+ gtk_widget_realize (GTK_WIDGET (html));
mail_display_render (fb->mail_display, html, TRUE);
gtk_html_print_set_master (html, print_master);