[Goodies-commits] r3479 - in xfce4-sensors-plugin/trunk: panel-plugin po
Fabian Nowak
timystery at xfce.org
Tue Oct 30 00:28:02 CET 2007
Author: timystery
Date: 2007-10-29 23:28:02 +0000 (Mon, 29 Oct 2007)
New Revision: 3479
Modified:
xfce4-sensors-plugin/trunk/panel-plugin/sensors.c
xfce4-sensors-plugin/trunk/po/hu.po
Log:
- fixed bar color in graphical mode to work with any theme according to
brian's patch.
- updated hungarian translation. have to look at why all the translations
break that string.
Modified: xfce4-sensors-plugin/trunk/panel-plugin/sensors.c
===================================================================
--- xfce4-sensors-plugin/trunk/panel-plugin/sensors.c 2007-10-29 19:33:43 UTC (rev 3478)
+++ xfce4-sensors-plugin/trunk/panel-plugin/sensors.c 2007-10-29 23:28:02 UTC (rev 3479)
@@ -67,11 +67,11 @@
g_return_if_fail (G_IS_OBJECT(bar));
- rc = gtk_widget_get_modifier_style(GTK_WIDGET(bar));
+ /* rc = gtk_widget_get_modifier_style(GTK_WIDGET(bar));
if (!rc)
- rc = gtk_rc_style_new();
+ rc = gtk_rc_style_new(); */
- if (fraction >= 1)
+ if (fraction >= 1 || fraction<=0)
gdk_color_parse(COLOR_ERROR, &color);
else if ((fraction < .2) || (fraction > .8))
@@ -84,10 +84,15 @@
gdk_color_parse(COLOR_NORMAL, &color);
}
+/*
rc->color_flags[GTK_STATE_PRELIGHT] |= GTK_RC_BG;
rc->bg[GTK_STATE_PRELIGHT] = color;
- gtk_widget_modify_bg(bar, GTK_STATE_PRELIGHT, &color);
+ gtk_widget_modify_bg(bar, GTK_STATE_PRELIGHT, &color); */
+ gtk_widget_modify_bg (bar, GTK_STATE_PRELIGHT, &color);
+ gtk_widget_modify_bg (bar, GTK_STATE_SELECTED, &color);
+ gtk_widget_modify_base (bar, GTK_STATE_SELECTED, &color);
+
TRACE ("leaves sensors_set_bar_color");
}
Modified: xfce4-sensors-plugin/trunk/po/hu.po
===================================================================
--- xfce4-sensors-plugin/trunk/po/hu.po 2007-10-29 19:33:43 UTC (rev 3478)
+++ xfce4-sensors-plugin/trunk/po/hu.po 2007-10-29 23:28:02 UTC (rev 3479)
@@ -51,8 +51,7 @@
#. only use this if no hddtemp sensor
#. FIXME: compare strings, or also have hddtmep and acpi store numeric values
#. assert correctly saved file
-#: ../panel-plugin/sensors.c:1014
-#: ../panel-plugin/sensors.c:1171
+#: ../panel-plugin/sensors.c:1014 ../panel-plugin/sensors.c:1171
#: ../panel-plugin/sensors.c:1177
msgid "Hard disks"
msgstr "Merevlemezek"
@@ -65,7 +64,7 @@
"Seems like there was a problem reading a sensor feature value. \n"
"Proper proceeding cannot be guaranteed.\n"
msgstr ""
-" \n"
+"\n"
"Xfce Hardver Érzékelő: \n"
"Úgy tűnik, gond van egy érzékelő értékeinek kiolvasásával. \n"
"A helyes működés nem szavatolt.\n"
@@ -183,8 +182,7 @@
msgid "Edit Properties"
msgstr "Tulajdonságok szerkesztése"
-#: ../panel-plugin/sensors.c:2337
-#: ../panel-plugin/sensors.h:40
+#: ../panel-plugin/sensors.c:2337 ../panel-plugin/sensors.h:40
msgid "Sensors Plugin"
msgstr "Érzékelők"
@@ -203,10 +201,12 @@
#, fuzzy
#~ msgid "LM Sensors"
#~ msgstr "<b>Érzékelők</b>"
+
#~ msgid "Error: Could not connect to sensors!"
#~ msgstr "Hiba: nem lehet érzékelőkhöz kapcsolódni!"
+
#~ msgid "<span foreground=\"#000000\" size=\"%s\"><b>Sensors</b></span>"
#~ msgstr "<span foreground=\"#000000\" size=\"%s\"><b>Érzékelők</b></span>"
+
#~ msgid "<b>View</b>"
#~ msgstr "<b>Nézet</b>"
-
More information about the Goodies-commits
mailing list