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 ab4c7c37146d80b73f2dc944dfad26ca7b9ecc3e Author: Fabian <timyst...@arcor.de> Date: Fri Oct 19 21:51:48 2018 +0200 removed warning by using Gtk3 API's gtk_font_chooser --- panel-plugin/sensors-plugin.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/panel-plugin/sensors-plugin.c b/panel-plugin/sensors-plugin.c index 33c286e..a4d573d 100644 --- a/panel-plugin/sensors-plugin.c +++ b/panel-plugin/sensors-plugin.c @@ -116,16 +116,18 @@ sensors_set_bar_color (t_labelledlevelbar *ptr_labelledlevelbar, double val_perc gchar str_gtkcssdata[256] = "levelbar block."; gchar str_levelbarid[32]; + //gchar str_section_levelbarid[64]; g_return_if_fail(ptr_labelledlevelbar != NULL); ptr_levelbar = ptr_labelledlevelbar->progressbar; g_return_if_fail (G_IS_OBJECT(ptr_levelbar)); - g_snprintf(str_levelbarid, 32, "warn-high%lX", (unsigned long int) ptr_levelbar); g_strlcat(str_gtkcssdata, str_levelbarid, sizeof(str_gtkcssdata)); + //g_strlcpy(str_section_levelbarid, str_gtkcssdata, sizeof(str_section_levelbarid)); + g_strlcat(str_gtkcssdata, " {\n", sizeof(str_gtkcssdata)); if (ptr_sensorsstructure->show_colored_bars) { @@ -156,6 +158,9 @@ sensors_set_bar_color (t_labelledlevelbar *ptr_labelledlevelbar, double val_perc gtk_css_provider_load_from_data (GTK_CSS_PROVIDER(ptr_labelledlevelbar->css_provider), str_gtkcssdata, strlen(str_gtkcssdata), NULL); + + //DBG("unreferencing section '%s'.", str_section_levelbarid); + //gtk_css_section_unref(str_section_levelbarid); } @@ -1928,7 +1933,7 @@ on_font_set (GtkWidget *widget, gpointer data) if (font) g_free (font); - font = g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(widget))); + font = g_strdup(gtk_font_chooser_get_font(GTK_FONT_CHOOSER(widget))); if (sensors->display_values_type==DISPLAY_TACHO) { @@ -2234,7 +2239,8 @@ add_font_settings_box (GtkWidget * vbox, t_sensors_dialog * sd) myFontLabel = gtk_label_new_with_mnemonic (_("F_ont:")); myFontSettingsBox = gtk_hbox_new (FALSE, BORDER); - myFontSettingsButton = gtk_font_button_new_with_font(font); + myFontSettingsButton = gtk_font_button_new(); + gtk_font_chooser_set_font(GTK_FONT_CHOOSER(myFontSettingsButton), font); gtk_font_button_set_use_font(GTK_FONT_BUTTON(myFontSettingsButton), TRUE); sd->fontSettings_Box = myFontSettingsBox; -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits