[Goodies-commits] r5565 - xfce4-power-manager/trunk/src

Ali Abdallah aliov at xfce.org
Fri Oct 10 16:03:40 CEST 2008


Author: aliov
Date: 2008-10-10 14:03:40 +0000 (Fri, 10 Oct 2008)
New Revision: 5565

Modified:
   xfce4-power-manager/trunk/src/xfpm-button.c
   xfce4-power-manager/trunk/src/xfpm-settings.c
Log:
lid,sleep and power buttons improvements and fixes

Modified: xfce4-power-manager/trunk/src/xfpm-button.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-button.c	2008-10-10 13:54:38 UTC (rev 5564)
+++ xfce4-power-manager/trunk/src/xfpm-button.c	2008-10-10 14:03:40 UTC (rev 5565)
@@ -588,7 +588,7 @@
     g_value_set_boolean(&value,priv->lid_button_has_state);    
     content2 = g_strdup_value_contents(&value);
     
-    XFPM_DEBUG("LID Switch found = %s has_state = %s\n",content1,content2);
+    XFPM_DEBUG("LID Switch found  = %s has_state = %s\n",content1,content2);
     g_free(content1);
     g_free(content2);
     

Modified: xfce4-power-manager/trunk/src/xfpm-settings.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-settings.c	2008-10-10 13:54:38 UTC (rev 5564)
+++ xfce4-power-manager/trunk/src/xfpm-settings.c	2008-10-10 14:03:40 UTC (rev 5565)
@@ -822,7 +822,8 @@
     if ( can_suspend ) 
         gtk_combo_box_append_text(GTK_COMBO_BOX(power_button),_("Suspend"));
      if ( can_hibernate )
-        gtk_combo_box_append_text(GTK_COMBO_BOX(power_button),_("Hibernate"));    
+        gtk_combo_box_append_text(GTK_COMBO_BOX(power_button),_("Hibernate"));
+    gtk_combo_box_append_text(GTK_COMBO_BOX(power_button),_("Shutdown"));        
     gtk_combo_box_set_active(GTK_COMBO_BOX(power_button),default_config);
     gtk_widget_show(power_button);
     gtk_table_attach(GTK_TABLE(table),power_button,1,2,0,1,GTK_SHRINK,GTK_SHRINK,0,0);
@@ -841,6 +842,7 @@
         gtk_combo_box_append_text(GTK_COMBO_BOX(sleep_button),_("Suspend"));
     if ( can_hibernate )
         gtk_combo_box_append_text(GTK_COMBO_BOX(sleep_button),_("Hibernate"));
+    gtk_combo_box_append_text(GTK_COMBO_BOX(sleep_button),_("Shutdown"));    
     gtk_combo_box_set_active(GTK_COMBO_BOX(sleep_button),default_config);
     gtk_widget_show(sleep_button);
     gtk_table_attach(GTK_TABLE(table),sleep_button,1,2,1,2,GTK_SHRINK,GTK_SHRINK,0,0);
@@ -860,6 +862,7 @@
             gtk_combo_box_append_text(GTK_COMBO_BOX(lid_button),_("Suspend"));
         if ( can_hibernate )
             gtk_combo_box_append_text(GTK_COMBO_BOX(lid_button),_("Hibernate"));
+        gtk_combo_box_append_text(GTK_COMBO_BOX(lid_button),_("Shutdown"));    
         gtk_combo_box_set_active(GTK_COMBO_BOX(lid_button),default_config);
         gtk_widget_show(lid_button);
         gtk_table_attach(GTK_TABLE(table),lid_button,1,2,2,3,GTK_SHRINK,GTK_SHRINK,0,0);




More information about the Goodies-commits mailing list