nemiver r941 - in trunk: . src/persp/dbgperspective src/uicommon



Author: dodji
Date: Sun Nov  2 14:16:02 2008
New Revision: 941
URL: http://svn.gnome.org/viewvc/nemiver?rev=941&view=rev

Log:
Fix #555732

	* src/persp/dbgperspective/nmv-dbg-perspective.cc:
	  Make the terminal use the same font as the one specified on the
	  preferences.
	* src/uicommon/nmv-terminal.cc b/src/uicommon/nmv-terminal.cc,h: Allow
	  the terminal to be set a new font.

	  This entry is a patch from Christophe Fergeau <teuf gnome org>.
	  It should close bug #555732.

Modified:
   trunk/ChangeLog
   trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
   trunk/src/uicommon/nmv-terminal.cc
   trunk/src/uicommon/nmv-terminal.h

Modified: trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	(original)
+++ trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	Sun Nov  2 14:16:02 2008
@@ -897,6 +897,8 @@
                 it->second->source_view ().modify_font (font_desc);
             }
         }
+       THROW_IF_FAIL (terminal);
+       terminal->modify_font (font_desc);
 #ifdef WITH_MEMORYVIEW
         THROW_IF_FAIL (memory_view);
         memory_view->modify_font (font_desc);

Modified: trunk/src/uicommon/nmv-terminal.cc
==============================================================================
--- trunk/src/uicommon/nmv-terminal.cc	(original)
+++ trunk/src/uicommon/nmv-terminal.cc	Sun Nov  2 14:16:02 2008
@@ -168,5 +168,12 @@
     return result ;
 }
 
+void
+Terminal::modify_font (const Pango::FontDescription &font_desc)
+{
+    THROW_IF_FAIL (m_priv);
+    vte_terminal_set_font (m_priv->vte, font_desc.gobj());
+}
+
 NEMIVER_END_NAMESPACE(nemiver)
 

Modified: trunk/src/uicommon/nmv-terminal.h
==============================================================================
--- trunk/src/uicommon/nmv-terminal.h	(original)
+++ trunk/src/uicommon/nmv-terminal.h	Sun Nov  2 14:16:02 2008
@@ -36,10 +36,14 @@
 using nemiver::common::SafePtr ;
 
 namespace Gtk {
-    class Widget;
+    class Widget ;
     class Adjustment ;
 }
 
+namespace Pango {
+    class FontDescription ;
+}
+
 NEMIVER_BEGIN_NAMESPACE(nemiver)
 
 class Terminal : public Object {
@@ -55,8 +59,9 @@
     Terminal () ;
     ~Terminal () ;
     Gtk::Widget& widget () const ;
-    Gtk::Adjustment& adjustment () const;
+    Gtk::Adjustment& adjustment () const ;
     UString slave_pts_name () const ;
+    void modify_font (const Pango::FontDescription &font_desc) ;
 };//end class Terminal
 
 NEMIVER_END_NAMESPACE(nemiver)



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