diff options
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; -} |