--- sensors-plugin.c 2008-11-03 20:05:09.000000000 -0500 +++ /root/Desktop/sensors-plugin.c 2009-02-01 13:22:29.000000000 -0500 @@ -107,6 +107,14 @@ //TRACE ("leaves sensors_set_bar_color"); } +static void +sensors_set_label_fg (t_sensors *sensors) +{ + GdkColor *fg = NULL; + + gtk_widget_modify_fg(sensors->panel_label_text, GTK_STATE_NORMAL, fg); +} + static double sensors_get_percentage (t_chipfeature *chipfeature) { @@ -222,10 +230,9 @@ TRACE ("enters sensors_add_graphical_display"); - text = g_strdup (_("" - "Sensors")); - gtk_label_set_markup (GTK_LABEL(sensors->panel_label_text), text); - g_free (text); + text = g_strdup_printf ("%s", "String"); + gtk_label_set_label(GTK_LABEL(sensors->panel_label_text), text); + g_free (text); for (chipNum=0; chipNum < sensors->num_sensorchips; chipNum++) { chip = (t_chip *) g_ptr_array_index(sensors->chips, chipNum); @@ -292,6 +299,8 @@ } } } + sensors_set_label_fg(sensors); + if (has_bars && !sensors->show_title) gtk_widget_hide (sensors->panel_label_text); else @@ -771,9 +780,10 @@ gtk_misc_set_padding (GTK_MISC(sensors->panel_label_text), INNER_BORDER, 0); gtk_misc_set_alignment(GTK_MISC(sensors->panel_label_text), 0.0, 0.5); - myLabelText = g_strdup (_("Sensors" - "")); - gtk_label_set_markup(GTK_LABEL(sensors->panel_label_text), myLabelText); + myLabelText = g_strdup_printf ("%s", "String"); + gtk_label_set_label(GTK_LABEL(sensors->panel_label_text), myLabelText); + gtk_widget_modify_fg(sensors->panel_label_text, GTK_STATE_NORMAL, NULL); + gtk_widget_show (sensors->panel_label_text); g_free(myLabelText); @@ -1928,6 +1938,8 @@ sensors->plugin_config_file = xfce_panel_plugin_lookup_rc_file(plugin); sensors_read_config (plugin, sensors); + sensors_set_label_fg(sensors); + /* Try to resize the sensors to fit the user settings. Do also modify the tooltip text. */ sensors_show_panel ((gpointer) sensors);