2009-10-27 15:27:45 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
2010-09-26 15:18:26 +00:00
|
|
|
#ifndef __SHELL_UTIL_H__
|
|
|
|
#define __SHELL_UTIL_H__
|
2009-07-30 04:22:18 +00:00
|
|
|
|
|
|
|
#include <gio/gio.h>
|
2010-11-17 09:59:53 +00:00
|
|
|
#include <clutter/clutter.h>
|
2011-06-28 00:17:27 +00:00
|
|
|
#include <libsoup/soup.h>
|
2009-07-30 04:22:18 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2011-03-24 14:54:46 +00:00
|
|
|
char *shell_util_get_label_for_uri (const char *text_uri);
|
|
|
|
GIcon *shell_util_get_icon_for_uri (const char *text_uri);
|
2009-07-30 04:22:18 +00:00
|
|
|
|
2011-03-24 14:54:46 +00:00
|
|
|
void shell_util_set_hidden_from_pick (ClutterActor *actor,
|
|
|
|
gboolean hidden);
|
2011-03-26 20:34:25 +00:00
|
|
|
|
2011-03-24 14:54:46 +00:00
|
|
|
void shell_util_get_transformed_allocation (ClutterActor *actor,
|
|
|
|
ClutterActorBox *box);
|
2011-03-13 00:41:23 +00:00
|
|
|
|
2011-06-24 00:40:36 +00:00
|
|
|
int shell_util_get_week_start (void);
|
2011-08-10 16:58:40 +00:00
|
|
|
|
|
|
|
char *shell_util_normalize_and_casefold (const char *str);
|
|
|
|
|
2011-03-24 14:54:46 +00:00
|
|
|
char *shell_util_format_date (const char *format,
|
|
|
|
gint64 time_ms);
|
2011-03-23 20:01:10 +00:00
|
|
|
|
2011-06-28 00:17:27 +00:00
|
|
|
void shell_write_soup_message_to_stream (GOutputStream *stream,
|
|
|
|
SoupMessage *message,
|
|
|
|
GError **error);
|
|
|
|
|
2011-03-24 14:54:46 +00:00
|
|
|
gboolean shell_write_string_to_stream (GOutputStream *stream,
|
|
|
|
const char *str,
|
|
|
|
GError **error);
|
2011-03-23 20:01:10 +00:00
|
|
|
|
2011-03-24 14:54:46 +00:00
|
|
|
char *shell_get_file_contents_utf8_sync (const char *path,
|
|
|
|
GError **error);
|
2011-03-23 20:01:10 +00:00
|
|
|
|
2011-03-24 14:54:46 +00:00
|
|
|
gboolean shell_parse_search_provider (const char *data,
|
|
|
|
char **name,
|
|
|
|
char **url,
|
|
|
|
GList **langs,
|
|
|
|
char **icon_data_uri,
|
|
|
|
GError **error);
|
2011-03-23 20:01:10 +00:00
|
|
|
|
2011-09-17 07:06:00 +00:00
|
|
|
void shell_shader_effect_set_double_uniform (ClutterShaderEffect *effect,
|
|
|
|
const gchar *name,
|
|
|
|
gdouble value);
|
|
|
|
|
2012-02-11 03:51:42 +00:00
|
|
|
gboolean shell_session_is_active_for_systemd (void);
|
|
|
|
|
2011-11-03 20:57:33 +00:00
|
|
|
gboolean shell_util_wifexited (int status,
|
|
|
|
int *exit);
|
|
|
|
|
2009-07-30 04:22:18 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2010-09-26 15:18:26 +00:00
|
|
|
#endif /* __SHELL_UTIL_H__ */
|