Commit 2816f794 authored by David Zeuthen's avatar David Zeuthen
parents a0267b82 c27e93f7
......@@ -389,7 +389,7 @@ polkit_caller_new_from_dbus_name (DBusConnection *con, const char *dbus_name, DB
session = NULL;
uid = dbus_bus_get_unix_user (con, dbus_name, error);
if (uid == ((unsigned long) -1) || dbus_error_is_set (error)) {
if (dbus_error_is_set (error)) {
g_warning ("Could not get uid for connection: %s %s", error->name, error->message);
goto out;
}
......
......@@ -83,7 +83,6 @@ struct PolKitGrant
/**
* polkit_grant_new:
* @void:
*
* Creates a #PolKitGrant object.
*
......
......@@ -144,7 +144,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant,
* Basically, this callback enables a program to provide an user
* interface like this:
*
* <programlisting>
* @code
* +------------------------------------------------------------+
* | You need to authenticate to access the volume 'Frobnicator |
* | Adventures Vol 2' |
......@@ -157,7 +157,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant,
* | |
* | [Cancel] [Authenticate] |
* +------------------------------------------------------------+
* </programlisting>
* @endcode
*
* This dialog assumes that @grant_type passed was
* #POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_ALWAYS. By ticking the
......@@ -170,7 +170,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant,
* #POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_SESSION. Then the dialog
* should look like this:
*
* <programlisting>
* @code
* +------------------------------------------------------------+
* | You need to authenticate to access the volume 'Frobnicator |
* | Adventures Vol 2' |
......@@ -181,13 +181,13 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant,
* | |
* | [Cancel] [Authenticate] |
* +------------------------------------------------------------+
* </programlisting>
* @endcode
*
* Finally, if the @grant_type value passed is
* e.g. #POLKIT_RESULT_ONLY_VIA_SELF_AUTH, there are no options to
* click.:
*
* <programlisting>
* @code
* +------------------------------------------------------------+
* | You need to authenticate to access the volume 'Frobnicator |
* | Adventures Vol 2' |
......@@ -196,7 +196,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant,
* | |
* | [Cancel] [Authenticate] |
* +------------------------------------------------------------+
* </programlisting>
* @endcode
*
* Of course, these examples also applies to
* #POLKIT_RESULT_ONLY_VIA_ADMIN_AUTH and friends.
......@@ -239,7 +239,7 @@ typedef void (*PolKitGrantDone) (PolKitGrant *polkit_grant,
*
* For glib mainloop, the function will typically look like this:
*
* <programlisting>
* @code
* static void
* child_watch_func (GPid pid,
* gint status,
......@@ -254,7 +254,7 @@ typedef void (*PolKitGrantDone) (PolKitGrant *polkit_grant,
* {
* return g_child_watch_add (pid, child_watch_func, polkit_grant);
* }
* </programlisting>
* @endcode
*
* Returns: 0 if the watch couldn't be set up; otherwise an unique
* identifier for the watch.
......@@ -274,7 +274,7 @@ typedef int (*PolKitGrantAddChildWatch) (PolKitGrant *polkit_grant,
*
* For glib mainloop, the function will typically look like this:
*
* <programlisting>
* @code
* static gboolean
* io_watch_have_data (GIOChannel *channel, GIOCondition condition, gpointer user_data)
* {
......@@ -302,7 +302,7 @@ typedef int (*PolKitGrantAddChildWatch) (PolKitGrant *polkit_grant,
* out:
* return id;
* }
* </programlisting>
* @endcode
*
* Returns: 0 if the watch couldn't be set up; otherwise an unique
* identifier for the watch.
......@@ -322,13 +322,13 @@ typedef int (*PolKitGrantAddIOWatch) (PolKitGrant *polkit_grant,
*
* For glib mainloop, the function will typically look like this:
*
* <programlisting>
* @code
* static void
* remove_watch (PolKitGrant *polkit_auth, int watch_id)
* {
* g_source_remove (watch_id);
* }
* </programlisting>
* @endcode
*
**/
typedef void (*PolKitGrantRemoveWatch) (PolKitGrant *polkit_grant,
......
......@@ -80,7 +80,7 @@ typedef void (*PolKitContextConfigChangedCB) (PolKitContext *pk_context,
*
* For glib mainloop, the function will typically look like this:
*
* <programlisting>
* @code
* static gboolean
* io_watch_have_data (GIOChannel *channel, GIOCondition condition, gpointer user_data)
* {
......@@ -108,7 +108,7 @@ typedef void (*PolKitContextConfigChangedCB) (PolKitContext *pk_context,
* out:
* return id;
* }
* </programlisting>
* @endcode
*
* Returns: 0 if the watch couldn't be set up; otherwise an unique
* identifier for the watch.
......@@ -126,13 +126,13 @@ typedef int (*PolKitContextAddIOWatch) (PolKitContext *pk_context, int fd);
*
* For the glib mainloop, the function will typically look like this:
*
* <programlisting>
* @code
* static void
* io_remove_watch (PolKitContext *pk_context, int watch_id)
* {
* g_source_remove (watch_id);
* }
* </programlisting>
* @endcode
*
**/
typedef void (*PolKitContextRemoveIOWatch) (PolKitContext *pk_context, int watch_id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment