Fix compilation warnings

This commit is contained in:
Gaël Bonithon
2021-01-20 19:38:53 +01:00
committed by Simon Steinbeiß
parent 56afa354cf
commit e25b5246b2
5 changed files with 5 additions and 8 deletions

View File

@@ -139,7 +139,7 @@ xtm_process_statusbar_set_property (GObject *object, guint property_id, const GV
text = g_strdup_printf (_("CPU: %s%%"), float_value);
gtk_label_set_text (GTK_LABEL (statusbar->label_cpu), text);
gdk_rgba_parse (&color, "#ff6e00");
gtk_widget_override_color (statusbar->label_cpu, GTK_STATE_NORMAL, &color);
gtk_widget_override_color (statusbar->label_cpu, GTK_STATE_FLAG_NORMAL, &color);
g_free (float_value);
g_free (text);
break;
@@ -150,7 +150,7 @@ xtm_process_statusbar_set_property (GObject *object, guint property_id, const GV
gtk_label_set_text (GTK_LABEL (statusbar->label_memory), text);
gtk_widget_set_tooltip_text (statusbar->label_memory, text);
gdk_rgba_parse (&color, "#c22b66");
gtk_widget_override_color (statusbar->label_memory, GTK_STATE_NORMAL, &color);
gtk_widget_override_color (statusbar->label_memory, GTK_STATE_FLAG_NORMAL, &color);
g_free (text);
break;