summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-14 19:46:54 +0200
committerraveit65 <[email protected]>2017-08-15 11:46:49 +0200
commit930a86b399d43ab779d8b70e43e31e4ef453fb8e (patch)
treeb43c012d46899439c9a8614b53137a9825d892a9 /libslab
parent40a7bc2d5cc3c5a4d8a825d783ad2c35282cf500 (diff)
downloadmate-control-center-930a86b399d43ab779d8b70e43e31e4ef453fb8e.tar.bz2
mate-control-center-930a86b399d43ab779d8b70e43e31e4ef453fb8e.tar.xz
libslab: drop unneeded libslab_mate_desktop_item_open_help function
Diffstat (limited to 'libslab')
-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);