aboutsummaryrefslogtreecommitdiff
path: root/src/gtk-dialog/ck-pk-helper.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-24 17:16:14 -0600
committerTed Gould <ted@gould.cx>2010-02-24 17:16:14 -0600
commit64602f8dd39b0fd35b0bfc6697fe62bd7a2de0ad (patch)
treef0227422e6806bae6b6b2adf5b3556b88f14ca0d /src/gtk-dialog/ck-pk-helper.c
parent40e989fdb054344be699414ae040585f4f87f657 (diff)
downloadayatana-indicator-session-64602f8dd39b0fd35b0bfc6697fe62bd7a2de0ad.tar.gz
ayatana-indicator-session-64602f8dd39b0fd35b0bfc6697fe62bd7a2de0ad.tar.bz2
ayatana-indicator-session-64602f8dd39b0fd35b0bfc6697fe62bd7a2de0ad.zip
Changing to new enums and function prototypes.
Diffstat (limited to 'src/gtk-dialog/ck-pk-helper.c')
-rw-r--r--src/gtk-dialog/ck-pk-helper.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gtk-dialog/ck-pk-helper.c b/src/gtk-dialog/ck-pk-helper.c
index dc7d900..6879517 100644
--- a/src/gtk-dialog/ck-pk-helper.c
+++ b/src/gtk-dialog/ck-pk-helper.c
@@ -26,7 +26,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <dbus/dbus-glib.h>
#include <polkit/polkit.h>
-#include "logout-dialog.h"
+#include "dialog.h"
#include "ck-pk-helper.h"
static gboolean
@@ -150,20 +150,20 @@ ck_multiple_users (void)
}
gboolean
-pk_require_auth (LogoutDialogAction action) {
- if (action == LOGOUT_DIALOG_LOGOUT) {
+pk_require_auth (LogoutDialogType action) {
+ if (action == LOGOUT_DIALOG_TYPE_LOG_OUT) {
return FALSE;
}
gchar * pk_action;
if (ck_multiple_users()) {
- if (action == LOGOUT_DIALOG_RESTART) {
+ if (action == LOGOUT_DIALOG_TYPE_RESTART) {
pk_action = "org.freedesktop.consolekit.system.restart-multiple-users";
} else {
pk_action = "org.freedesktop.consolekit.system.stop-multiple-users";
}
} else {
- if (action == LOGOUT_DIALOG_RESTART) {
+ if (action == LOGOUT_DIALOG_TYPE_RESTART) {
pk_action = "org.freedesktop.consolekit.system.restart";
} else {
pk_action = "org.freedesktop.consolekit.system.stop";