[gdm/wip/slave-connection: 34/37] libgdmgreeter: rename to libgdm
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/slave-connection: 34/37] libgdmgreeter: rename to libgdm
- Date: Fri, 13 Jul 2012 07:01:14 +0000 (UTC)
commit 670caa068f0c791a8edd6c9b2bf352dde9b3e5c2
Author: Ray Strode <rstrode redhat com>
Date: Sun May 20 01:13:00 2012 +0200
libgdmgreeter: rename to libgdm
libgdmgreeter is useful for clients that aren't greeters.
This will be even more true in the future as it gets updated
to be useful for screensavers.
Given it offers APIs that apply to non-greeter applications,
it's silly to have greeter in the library name.
This commit renames libgdmgreeter to libgdm.
https://bugzilla.gnome.org/show_bug.cgi?id=676381
.gitignore | 8 +-
configure.ac | 10 +-
gui/Makefile.am | 4 +-
gui/{libgdmgreeter => libgdm}/Makefile.am | 54 +++++-----
.../gdm-greeter-client.c => libgdm/gdm-client.c} | 115 ++++++++++----------
gui/libgdm/gdm-client.h | 83 ++++++++++++++
.../gdm-sessions.c} | 14 ++--
.../gdm-sessions.h} | 6 +-
.../gdmgreeter.pc.in => libgdm/gdm.pc.in} | 0
gui/libgdmgreeter/gdm-greeter-client.h | 83 --------------
10 files changed, 189 insertions(+), 188 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9bec5a9..487eebf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -126,10 +126,10 @@ docs/gdm-oc.omf
docs/gdm-ru.omf
docs/gdm-sv.omf
docs/gdm-uk.omf
-gui/libgdmgreeter/gdm-client-glue.h
-gui/libgdmgreeter/gdm-client-glue.c
-gui/libgdmgreeter/gdm-manager-glue.h
-gui/libgdmgreeter/gdm-manager-glue.c
+gui/libgdm/gdm-client-glue.h
+gui/libgdm/gdm-client-glue.c
+gui/libgdm/gdm-manager-glue.h
+gui/libgdm/gdm-manager-glue.c
gui/simple-chooser/gdm-host-chooser
gui/simple-chooser/gdm-simple-chooser
gui/simple-greeter/gdm-simple-greeter
diff --git a/configure.ac b/configure.ac
index e53f684..df47e46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,10 +182,10 @@ PKG_CHECK_MODULES(CHECK,
have_check=no)
AM_CONDITIONAL([HAVE_CHECK],[test "x$CHECK_CFLAGS" != "x"])
-PKG_CHECK_MODULES(LIBGDMGREETER, glib-2.0 gio-2.0 gio-unix-2.0);
+PKG_CHECK_MODULES(LIBGDM, glib-2.0 gio-2.0 gio-unix-2.0);
GOBJECT_INTROSPECTION_CHECK([0.9.12])
-LIBGDMGREETER_GIR_INCLUDES="GLib-2.0 GObject-2.0 Gio-2.0"
-AC_SUBST(LIBGDMGREETER_GIR_INCLUDES)
+LIBGDM_GIR_INCLUDES="GLib-2.0 GObject-2.0 Gio-2.0"
+AC_SUBST(LIBGDM_GIR_INCLUDES)
dnl ---------------------------------------------------------------------------
dnl - Configuration file stuff
@@ -1507,8 +1507,8 @@ Makefile
daemon/Makefile
docs/Makefile
gui/Makefile
-gui/libgdmgreeter/Makefile
-gui/libgdmgreeter/gdmgreeter.pc
+gui/libgdm/Makefile
+gui/libgdm/gdm.pc
gui/simple-greeter/Makefile
gui/simple-greeter/libgdmsimplegreeter/Makefile
gui/simple-greeter/libgdmsimplegreeter/gdmsimplegreeter.pc
diff --git a/gui/Makefile.am b/gui/Makefile.am
index ff8a039..ce90055 100644
--- a/gui/Makefile.am
+++ b/gui/Makefile.am
@@ -1,7 +1,7 @@
NULL =
SUBDIRS = \
- libgdmgreeter \
+ libgdm \
simple-greeter \
$(NULL)
@@ -10,7 +10,7 @@ SUBDIRS += simple-chooser
endif
DIST_SUBDIRS = \
- libgdmgreeter \
+ libgdm \
simple-chooser \
simple-greeter \
$(NULL)
diff --git a/gui/libgdmgreeter/Makefile.am b/gui/libgdm/Makefile.am
similarity index 63%
rename from gui/libgdmgreeter/Makefile.am
rename to gui/libgdm/Makefile.am
index 13cc9e3..24901dd 100644
--- a/gui/libgdmgreeter/Makefile.am
+++ b/gui/libgdm/Makefile.am
@@ -41,35 +41,35 @@ AM_CPPFLAGS = \
$(END_OF_LIST)
lib_LTLIBRARIES = \
- libgdmgreeter.la \
+ libgdm.la \
$(END_OF_LIST)
-libgdmgreeterdir = $(includedir)/gdm
-libgdmgreeter_HEADERS = \
- gdm-greeter-client.h \
- gdm-greeter-sessions.h \
+libgdmdir = $(includedir)/gdm
+libgdm_HEADERS = \
+ gdm-client.h \
+ gdm-sessions.h \
$(END_OF_LIST)
-libgdmgreeter_la_CFLAGS = \
- $(LIBGDMGREETER_CFLAGS) \
+libgdm_la_CFLAGS = \
+ $(LIBGDM_CFLAGS) \
$(END_OF_LIST)
-libgdmgreeter_la_LDFLAGS = \
+libgdm_la_LDFLAGS = \
-export-symbols-regex '^[^_].*' \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-no-undefined \
$(END_OF_LIST)
-libgdmgreeter_la_LIBADD = \
- $(LIBGDMGREETER_LIBS) \
+libgdm_la_LIBADD = \
+ $(LIBGDM_LIBS) \
$(END_OF_LIST)
-libgdmgreeter_la_SOURCES = \
- $(libgdmgreeter_HEADERS) \
- gdm-greeter-client.c \
- gdm-greeter-sessions.c \
+libgdm_la_SOURCES = \
+ $(libgdm_HEADERS) \
+ gdm-client.c \
+ gdm-sessions.c \
$(END_OF_LIST)
-nodist_libgdmgreeter_la_SOURCES = \
+nodist_libgdm_la_SOURCES = \
gdm-client-glue.c \
gdm-client-glue.h \
gdm-manager-glue.c \
@@ -77,36 +77,36 @@ nodist_libgdmgreeter_la_SOURCES = \
$(END_OF_LIST)
pkgconfigdir = $(libdir)/pkgconfig
-dist_pkgconfig_DATA = gdmgreeter.pc
+dist_pkgconfig_DATA = gdm.pc
-include $(INTROSPECTION_MAKEFILE)
if HAVE_INTROSPECTION
girdir = $(datadir)/gir-1.0
-gir_DATA = GdmGreeter-1.0.gir
+gir_DATA = Gdm-1.0.gir
typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = $(gir_DATA:.gir=.typelib)
INTROSPECTION_GIRS = $(gir_DATA)
-GdmGreeter-1.0.gir: \
+Gdm-1.0.gir: \
$(INTROSPECTION_SCANNER) \
- libgdmgreeter.la \
+ libgdm.la \
Makefile \
$(END_OF_LIST)
-GdmGreeter_1_0_gir_SCANNERFLAGS = \
+Gdm_1_0_gir_SCANNERFLAGS = \
--warn-all \
- --namespace=GdmGreeter \
+ --namespace=Gdm \
--identifier-prefix Gdm \
$(AM_CPPFLAGS) \
- $(libgdmgreeter_la_CFLAGS) \
+ $(libgdm_la_CFLAGS) \
$(END_OF_LIST)
-GdmGreeter_1_0_gir_INCLUDES = $(LIBGDMGREETER_GIR_INCLUDES)
-GdmGreeter_1_0_gir_LIBS = libgdmgreeter.la
-GdmGreeter_1_0_gir_FILES = \
- $(filter-out %-private.h, $(libgdmgreeter_la_SOURCES)) \
- $(filter-out %-private.h, $(nodist_libgdmgreeter_la_SOURCES)) \
+Gdm_1_0_gir_INCLUDES = $(LIBGDM_GIR_INCLUDES)
+Gdm_1_0_gir_LIBS = libgdm.la
+Gdm_1_0_gir_FILES = \
+ $(filter-out %-private.h, $(libgdm_la_SOURCES)) \
+ $(filter-out %-private.h, $(nodist_libgdm_la_SOURCES)) \
$(END_OF_LIST)
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
diff --git a/gui/libgdmgreeter/gdm-greeter-client.c b/gui/libgdm/gdm-client.c
similarity index 71%
rename from gui/libgdmgreeter/gdm-greeter-client.c
rename to gui/libgdm/gdm-client.c
index 47e9a6d..42d81d1 100644
--- a/gui/libgdmgreeter/gdm-greeter-client.c
+++ b/gui/libgdm/gdm-client.c
@@ -30,15 +30,15 @@
#include <glib/gi18n.h>
#include <glib-object.h>
-#include "gdm-greeter-client.h"
+#include "gdm-client.h"
#include "gdm-client-glue.h"
#include "gdm-manager-glue.h"
-#define GDM_GREETER_CLIENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GDM_TYPE_GREETER_CLIENT, GdmGreeterClientPrivate))
+#define GDM_CLIENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GDM_TYPE_CLIENT, GdmClientPrivate))
#define SESSION_DBUS_PATH "/org/gnome/DisplayManager/Session"
-struct GdmGreeterClientPrivate
+struct GdmClientPrivate
{
GdmManager *manager;
GdmUserVerifier *user_verifier;
@@ -49,28 +49,28 @@ struct GdmGreeterClientPrivate
char *address;
};
-static void gdm_greeter_client_class_init (GdmGreeterClientClass *klass);
-static void gdm_greeter_client_init (GdmGreeterClient *greeter_client);
-static void gdm_greeter_client_finalize (GObject *object);
+static void gdm_client_class_init (GdmClientClass *klass);
+static void gdm_client_init (GdmClient *client);
+static void gdm_client_finalize (GObject *object);
-G_DEFINE_TYPE (GdmGreeterClient, gdm_greeter_client, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GdmClient, gdm_client, G_TYPE_OBJECT);
static gpointer client_object = NULL;
GQuark
-gdm_greeter_client_error_quark (void)
+gdm_client_error_quark (void)
{
static GQuark error_quark = 0;
if (error_quark == 0)
- error_quark = g_quark_from_static_string ("gdm-greeter-client");
+ error_quark = g_quark_from_static_string ("gdm-client");
return error_quark;
}
/**
- * gdm_greeter_client_open_connection_sync:
- * @client: a #GdmGreeterClient
+ * gdm_client_open_connection_sync:
+ * @client: a #GdmClient
* @cancellable: a #GCancellable
* @error: a #GError
*
@@ -81,13 +81,13 @@ gdm_greeter_client_error_quark (void)
* Returns: %TRUE if connected, or %FALSE if unavailable
*/
gboolean
-gdm_greeter_client_open_connection_sync (GdmGreeterClient *client,
- GCancellable *cancellable,
- GError **error)
+gdm_client_open_connection_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error)
{
gboolean ret;
- g_return_val_if_fail (GDM_IS_GREETER_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
client->priv->manager = gdm_manager_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE,
@@ -110,7 +110,7 @@ gdm_greeter_client_open_connection_sync (GdmGreeterClient *client,
goto out;
}
- g_debug ("GdmGreeterClient: connecting to address: %s", client->priv->address);
+ g_debug ("GdmClient: connecting to address: %s", client->priv->address);
client->priv->connection = g_dbus_connection_new_for_address_sync (client->priv->address,
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT,
@@ -128,8 +128,8 @@ gdm_greeter_client_open_connection_sync (GdmGreeterClient *client,
return client->priv->connection != NULL;
}
/**
- * gdm_greeter_client_close_connection_sync:
- * @client: a #GdmGreeterClient
+ * gdm_client_close_connection_sync:
+ * @client: a #GdmClient
* @cancellable: a #GCancellable
* @error: a #GError
*
@@ -138,11 +138,11 @@ gdm_greeter_client_open_connection_sync (GdmGreeterClient *client,
* Returns: %TRUE if disconnected, or %FALSE if failed
*/
gboolean
-gdm_greeter_client_close_connection_sync (GdmGreeterClient *client,
- GCancellable *cancellable,
- GError **error)
+gdm_client_close_connection_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error)
{
- g_return_val_if_fail (GDM_IS_GREETER_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
g_clear_object (&client->priv->user_verifier);
g_clear_object (&client->priv->greeter);
@@ -155,8 +155,8 @@ gdm_greeter_client_close_connection_sync (GdmGreeterClient *client,
}
/**
- * gdm_greeter_client_get_user_verifier_sync:
- * @client: a #GdmGreeterClient
+ * gdm_client_get_user_verifier_sync:
+ * @client: a #GdmClient
* @cancellable: a #GCancellable
* @error: a #GError
*
@@ -166,9 +166,9 @@ gdm_greeter_client_close_connection_sync (GdmGreeterClient *client,
* Returns: (transfer full): #GdmUserVerifier or %NULL if not connected
*/
GdmUserVerifier *
-gdm_greeter_client_get_user_verifier_sync (GdmGreeterClient *client,
- GCancellable *cancellable,
- GError **error)
+gdm_client_get_user_verifier_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error)
{
if (client->priv->user_verifier != NULL) {
return g_object_ref (client->priv->user_verifier);
@@ -185,8 +185,8 @@ gdm_greeter_client_get_user_verifier_sync (GdmGreeterClient *client,
}
/**
- * gdm_greeter_client_get_greeter_sync:
- * @client: a #GdmGreeterClient
+ * gdm_client_get_greeter_sync:
+ * @client: a #GdmClient
* @cancellable: a #GCancellable
* @error: a #GError
*
@@ -198,9 +198,9 @@ gdm_greeter_client_get_user_verifier_sync (GdmGreeterClient *client,
* Returns: (transfer full): #GdmGreeter or %NULL if caller is not a greeter
*/
GdmGreeter *
-gdm_greeter_client_get_greeter_sync (GdmGreeterClient *client,
- GCancellable *cancellable,
- GError **error)
+gdm_client_get_greeter_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error)
{
if (client->priv->greeter != NULL) {
return g_object_ref (client->priv->greeter);
@@ -216,9 +216,10 @@ gdm_greeter_client_get_greeter_sync (GdmGreeterClient *client,
return g_object_ref (client->priv->greeter);
}
+
/**
- * gdm_greeter_client_get_remote_greeter_sync:
- * @client: a #GdmGreeterClient
+ * gdm_client_get_remote_greeter_sync:
+ * @client: a #GdmClient
* @cancellable: a #GCancellable
* @error: a #GError
*
@@ -229,9 +230,9 @@ gdm_greeter_client_get_greeter_sync (GdmGreeterClient *client,
* Returns: (transfer full): #GdmRemoteGreeter or %NULL if caller is not remote
*/
GdmRemoteGreeter *
-gdm_greeter_client_get_remote_greeter_sync (GdmGreeterClient *client,
- GCancellable *cancellable,
- GError **error)
+gdm_client_get_remote_greeter_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error)
{
if (client->priv->remote_greeter != NULL) {
return g_object_ref (client->priv->remote_greeter);
@@ -248,8 +249,8 @@ gdm_greeter_client_get_remote_greeter_sync (GdmGreeterClient *client,
}
/**
- * gdm_greeter_client_get_chooser_sync:
- * @client: a #GdmGreeterClient
+ * gdm_client_get_chooser_sync:
+ * @client: a #GdmClient
* @cancellable: a #GCancellable
* @error: a #GError
*
@@ -260,9 +261,9 @@ gdm_greeter_client_get_remote_greeter_sync (GdmGreeterClient *client,
* Returns: (transfer full): #GdmChooser or %NULL if caller is not a chooser
*/
GdmChooser *
-gdm_greeter_client_get_chooser_sync (GdmGreeterClient *client,
- GCancellable *cancellable,
- GError **error)
+gdm_client_get_chooser_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error)
{
if (client->priv->chooser != NULL) {
@@ -280,51 +281,51 @@ gdm_greeter_client_get_chooser_sync (GdmGreeterClient *client,
}
static void
-gdm_greeter_client_class_init (GdmGreeterClientClass *klass)
+gdm_client_class_init (GdmClientClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->finalize = gdm_greeter_client_finalize;
+ object_class->finalize = gdm_client_finalize;
- g_type_class_add_private (klass, sizeof (GdmGreeterClientPrivate));
+ g_type_class_add_private (klass, sizeof (GdmClientPrivate));
}
static void
-gdm_greeter_client_init (GdmGreeterClient *client)
+gdm_client_init (GdmClient *client)
{
- client->priv = GDM_GREETER_CLIENT_GET_PRIVATE (client);
+ client->priv = GDM_CLIENT_GET_PRIVATE (client);
}
static void
-gdm_greeter_client_finalize (GObject *object)
+gdm_client_finalize (GObject *object)
{
- GdmGreeterClient *client;
+ GdmClient *client;
g_return_if_fail (object != NULL);
- g_return_if_fail (GDM_IS_GREETER_CLIENT (object));
+ g_return_if_fail (GDM_IS_CLIENT (object));
- client = GDM_GREETER_CLIENT (object);
+ client = GDM_CLIENT (object);
g_return_if_fail (client->priv != NULL);
- gdm_greeter_client_close_connection_sync (client, NULL, NULL);
+ gdm_client_close_connection_sync (client, NULL, NULL);
g_free (client->priv->address);
- G_OBJECT_CLASS (gdm_greeter_client_parent_class)->finalize (object);
+ G_OBJECT_CLASS (gdm_client_parent_class)->finalize (object);
}
-GdmGreeterClient *
-gdm_greeter_client_new (void)
+GdmClient *
+gdm_client_new (void)
{
if (client_object != NULL) {
g_object_ref (client_object);
} else {
- client_object = g_object_new (GDM_TYPE_GREETER_CLIENT, NULL);
+ client_object = g_object_new (GDM_TYPE_CLIENT, NULL);
g_object_add_weak_pointer (client_object,
(gpointer *) &client_object);
}
- return GDM_GREETER_CLIENT (client_object);
+ return GDM_CLIENT (client_object);
}
diff --git a/gui/libgdm/gdm-client.h b/gui/libgdm/gdm-client.h
new file mode 100644
index 0000000..8395fb0
--- /dev/null
+++ b/gui/libgdm/gdm-client.h
@@ -0,0 +1,83 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2012 Red Hat, Inc.
+ * Copyright (C) 2012 Giovanni Campagna <scampa giovanni gmail com>
+ *
+ * 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 2 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifndef __GDM_CLIENT_H
+#define __GDM_CLIENT_H
+
+#include <glib-object.h>
+#include "gdm-client-glue.h"
+
+G_BEGIN_DECLS
+
+#define GDM_TYPE_CLIENT (gdm_client_get_type ())
+#define GDM_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_CLIENT, GdmClient))
+#define GDM_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_CLIENT, GdmClientClass))
+#define GDM_IS_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_CLIENT))
+#define GDM_IS_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_CLIENT))
+#define GDM_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_CLIENT, GdmClientClass))
+
+typedef struct GdmClientPrivate GdmClientPrivate;
+
+typedef struct
+{
+ GObject parent;
+ GdmClientPrivate *priv;
+} GdmClient;
+
+typedef struct
+{
+ GObjectClass parent_class;
+
+} GdmClientClass;
+
+#define GDM_CLIENT_ERROR (gdm_client_error_quark ())
+
+typedef enum _GdmClientError {
+ GDM_CLIENT_ERROR_GENERIC = 0,
+} GdmClientError;
+
+GType gdm_client_get_type (void);
+GQuark gdm_client_error_quark (void);
+
+GdmClient * gdm_client_new (void);
+
+gboolean gdm_client_open_connection_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error);
+gboolean gdm_client_close_connection_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error);
+GdmUserVerifier *gdm_client_get_user_verifier_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error);
+GdmGreeter *gdm_client_get_greeter_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error);
+GdmRemoteGreeter *gdm_client_get_remote_greeter_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error);
+GdmChooser *gdm_client_get_chooser_sync (GdmClient *client,
+ GCancellable *cancellable,
+ GError **error);
+
+G_END_DECLS
+
+#endif /* __GDM_CLIENT_H */
diff --git a/gui/libgdmgreeter/gdm-greeter-sessions.c b/gui/libgdm/gdm-sessions.c
similarity index 95%
rename from gui/libgdmgreeter/gdm-greeter-sessions.c
rename to gui/libgdm/gdm-sessions.c
index fe34293..945453e 100644
--- a/gui/libgdmgreeter/gdm-greeter-sessions.c
+++ b/gui/libgdm/gdm-sessions.c
@@ -35,7 +35,7 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
-#include "gdm-greeter-sessions.h"
+#include "gdm-sessions.h"
typedef struct _GdmSessionFile {
char *id;
@@ -207,7 +207,7 @@ collect_sessions (void)
}
/**
- * gdm_greeter_get_session_ids:
+ * gdm_get_session_ids:
*
* Reads /usr/share/xsessions and other relevant places for possible sessions
* to log into and returns the complete list.
@@ -215,7 +215,7 @@ collect_sessions (void)
* Returns: (transfer full): a %NULL terminated list of session ids
*/
char **
-gdm_greeter_get_session_ids (void)
+gdm_get_session_ids (void)
{
GHashTableIter iter;
gpointer key, value;
@@ -242,8 +242,8 @@ gdm_greeter_get_session_ids (void)
}
/**
- * gdm_greeter_get_session_name_and_description:
- * @id: an id from gdm_greeter_get_session_ids()
+ * gdm_get_session_name_and_description:
+ * @id: an id from gdm_get_session_ids()
* @description: (out): optional returned session description
*
* Takes an xsession id and returns the name and comment about it.
@@ -251,8 +251,8 @@ gdm_greeter_get_session_ids (void)
* Returns: The session name if found, or %NULL otherwise
*/
char *
-gdm_greeter_get_session_name_and_description (const char *id,
- char **description)
+gdm_get_session_name_and_description (const char *id,
+ char **description)
{
GdmSessionFile *session;
char *name;
diff --git a/gui/libgdmgreeter/gdm-greeter-sessions.h b/gui/libgdm/gdm-sessions.h
similarity index 81%
rename from gui/libgdmgreeter/gdm-greeter-sessions.h
rename to gui/libgdm/gdm-sessions.h
index ab78a98..c456974 100644
--- a/gui/libgdmgreeter/gdm-greeter-sessions.h
+++ b/gui/libgdm/gdm-sessions.h
@@ -28,9 +28,9 @@
G_BEGIN_DECLS
-char ** gdm_greeter_get_session_ids (void);
-char * gdm_greeter_get_session_name_and_description (const char *id,
- char **description);
+char ** gdm_get_session_ids (void);
+char * gdm_get_session_name_and_description (const char *id,
+ char **description);
G_END_DECLS
diff --git a/gui/libgdmgreeter/gdmgreeter.pc.in b/gui/libgdm/gdm.pc.in
similarity index 100%
rename from gui/libgdmgreeter/gdmgreeter.pc.in
rename to gui/libgdm/gdm.pc.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]