[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 01/04: removed Gtk3 compilation warnings with font_button
noreply at xfce.org
noreply at xfce.org
Sun Oct 21 01:08:50 CEST 2018
This is an automated email from the git hooks/post-receive script.
t i m y s t e r y 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-sensors-plugin.
commit 4d2a4cda6297f9eed3bb78ae514b776db2446db1
Author: Fabian <timystery at arcor.de>
Date: Sun Oct 21 00:21:20 2018 +0200
removed Gtk3 compilation warnings with font_button
---
src/callbacks.c | 2 +-
src/interface.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/callbacks.c b/src/callbacks.c
index 238929e..3c42fa6 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -47,7 +47,7 @@ void on_font_set (GtkWidget *ptr_widget, gpointer data)
if (font!=NULL)
g_free (font);
- font = g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(ptr_widget)));
+ font = g_strdup(gtk_font_chooser_get_font(GTK_FONT_CHOOSER(ptr_widget)));
refresh_view(data); /* data is pointer to sensors_dialog */
}
diff --git a/src/interface.c b/src/interface.c
index 7d43e48..a05cdf5 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -99,7 +99,7 @@ add_notebook (GtkWidget *ptr_boxwidget, t_sensors_dialog *ptr_sensorsdialog)
ptr_fontbutton = gtk_font_button_new();
g_signal_connect (G_OBJECT(ptr_fontbutton), "font-set", G_CALLBACK(on_font_set), ptr_sensorsdialog);
- gtk_font_button_set_font_name(GTK_FONT_BUTTON(ptr_fontbutton), "Sans 11");
+ gtk_font_chooser_set_font (GTK_FONT_CHOOSER(ptr_fontbutton), "Sans 11");
gtk_widget_show (ptr_fontbutton);
gtk_box_pack_end (GTK_BOX(ptr_childvbox), ptr_fontbutton, FALSE, FALSE, 0);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list