fantasdic r314 - in trunk: . lib/fantasdic/ui
- From: mblondel svn gnome org
- To: svn-commits-list gnome org
- Subject: fantasdic r314 - in trunk: . lib/fantasdic/ui
- Date: Tue, 19 Aug 2008 13:17:31 +0000 (UTC)
Author: mblondel
Date: Tue Aug 19 13:17:31 2008
New Revision: 314
URL: http://svn.gnome.org/viewvc/fantasdic?rev=314&view=rev
Log:
* lib/fantasdic/ui/main_app.rb: Use font defined for the selected
dictionary in the search entry as well. In the case of Japanese for example,
Pango may pick up a Chinese font by mistake and the text in the search entry
in turns looks ugly. Setting the font for the search entry fixes this
problem.
Modified:
trunk/ChangeLog
trunk/lib/fantasdic/ui/main_app.rb
Modified: trunk/lib/fantasdic/ui/main_app.rb
==============================================================================
--- trunk/lib/fantasdic/ui/main_app.rb (original)
+++ trunk/lib/fantasdic/ui/main_app.rb Tue Aug 19 13:17:31 2008
@@ -300,6 +300,11 @@
def set_font_name(font_name)
@result_text_view.buffer.font_name = font_name
+
+ if font_name
+ font_desc = Pango::FontDescription.new(font_name)
+ @search_entry.modify_font(font_desc)
+ end
end
def scan_clipboard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]