[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 12/27: Use GtkFontChooser and *_override_font

noreply at xfce.org noreply at xfce.org
Tue May 31 21:29:55 CEST 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-genmon-plugin.

commit bde847f8ef8926b1a5e1f0f770a65337afbc88ed
Author: ToZ <toz at localhost.localdomain>
Date:   Sun May 15 06:25:36 2016 -0400

    Use GtkFontChooser and *_override_font
---
 panel-plugin/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 31b5bba..8cf9913 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -382,8 +382,8 @@ static int SetMonitorFont (void *p_pvPlugin)
     poFont = pango_font_description_from_string (poConf->acFont);
     if (!poFont)
         return (-1);
-    gtk_widget_modify_font (poMonitor->wTitle, poFont);
-    gtk_widget_modify_font (poMonitor->wValue, poFont);
+    gtk_widget_override_font (poMonitor->wTitle, poFont);
+    gtk_widget_override_font (poMonitor->wValue, poFont);
     return (0);
 }/* SetMonitorFont() */
 
@@ -589,7 +589,7 @@ static void ChooseFont (GtkWidget *p_wPB, void *p_pvPlugin)
     const char     *pcFont;
     int             iResponse;
 
-    wDialog = gtk_font_chooser_dialog_new (_("Font Selection")
+    wDialog = gtk_font_chooser_dialog_new (_("Font Selection"),
         GTK_WINDOW(gtk_widget_get_toplevel(p_wPB)));
     gtk_window_set_transient_for (GTK_WINDOW (wDialog),
         GTK_WINDOW (poPlugin->oConf.wTopLevel));

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


More information about the Xfce4-commits mailing list