~phurley/indicator-session/lp-957563

« back to all changes in this revision

Viewing changes to src/gtk-dialog/gtk-logout-helper.c

  • Committer: Ted Gould
  • Author(s): Christoph Korn
  • Date: 2009-09-08 15:09:45 UTC
  • mfrom: (19.3.2 indicator-session)
  • Revision ID: ted@canonical.com-20090908150945-lzlvrilla7rmuvzc
Adding a GConf key to suppress confirmation dialogs

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
Authors:
8
8
    Ted Gould <ted@canonical.com>
 
9
    Christoph Korn <c_korn@gmx.de>
9
10
 
10
11
This program is free software: you can redistribute it and/or modify it 
11
12
under the terms of the GNU General Public License version 3, as published 
26
27
#include <dbus/dbus-glib.h>
27
28
#include "logout-dialog.h"
28
29
#include "ck-pk-helper.h"
 
30
#include "gconf-helper.h"
29
31
 
30
32
static void
31
33
session_action (LogoutDialogAction action)
132
134
        }
133
135
 
134
136
        GtkWidget * dialog = NULL;
135
 
        if (!pk_require_auth(type)) {   
 
137
        if (!pk_require_auth(type) && !supress_confirmations()) {
136
138
                dialog = logout_dialog_new(type);
137
139
        }
138
140