[Xfce4-commits] <xfce4-xkb-plugin:master> Use configured text size when drawing text labels for missing flags.

Igor Slepchin noreply at xfce.org
Wed Aug 22 23:24:16 CEST 2012


Updating branch refs/heads/master
         to c627b1b55afd107c634fd8530c781fbea2603829 (commit)
       from 74a4232d6b4553d6517ac714223516763c8f6c4f (commit)

commit c627b1b55afd107c634fd8530c781fbea2603829
Author: Igor Slepchin <igor.slepchin at gmail.com>
Date:   Wed Jul 25 23:14:59 2012 -0400

    Use configured text size when drawing text labels for missing flags.

 panel-plugin/xkb-cairo.c     |    3 ++-
 panel-plugin/xkb-cairo.h     |    1 +
 panel-plugin/xkb-callbacks.c |    1 +
 3 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/xkb-cairo.c b/panel-plugin/xkb-cairo.c
index 3b828ec..86af836 100644
--- a/panel-plugin/xkb-cairo.c
+++ b/panel-plugin/xkb-cairo.c
@@ -55,6 +55,7 @@ xkb_cairo_draw_flag (cairo_t *cr,
                      gint width,
                      gint height,
                      gint variant_markers_count,
+                     gint textsize,
                      GdkColor fgcolor)
 {
     gchar *filename;
@@ -81,7 +82,7 @@ xkb_cairo_draw_flag (cairo_t *cr,
                 actual_width, actual_height,
                 width, height,
                 variant_markers_count,
-                DISPLAY_TEXTSIZE_SMALL,     // not used for flag layout
+                textsize,
                 fgcolor);
         return;
     }
diff --git a/panel-plugin/xkb-cairo.h b/panel-plugin/xkb-cairo.h
index a8ecf32..e29d82b 100644
--- a/panel-plugin/xkb-cairo.h
+++ b/panel-plugin/xkb-cairo.h
@@ -42,6 +42,7 @@ void        xkb_cairo_draw_flag     (cairo_t *cr,
                                      gint width,
                                      gint height,
                                      gint variant_markers_count,
+                                     gint textsize,
                                      GdkColor fgcolor);
 
 void        xkb_cairo_draw_label    (cairo_t *cr,
diff --git a/panel-plugin/xkb-callbacks.c b/panel-plugin/xkb-callbacks.c
index 87fb638..ee7c056 100644
--- a/panel-plugin/xkb-callbacks.c
+++ b/panel-plugin/xkb-callbacks.c
@@ -124,6 +124,7 @@ xkb_plugin_layout_image_exposed (GtkWidget *widget,
                 actual_hsize, actual_vsize,
                 xkb->hsize, xkb->vsize,
                 xkb_config_variant_index_for_group (-1),
+                xkb->display_textsize,
                 fgcolor
         );
     }


More information about the Xfce4-commits mailing list