~ubuntu-branches/ubuntu/trusty/gnome-system-tools/trusty

« back to all changes in this revision

Viewing changes to .pc/the_admin_group_is_sudo.patch/src/users/user-settings.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2014-02-26 11:16:13 UTC
  • Revision ID: package-import@ubuntu.com-20140226111613-ba2sk5r2c2ndzg83
Tags: 3.0.0-3ubuntu3
debian/patches/the_admin_group_is_sudo.patch: Change no longer used 
"admin" group to "sudo", thanks Thaddäus Tintenfisch (LP: #1016932)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/* user-settings.h: this file is part of users-admin, a ximian-setup-tool frontend 
 
3
 * for user administration.
 
4
 * 
 
5
 * Copyright (C) 2001 Ximian, Inc.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as
 
9
 * published by the Free Software Foundation; either version 2 of the
 
10
 * License, or (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 
20
 *
 
21
 * Authors: Carlos Garnacho Parro <garparr@teleline.es>.
 
22
 */
 
23
 
 
24
#ifndef __USER_SETTINGS_H
 
25
#define __USER_SETTINGS_H
 
26
 
 
27
#include <gtk/gtk.h>
 
28
#include "gst-tool.h"
 
29
#include "users-tool.h"
 
30
#include "user-profiles.h"
 
31
 
 
32
#define ADMIN_GROUP "admin"
 
33
 
 
34
 
 
35
gboolean        user_delete                      (GtkTreeModel *model,
 
36
                                                  GtkTreePath *path);
 
37
void            user_settings_show               (OobsUser *user);
 
38
gint            user_settings_dialog_run         (GtkWidget *dialog);
 
39
 
 
40
OobsUser *      user_settings_dialog_get_data    (GtkWidget *dialog);
 
41
GdkPixbuf *     user_settings_get_user_face      (OobsUser *user, int size);
 
42
uid_t           user_settings_find_new_uid       (gint uid_min,
 
43
                                                  gint uid_max);
 
44
gboolean        user_settings_is_user_in_group   (OobsUser  *user,
 
45
                                                  OobsGroup *group);
 
46
 
 
47
gboolean        user_settings_check_revoke_admin_rights ();
 
48
 
 
49
void            on_user_new                      (GtkButton *button, gpointer user_data);
 
50
 
 
51
 
 
52
#endif /* USER_SETTINGS_H */