diff options
author | zhuyaliang <[email protected]> | 2023-10-25 21:43:03 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-11-05 12:00:50 +0100 |
commit | c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (patch) | |
tree | 3ba609bf57b7bb3eab18d35d78bd1dc86773fba6 /libslab/libslab-utils.c | |
parent | 23fc7b675ebac7a9b02257a31203974d72f584b1 (diff) | |
download | mate-control-center-c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc.tar.bz2 mate-control-center-c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc.tar.xz |
Remove libslab library
libslab is only used in mate-c-c and there is no need to provide a library
Diffstat (limited to 'libslab/libslab-utils.c')
-rw-r--r-- | libslab/libslab-utils.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c deleted file mode 100644 index 5ee4d09c..00000000 --- a/libslab/libslab-utils.c +++ /dev/null @@ -1,70 +0,0 @@ -#include "libslab-utils.h" - -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - -#include <string.h> -#include <stdio.h> -#include <unistd.h> -#include <time.h> -#include <sys/stat.h> -#include <sys/resource.h> -#include <sys/time.h> -#include <gtk/gtk.h> - -MateDesktopItem * -libslab_mate_desktop_item_new_from_unknown_id (const gchar *id) -{ - MateDesktopItem *item; - gchar *basename; - - GError *error = NULL; - - if (! id) - return NULL; - - item = mate_desktop_item_new_from_uri (id, 0, & error); - - if (! error) - return item; - else { - g_error_free (error); - error = NULL; - } - - item = mate_desktop_item_new_from_file (id, 0, & error); - - if (! error) - return item; - else { - g_error_free (error); - error = NULL; - } - - item = mate_desktop_item_new_from_basename (id, 0, & error); - - if (! error) - return item; - else { - g_error_free (error); - error = NULL; - } - - basename = g_strrstr (id, "/"); - - if (basename) { - basename++; - - item = mate_desktop_item_new_from_basename (basename, 0, &error); - - if (! error) - return item; - else { - g_error_free (error); - error = NULL; - } - } - - return NULL; -} |