diff options
author | rbuj <[email protected]> | 2020-03-16 11:30:32 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-27 14:51:02 +0100 |
commit | 0820c6f9a271eb2cbf007d92354ed89f4bc248e5 (patch) | |
tree | c77694ee5e825f3998e65b31a90de79f82080a30 /libslab/libslab-utils.c | |
parent | 64b4722006f4b998454ab936557ce85b6d9b130b (diff) | |
download | mate-control-center-0820c6f9a271eb2cbf007d92354ed89f4bc248e5.tar.bz2 mate-control-center-0820c6f9a271eb2cbf007d92354ed89f4bc248e5.tar.xz |
Port libslab_handle_g_error to the built-in GLib logging framework
Diffstat (limited to 'libslab/libslab-utils.c')
-rw-r--r-- | libslab/libslab-utils.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c index fc380719..f94ad39e 100644 --- a/libslab/libslab-utils.c +++ b/libslab/libslab-utils.c @@ -117,29 +117,3 @@ libslab_strcmp (const gchar *a, const gchar *b) return strcmp (a, b); } - -void -libslab_handle_g_error (GError **error, const gchar *msg_format, ...) -{ - gchar *msg; - va_list args; - - - va_start (args, msg_format); - msg = g_strdup_vprintf (msg_format, args); - va_end (args); - - if (*error) { - g_log ( - G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, - "\nGError raised: [%s]\nuser_message: [%s]\n", (*error)->message, msg); - - g_error_free (*error); - - *error = NULL; - } - else - g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "\nerror raised: [%s]\n", msg); - - g_free (msg); -} |