diff options
author | Stefano Karapetsas <[email protected]> | 2012-12-27 00:28:18 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-12-27 00:28:18 -0800 |
commit | 29c348cdf95c8ddac41a027cc3a7e09d4fdc8560 (patch) | |
tree | 9cf97da4f6e957738740eb0115c03346732ff205 /src | |
parent | d6c0362e70e695b1da921331f136d396d021f44c (diff) | |
parent | 12c23d62d0932bcecced3c2621674b89c4e6d265 (diff) | |
download | mate-polkit-29c348cdf95c8ddac41a027cc3a7e09d4fdc8560.tar.bz2 mate-polkit-29c348cdf95c8ddac41a027cc3a7e09d4fdc8560.tar.xz |
Merge pull request #3 from sbalneav/master
Fixed deprecation, compile error & warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/polkitmateauthenticationdialog.c | 1 | ||||
-rw-r--r-- | src/polkitmatelistener.c | 8 |
3 files changed, 11 insertions, 2 deletions
@@ -248,9 +248,11 @@ main (int argc, char **argv) } error = NULL; - if (!polkit_agent_register_listener (listener, + if (!polkit_agent_listener_register (listener, + POLKIT_AGENT_REGISTER_FLAGS_NONE, session, "/org/mate/PolicyKit1/AuthenticationAgent", + NULL, &error)) { g_printerr ("Cannot register authentication agent: %s\n", error->message); diff --git a/src/polkitmateauthenticationdialog.c b/src/polkitmateauthenticationdialog.c index 0d39890..3f02b19 100644 --- a/src/polkitmateauthenticationdialog.c +++ b/src/polkitmateauthenticationdialog.c @@ -273,6 +273,7 @@ get_image (PolkitMateAuthenticationDialog *dialog) pixbuf = NULL; copy_pixbuf = NULL; vendor_pixbuf = NULL; + image = NULL; if (dialog->priv->icon_name == NULL || strlen (dialog->priv->icon_name) == 0) { diff --git a/src/polkitmatelistener.c b/src/polkitmatelistener.c index d70836f..1b7c486 100644 --- a/src/polkitmatelistener.c +++ b/src/polkitmatelistener.c @@ -27,6 +27,12 @@ #include "polkitmatelistener.h" #include "polkitmateauthenticator.h" +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + struct _PolkitMateListener { PolkitAgentListener parent_instance; @@ -67,7 +73,7 @@ polkit_mate_listener_init (PolkitMateListener *listener) static void polkit_mate_listener_finalize (GObject *object) { - PolkitMateListener *listener; + PolkitMateListener UNUSED_VARIABLE *listener; listener = POLKIT_MATE_LISTENER (object); |