Introspect src/gdmuser
In addition to the Makefile changes, we also change uid_t to gulong in the public API (which matches how it was already represented in the gobject properties). https://bugzilla.gnome.org/show_bug.cgi?id=601458
This commit is contained in:
parent
8c05003acf
commit
9ddebf0480
@ -165,7 +165,7 @@ libgnome_shell_la_LIBADD = \
|
||||
libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
|
||||
|
||||
typelibdir = $(pkglibdir)
|
||||
typelib_DATA = Shell-0.1.typelib Big-1.0.typelib St-1.0.typelib
|
||||
typelib_DATA = Shell-0.1.typelib Big-1.0.typelib St-1.0.typelib Gdm-1.0.typelib
|
||||
|
||||
Shell-0.1.gir: $(mutter) $(G_IR_SCANNER) Big-1.0.gir St-1.0.gir libgnome-shell.la Makefile
|
||||
$(AM_V_GEN) $(G_IR_SCANNER) \
|
||||
@ -237,3 +237,22 @@ St-1.0.typelib: St-1.0.gir
|
||||
$< -o $@
|
||||
|
||||
CLEANFILES += St-1.0.typelib
|
||||
|
||||
Gdm-1.0.gir: $(mutter) $(G_IR_SCANNER) libgdmuser-1.0.la Makefile
|
||||
$(AM_V_GEN) $(G_IR_SCANNER) \
|
||||
--namespace=Gdm \
|
||||
--nsversion=1.0 \
|
||||
--include=GObject-2.0 \
|
||||
--include=GdkPixbuf-2.0 \
|
||||
--libtool="$(LIBTOOL)" \
|
||||
--library=libgdmuser-1.0.la \
|
||||
$(addprefix $(srcdir)/,$(gdmuser_source_h)) \
|
||||
$(addprefix $(srcdir)/,$(gdmuser_source_c)) \
|
||||
$(gdmuser_cflags) \
|
||||
-o $@
|
||||
CLEANFILES += Gdm-1.0.gir
|
||||
|
||||
Gdm-1.0.typelib: libbig-1.0.la Gdm-1.0.gir
|
||||
$(AM_V_GEN) $(G_IR_COMPILER) Gdm-1.0.gir -o $@
|
||||
CLEANFILES += Gdm-1.0.typelib
|
||||
|
||||
|
@ -998,7 +998,7 @@ gdm_user_manager_get_user (GdmUserManager *manager,
|
||||
|
||||
GdmUser *
|
||||
gdm_user_manager_get_user_by_uid (GdmUserManager *manager,
|
||||
uid_t uid)
|
||||
gulong uid)
|
||||
{
|
||||
GdmUser *user;
|
||||
struct passwd *pwent;
|
||||
|
@ -75,7 +75,7 @@ GSList * gdm_user_manager_list_users (GdmUserManager *mana
|
||||
GdmUser * gdm_user_manager_get_user (GdmUserManager *manager,
|
||||
const char *user_name);
|
||||
GdmUser * gdm_user_manager_get_user_by_uid (GdmUserManager *manager,
|
||||
uid_t uid);
|
||||
gulong uid);
|
||||
|
||||
gboolean gdm_user_manager_activate_user_session (GdmUserManager *manager,
|
||||
GdmUser *user);
|
||||
|
@ -516,7 +516,7 @@ _gdm_user_icon_changed (GdmUser *user)
|
||||
* Since: 1.0
|
||||
**/
|
||||
|
||||
uid_t
|
||||
gulong
|
||||
gdm_user_get_uid (GdmUser *user)
|
||||
{
|
||||
g_return_val_if_fail (GDM_IS_USER (user), -1);
|
||||
|
@ -39,7 +39,7 @@ typedef struct _GdmUser GdmUser;
|
||||
|
||||
GType gdm_user_get_type (void) G_GNUC_CONST;
|
||||
|
||||
uid_t gdm_user_get_uid (GdmUser *user);
|
||||
gulong gdm_user_get_uid (GdmUser *user);
|
||||
G_CONST_RETURN char *gdm_user_get_user_name (GdmUser *user);
|
||||
G_CONST_RETURN char *gdm_user_get_real_name (GdmUser *user);
|
||||
G_CONST_RETURN char *gdm_user_get_home_directory (GdmUser *user);
|
||||
|
Loading…
Reference in New Issue
Block a user