summaryrefslogtreecommitdiff
path: root/libslab/libslab-utils.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 21:51:44 -0300
committerPerberos <[email protected]>2011-12-01 21:51:44 -0300
commit0b0e6bc987da4fd88a7854ebb12bde705e92c428 (patch)
tree47d329edd31c67eaa36b2147780e37e197e901b5 /libslab/libslab-utils.h
downloadmate-control-center-0b0e6bc987da4fd88a7854ebb12bde705e92c428.tar.bz2
mate-control-center-0b0e6bc987da4fd88a7854ebb12bde705e92c428.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libslab/libslab-utils.h')
-rw-r--r--libslab/libslab-utils.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/libslab/libslab-utils.h b/libslab/libslab-utils.h
new file mode 100644
index 00000000..10bf61b3
--- /dev/null
+++ b/libslab/libslab-utils.h
@@ -0,0 +1,46 @@
+#ifndef __LIBSLAB_UTILS_H__
+#define __LIBSLAB_UTILS_H__
+
+#include <glib.h>
+#include <gtk/gtk.h>
+#include <mateconf/mateconf-client.h>
+#include <libmate/mate-desktop-item.h>
+#define MATE_DESKTOP_USE_UNSTABLE_API 1
+#include <libmateui/mate-desktop-thumbnail.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+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);
+gpointer libslab_get_mateconf_value (const gchar *key);
+void libslab_set_mateconf_value (const gchar *key, gconstpointer data);
+guint libslab_mateconf_notify_add (const gchar *key, MateConfClientNotifyFunc callback, gpointer user_data);
+void libslab_mateconf_notify_remove (guint conn_id);
+void libslab_handle_g_error (GError **error, const gchar *msg_format, ...);
+gboolean libslab_desktop_item_is_a_terminal (const gchar *uri);
+gboolean libslab_desktop_item_is_logout (const gchar *uri);
+gboolean libslab_desktop_item_is_lockscreen (const gchar *uri);
+gchar *libslab_string_replace_once (const gchar *string, const gchar *key, const gchar *value);
+void libslab_spawn_command (const gchar *cmd);
+
+GdkScreen *libslab_get_current_screen (void);
+
+void libslab_thumbnail_factory_preinit (void);
+MateDesktopThumbnailFactory *libslab_thumbnail_factory_get (void);
+
+void libslab_checkpoint_init (const char *checkpoint_config_file_basename, const char *checkpoint_file_basename);
+void libslab_checkpoint (const char *format, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif