r2277 - trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src

mickey at sita.openmoko.org mickey at sita.openmoko.org
Sat Jun 16 17:09:15 CEST 2007


Author: mickey
Date: 2007-06-16 17:09:10 +0200 (Sat, 16 Jun 2007)
New Revision: 2277

Modified:
   trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c
Log:
openmoko-panel-mainmenu: give some feedback during powerdown / restart


Modified: trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c
===================================================================
--- trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c	2007-06-16 14:35:29 UTC (rev 2276)
+++ trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c	2007-06-16 15:09:10 UTC (rev 2277)
@@ -18,6 +18,8 @@
  */
 #include "buttonactions.h"
 
+#include <libmokoui/moko-ui.h>
+
 #include <gtk/gtklabel.h>
 #include <gtk/gtkmenu.h>
 #include <gtk/gtkmenuitem.h>
@@ -313,14 +315,14 @@
 void panel_mainmenu_popup_selected_reboot( GtkMenuItem* menu, gpointer user_data )
 {
     //FIXME talk to neod
-    //FIXME notify user
+    moko_ui_banner_show_text( 4, "Rebooting System..." );
     system( "/sbin/reboot");
 }
 
 void panel_mainmenu_popup_selected_poweroff( GtkMenuItem* menu, gpointer user_data )
 {
     //FIXME talk to neod
-    //FIXME notify user
+    moko_ui_banner_show_text( 4, "Shutting down System..." );
     system( "/sbin/poweroff");
 }
 





More information about the commitlog mailing list