File: user-face.h

package info (click to toggle)
mate-user-admin 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,488 kB
  • sloc: ansic: 6,165; sh: 10; makefile: 9
file content (56 lines) | stat: -rw-r--r-- 1,997 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*   mate-user-admin 
*   Copyright (C) 2018  zhuyaliang https://github.com/zhuyaliang/
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.

*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.

*   You should have received a copy of the GNU General Public License
*   along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef __USER_FACE_H__
#define __USER_FACE_H__

#include <gtk/gtk.h>
#include <act/act.h>

#define USER_TYPE_FACE         (user_face_get_type ())
#define USER_FACE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), USER_TYPE_FACE, UserFace))
#define USER_FACE_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), USER_TYPE_FACE, UserFaceClass))

typedef struct _UserFace        UserFace;
typedef struct _UserFaceClass   UserFaceClass;
typedef struct _UserFacePrivate UserFacePrivate;

struct _UserFace {
    GtkGrid          parent_instance;
    UserFacePrivate *priv;
};

struct _UserFaceClass {
    GtkGridClass parent_class;
};

GType         user_face_get_type                 (void) G_GNUC_CONST;

UserFace     *user_face_new                      (void);

char         *user_face_get_image_name           (UserFace   *face);

char         *user_face_get_real_name            (UserFace   *face);

void          user_face_update                   (UserFace   *face,
                                                  const char *image_name,
                                                  const char *real_name);

void          user_face_fill                     (UserFace   *face,
                                                  ActUser    *user);

#endif