[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 01/02: Change font to use pt instead of px to match system font setting

noreply at xfce.org noreply at xfce.org
Sat Jul 14 21:26:17 CEST 2018


This is an automated email from the git hooks/post-receive script.

T   o   Z       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-genmon-plugin.

commit 331c77853276b9d9f369899618140c505c34546f
Author: ToZ <tony.paulic at gmail.com>
Date:   Sat Jul 14 12:29:16 2018 -0400

    Change font to use pt instead of px to match system font setting
---
 panel-plugin/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 0eba91c..8af795e 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -537,7 +537,7 @@ static int SetMonitorFont (void *p_pvPlugin)
   font = pango_font_description_from_string(poConf->acFont);
   if (G_LIKELY (font))
   {
-    css = g_strdup_printf("label { font-family: %s; font-size: %dpx; font-style: %s; font-weight: %s }",
+    css = g_strdup_printf("label { font-family: %s; font-size: %dpt; font-style: %s; font-weight: %s }",
                           pango_font_description_get_family (font),
                           pango_font_description_get_size (font) / PANGO_SCALE,
                           (pango_font_description_get_style(font) == PANGO_STYLE_ITALIC ||
@@ -727,7 +727,7 @@ static void SetLabel (GtkWidget *p_wTF, void *p_pvPlugin)
     struct param_t *poConf = &(poPlugin->oConf.oParam);
     struct monitor_t *poMonitor = &(poPlugin->oMonitor);
     const char     *acTitle = gtk_entry_get_text (GTK_ENTRY (p_wTF));
-
+    
     g_free (poConf->acTitle);
     poConf->acTitle = g_strdup (acTitle);
     gtk_label_set_text (GTK_LABEL (poMonitor->wTitle), poConf->acTitle);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list