[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 11/27: Use GtkFontChooserDialog insead of GtkFontSelectionDialog
noreply at xfce.org
noreply at xfce.org
Tue May 31 21:29:54 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 bd5730e8a24134dd11bc8e7e98531936f5e60b2f
Author: ToZ <toz at localhost.localdomain>
Date: Sat May 14 19:18:32 2016 -0400
Use GtkFontChooserDialog insead of GtkFontSelectionDialog
---
panel-plugin/main.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 41e33af..31b5bba 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -589,16 +589,15 @@ static void ChooseFont (GtkWidget *p_wPB, void *p_pvPlugin)
const char *pcFont;
int iResponse;
- wDialog = gtk_font_selection_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));
if (strcmp (poConf->acFont, "(default)")) /* Default font */
- gtk_font_selection_dialog_set_font_name (GTK_FONT_SELECTION_DIALOG
- (wDialog), poConf->acFont);
+ gtk_font_chooser_set_font (GTK_FONT_CHOOSER (wDialog), poConf->acFont);
iResponse = gtk_dialog_run (GTK_DIALOG (wDialog));
if (iResponse == GTK_RESPONSE_OK) {
- pcFont = gtk_font_selection_dialog_get_font_name
- (GTK_FONT_SELECTION_DIALOG (wDialog));
+ pcFont = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (wDialog));
if (pcFont) {
g_free (poConf->acFont);
poConf->acFont = g_strdup (pcFont);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list