[gnome-shell] Introspect src/gdmuser
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Introspect src/gdmuser
- Date: Fri, 13 Nov 2009 19:22:19 +0000 (UTC)
commit 9ddebf0480620988fa754a7088bcac6e6fc83cf0
Author: Dan Winship <danw gnome org>
Date: Tue Nov 10 12:12:27 2009 -0500
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
src/Makefile.am | 21 ++++++++++++++++++++-
src/gdmuser/gdm-user-manager.c | 2 +-
src/gdmuser/gdm-user-manager.h | 2 +-
src/gdmuser/gdm-user.c | 2 +-
src/gdmuser/gdm-user.h | 2 +-
5 files changed, 24 insertions(+), 5 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 3ed60b4..1970e85 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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
+
diff --git a/src/gdmuser/gdm-user-manager.c b/src/gdmuser/gdm-user-manager.c
index 167ca7d..e636b35 100644
--- a/src/gdmuser/gdm-user-manager.c
+++ b/src/gdmuser/gdm-user-manager.c
@@ -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;
diff --git a/src/gdmuser/gdm-user-manager.h b/src/gdmuser/gdm-user-manager.h
index 6c696e5..bb11180 100644
--- a/src/gdmuser/gdm-user-manager.h
+++ b/src/gdmuser/gdm-user-manager.h
@@ -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);
diff --git a/src/gdmuser/gdm-user.c b/src/gdmuser/gdm-user.c
index 4accb56..940c687 100644
--- a/src/gdmuser/gdm-user.c
+++ b/src/gdmuser/gdm-user.c
@@ -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);
diff --git a/src/gdmuser/gdm-user.h b/src/gdmuser/gdm-user.h
index 4edd3ba..ee5dc50 100644
--- a/src/gdmuser/gdm-user.h
+++ b/src/gdmuser/gdm-user.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]