~ubuntu-branches/ubuntu/trusty/ldm/trusty-proposed

« back to all changes in this revision

Viewing changes to gtkgreet/greeter.c

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2009-12-14 11:35:12 UTC
  • mfrom: (3.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20091214113512-njyp6vwy2gtnxzrt
Tags: 2:2.0.52-1
* New upstream version: 
  - Force poweroff and reboot instead of going through init.
  - Provide a way to reboot or halt from within the session.
  - ldm-dialog:
    + Set the root cursor.
    + Do not display in taskbar.
    + Default to empty title.
    + Make the window not resizable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
halt(GtkWidget * widget, gpointer data)
106
106
{
107
107
    GError **error = NULL;
108
 
    g_spawn_command_line_async("/sbin/poweroff -p", error);
 
108
    g_spawn_command_line_async("/sbin/poweroff -fp", error);
109
109
}
110
110
 
111
111
static void
112
112
reboot(GtkWidget * widget, gpointer data)
113
113
{
114
114
    GError **error = NULL;
115
 
    g_spawn_command_line_async("/sbin/reboot -p", error);
 
115
    g_spawn_command_line_async("/sbin/reboot -fp", error);
116
116
}
117
117
 
118
118
gboolean