[gnome-terminal/gsettings] Update font on realize



commit fd36f27481c9e23f2a3adddc51411c6667e97685
Author: Christian Persch <chpe gnome org>
Date:   Fri Aug 12 21:51:06 2011 +0200

    Update font on realize

 src/terminal-screen.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index fb86536..3822b12 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -283,10 +283,11 @@ window_uses_argb_visual (TerminalScreen *screen)
 static void
 terminal_screen_realize (GtkWidget *widget)
 {
+  TerminalScreen *screen = TERMINAL_SCREEN (widget);
+
   GTK_WIDGET_CLASS (terminal_screen_parent_class)->realize (widget);
 
 #if 0
-  TerminalScreen *screen = TERMINAL_SCREEN (widget);
   TerminalScreenPrivate *priv = screen->priv;
   TerminalBackgroundType bg_type;
 
@@ -296,6 +297,8 @@ terminal_screen_realize (GtkWidget *widget)
                                            bg_type == TERMINAL_BACKGROUND_TRANSPARENT &&
                                            !window_uses_argb_visual (screen));
 #endif
+
+  terminal_screen_set_font (screen);
 }
 
 static void



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