blob: 507de7b4764861efaea59e495655210750692afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef __LIBSLAB_UTILS_H__
#define __LIBSLAB_UTILS_H__
#include <glib.h>
#include <gtk/gtk.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);
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
|