summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libslab/libslab-utils.c36
-rw-r--r--libslab/libslab-utils.h1
2 files changed, 0 insertions, 37 deletions
diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c
index 019e08d5..94056951 100644
--- a/libslab/libslab-utils.c
+++ b/libslab/libslab-utils.c
@@ -202,42 +202,6 @@ libslab_get_current_screen (void)
return screen;
}
-gboolean
-libslab_mate_desktop_item_open_help (MateDesktopItem *item)
-{
- gchar *doc_path;
- gchar *help_uri;
-
- GError *error = NULL;
-
- gboolean retval = FALSE;
-
-
- if (! item)
- return retval;
-
- doc_path = libslab_mate_desktop_item_get_docpath (item);
-
- if (doc_path) {
- help_uri = g_strdup_printf ("help:%s", doc_path);
-
- if (!gtk_show_uri (libslab_get_current_screen (), help_uri, gtk_get_current_event_time (), &error)) {
- g_warning ("error opening %s [%s]\n", help_uri, error->message);
-
- g_error_free (error);
-
- retval = FALSE;
- }
- else
- retval = TRUE;
-
- g_free (help_uri);
- g_free (doc_path);
- }
-
- return retval;
-}
-
guint32
libslab_get_current_time_millis ()
{
diff --git a/libslab/libslab-utils.h b/libslab/libslab-utils.h
index 9819f901..f02e36c5 100644
--- a/libslab/libslab-utils.h
+++ b/libslab/libslab-utils.h
@@ -15,7 +15,6 @@ gboolean libslab_gtk_image_set_by_id (GtkImage *image, const gchar *id)
MateDesktopItem *libslab_mate_desktop_item_new_from_unknown_id (const gchar *id);
gboolean libslab_mate_desktop_item_launch_default (MateDesktopItem *item);
gchar *libslab_mate_desktop_item_get_docpath (MateDesktopItem *item);
-gboolean libslab_mate_desktop_item_open_help (MateDesktopItem *item);
guint32 libslab_get_current_time_millis (void);
gint libslab_strcmp (const gchar *a, const gchar *b);
gint libslab_strlen (const gchar *a);