fantasdic r315 - in trunk: . lib/fantasdic/ui



Author: mblondel
Date: Tue Aug 19 13:33:34 2008
New Revision: 315
URL: http://svn.gnome.org/viewvc/fantasdic?rev=315&view=rev

Log:
    * lib/fantasdic/ui/main_app.rb: Use font name in the search entry but don't
    alter the size.


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:33:34 2008
@@ -302,7 +302,9 @@
             @result_text_view.buffer.font_name = font_name
 
             if font_name
+                # Change font but don't change size
                 font_desc = Pango::FontDescription.new(font_name)
+                font_desc.size = @search_entry_default_font_desc.size
                 @search_entry.modify_font(font_desc)            
             end
         end
@@ -688,6 +690,7 @@
             # Entry
             @search_entry = @search_cb_entry.child
             @search_entry.grab_focus
+            @search_entry_default_font_desc = @search_entry.style.font_desc
 
             # Dictionary combobox
             @dictionary_cb.model = Gtk::ListStore.new(String)



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