gucharmap r1635 - trunk/gucharmap



Author: chpe
Date: Fri Mar 21 10:47:43 2008
New Revision: 1635
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1635&view=rev

Log:
Show the character on the details page using the selected font. Bug #412062.


Modified:
   trunk/gucharmap/gucharmap-charmap.c

Modified: trunk/gucharmap/gucharmap-charmap.c
==============================================================================
--- trunk/gucharmap/gucharmap-charmap.c	(original)
+++ trunk/gucharmap/gucharmap-charmap.c	Fri Mar 21 10:47:43 2008
@@ -153,6 +153,9 @@
   style = gtk_widget_get_style (GTK_WIDGET (charmap->details_view));
   default_font_size = pango_font_description_get_size (style->font_desc);
 
+  if (charmap->font_desc)
+    g_object_set (charmap->text_tag_gimongous, "font-desc", charmap->font_desc, NULL);
+
   /* FIXME: do we need to consider whether the font size is absolute or not? */
   g_object_set (charmap->text_tag_gimongous,
                 "size", 8 * default_font_size,
@@ -173,6 +176,9 @@
   charmap->font_desc = font_desc; /* adopted */
 
   gucharmap_chartable_set_font_desc (charmap->chartable, font_desc);
+
+  if (gtk_widget_get_style (GTK_WIDGET (charmap->details_view)))
+    gucharmap_charmap_update_text_tags (charmap);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]