[Goodies-commits] r5824 - in xfce4-sensors-plugin/trunk: . lib panel-plugin

Fabian Nowak timystery at xfce.org
Mon Oct 27 00:24:18 CET 2008


Author: timystery
Date: 2008-10-26 23:24:18 +0000 (Sun, 26 Oct 2008)
New Revision: 5824

Modified:
   xfce4-sensors-plugin/trunk/ChangeLog
   xfce4-sensors-plugin/trunk/TODO
   xfce4-sensors-plugin/trunk/lib/sensors-interface.c
   xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c
Log:
new header and border around sensors treeview


Modified: xfce4-sensors-plugin/trunk/ChangeLog
===================================================================
--- xfce4-sensors-plugin/trunk/ChangeLog	2008-10-26 23:12:54 UTC (rev 5823)
+++ xfce4-sensors-plugin/trunk/ChangeLog	2008-10-26 23:24:18 UTC (rev 5824)
@@ -1,3 +1,7 @@
+2008-10-26 timystery
+  * New Xfce-style header
+  * border around sensors scrolled window /  treeview
+
 2008-10-21 timystery
   * Added tooltip onto sensors items list: "You can change values, names and
    colours by double-clicking the entry, editing the content, and pressing

Modified: xfce4-sensors-plugin/trunk/TODO
===================================================================
--- xfce4-sensors-plugin/trunk/TODO	2008-10-26 23:12:54 UTC (rev 5823)
+++ xfce4-sensors-plugin/trunk/TODO	2008-10-26 23:24:18 UTC (rev 5824)
@@ -5,7 +5,12 @@
 
 - fix error: doesn't find all sensors when newly adding plugin to panel - sensors library problem?
 
+- read acpi fan state?
+
+- switch to sysfs completely?
+
 Known bugs or user requests
 ---------------------------
 - better support for hddtemp via nc/netcat
+- read /proc/acpi/battery or fan for changed linux kernel 2.4.24 oder 2.4.26 differently or use sysfs, whatever
 

Modified: xfce4-sensors-plugin/trunk/lib/sensors-interface.c
===================================================================
--- xfce4-sensors-plugin/trunk/lib/sensors-interface.c	2008-10-26 23:12:54 UTC (rev 5823)
+++ xfce4-sensors-plugin/trunk/lib/sensors-interface.c	2008-10-26 23:24:18 UTC (rev 5824)
@@ -243,6 +243,8 @@
         gtk_scrolled_window_set_policy (
             GTK_SCROLLED_WINDOW (myScrolledWindow), GTK_POLICY_AUTOMATIC,
             GTK_POLICY_AUTOMATIC);
+        gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (myScrolledWindow),
+                                           GTK_SHADOW_ETCHED_IN);
         gtk_container_set_border_width (GTK_CONTAINER (myScrolledWindow), 0);
         /* gtk_scrolled_window_add_with_viewport (
             GTK_SCROLLED_WINDOW (myScrolledWindow), sd->myTreeView); */

Modified: xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c
===================================================================
--- xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c	2008-10-26 23:12:54 UTC (rev 5823)
+++ xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c	2008-10-26 23:24:18 UTC (rev 5824)
@@ -1810,19 +1810,25 @@
 
     xfce_panel_plugin_block_menu (plugin);
 
-    dlg = gtk_dialog_new_with_buttons (_("Edit Properties"),
+    //dlg = gtk_dialog_new_with_buttons (
+    dlg = xfce_titled_dialog_new_with_buttons(
+                _("Xfce 4 Sensors Plugin"),
                 GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
                 GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
-                GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL);
+                GTK_STOCK_CLOSE,
+                GTK_RESPONSE_OK,
+                NULL
+            );
+    gtk_window_set_icon_name(GTK_WINDOW(dlg),"xfce-sensors");
 
     gtk_container_set_border_width (GTK_CONTAINER (dlg), 2);
 
-    header = xfce_create_header (NULL, _("Sensors Plugin"));
+    /*header = xfce_create_header (NULL, _("Sensors Plugin"));
     gtk_widget_set_size_request (GTK_BIN (header)->child, -1, 32);
     gtk_container_set_border_width (GTK_CONTAINER (header), BORDER-2);
     gtk_widget_show (header);
     gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), header,
-                        FALSE, TRUE, 0);
+                        FALSE, TRUE, 0);*/
 
     vbox = GTK_DIALOG (dlg)->vbox;
 




More information about the Goodies-commits mailing list