[Xfce4-commits] <xfwm4:master> Simplify

Olivier Fourdan noreply at xfce.org
Fri Oct 28 16:42:01 CEST 2011


Updating branch refs/heads/master
         to f9f362e85c1b64793e98c857e44037760645c9b4 (commit)
       from 7ec260500fe69f1ccb531900a080b2b28041e5dd (commit)

commit f9f362e85c1b64793e98c857e44037760645c9b4
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Fri Oct 28 16:39:37 2011 +0200

    Simplify

 src/screen.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/screen.c b/src/screen.c
index 1642a5d..a86653e 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -778,7 +778,6 @@ myScreenUpdateFontHeight (ScreenInfo *screen_info)
     PangoFontDescription *desc;
     PangoContext *context;
     PangoFontMetrics *metrics;
-    PangoLanguage *language;
     GtkWidget *widget;
 
     g_return_val_if_fail (screen_info != NULL, FALSE);
@@ -790,8 +789,7 @@ myScreenUpdateFontHeight (ScreenInfo *screen_info)
 
     if (desc && context)
     {
-        language = pango_context_get_language (context);
-        metrics = pango_context_get_metrics (context, desc, language);
+        metrics = pango_context_get_metrics (context, desc, NULL);
         screen_info->font_height =
                  PANGO_PIXELS (pango_font_metrics_get_ascent (metrics) +
                                pango_font_metrics_get_descent (metrics));


More information about the Xfce4-commits mailing list