2008-10-31 00:22:44 -04:00
|
|
|
#ifndef __SHELL_GLOBAL_H__
|
|
|
|
#define __SHELL_GLOBAL_H__
|
|
|
|
|
2008-10-31 11:20:54 -04:00
|
|
|
#include "mutter-plugin.h"
|
2008-10-31 00:22:44 -04:00
|
|
|
#include <clutter/clutter.h>
|
|
|
|
#include <glib-object.h>
|
2008-11-20 19:39:14 -05:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
2009-01-08 20:09:35 -05:00
|
|
|
#include <gtk/gtk.h>
|
2008-10-31 00:22:44 -04:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _ShellGlobal ShellGlobal;
|
|
|
|
typedef struct _ShellGlobalClass ShellGlobalClass;
|
|
|
|
|
|
|
|
#define SHELL_TYPE_GLOBAL (shell_global_get_type ())
|
|
|
|
#define SHELL_GLOBAL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), SHELL_TYPE_GLOBAL, ShellGlobal))
|
|
|
|
#define SHELL_GLOBAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_GLOBAL, ShellGlobalClass))
|
|
|
|
#define SHELL_IS_GLOBAL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), SHELL_TYPE_GLOBAL))
|
|
|
|
#define SHELL_IS_GLOBAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_GLOBAL))
|
|
|
|
#define SHELL_GLOBAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_GLOBAL, ShellGlobalClass))
|
|
|
|
|
2009-04-23 10:46:36 -04:00
|
|
|
#define SHELL_GCONF_DIR "/desktop/gnome/shell"
|
|
|
|
|
2008-11-07 13:42:23 -05:00
|
|
|
struct _ShellGlobalClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
|
|
|
void (*panel_run_dialog) (ShellGlobal *global,
|
|
|
|
int timestamp);
|
|
|
|
void (*panel_main_menu) (ShellGlobal *global,
|
|
|
|
int timestamp);
|
|
|
|
};
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
GType shell_global_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2009-01-08 20:09:35 -05:00
|
|
|
gboolean shell_clutter_texture_set_from_pixbuf (ClutterTexture *texture,
|
|
|
|
GdkPixbuf *pixbuf);
|
|
|
|
|
2009-06-15 20:05:16 -04:00
|
|
|
GdkPixbuf *shell_get_thumbnail(const gchar *uri, const gchar *mime_type);
|
2008-11-20 19:39:14 -05:00
|
|
|
|
2009-01-21 16:50:57 -05:00
|
|
|
GSList *shell_get_categories_for_desktop_file(const char *desktop_file_name);
|
|
|
|
|
2009-02-23 14:42:00 -05:00
|
|
|
guint16 shell_get_event_key_symbol(ClutterEvent *event);
|
|
|
|
|
2009-03-31 14:12:33 -04:00
|
|
|
guint16 shell_get_button_event_click_count(ClutterEvent *event);
|
|
|
|
|
2009-04-24 10:01:34 -04:00
|
|
|
ClutterActor *shell_get_event_related(ClutterEvent *event);
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
ShellGlobal *shell_global_get (void);
|
|
|
|
|
2009-01-19 18:21:57 -05:00
|
|
|
void shell_global_grab_dbus_service (ShellGlobal *global);
|
|
|
|
|
|
|
|
void shell_global_start_task_panel (ShellGlobal *global);
|
2009-01-19 18:06:59 -05:00
|
|
|
|
2009-04-29 14:01:09 -04:00
|
|
|
typedef enum {
|
|
|
|
SHELL_STAGE_INPUT_MODE_NONREACTIVE,
|
|
|
|
SHELL_STAGE_INPUT_MODE_NORMAL,
|
|
|
|
SHELL_STAGE_INPUT_MODE_FULLSCREEN
|
|
|
|
} ShellStageInputMode;
|
|
|
|
|
|
|
|
void shell_global_set_stage_input_mode (ShellGlobal *global,
|
|
|
|
ShellStageInputMode mode);
|
|
|
|
void shell_global_set_stage_input_region (ShellGlobal *global,
|
|
|
|
GSList *rectangles);
|
2008-11-02 00:18:41 -04:00
|
|
|
|
2008-11-21 10:33:00 -05:00
|
|
|
GList *shell_global_get_windows (ShellGlobal *global);
|
2008-10-31 14:05:19 -04:00
|
|
|
|
2008-10-31 11:20:54 -04:00
|
|
|
void _shell_global_set_plugin (ShellGlobal *global,
|
|
|
|
MutterPlugin *plugin);
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2008-11-24 14:07:18 -05:00
|
|
|
gboolean shell_global_grab_keyboard (ShellGlobal *global);
|
|
|
|
void shell_global_ungrab_keyboard (ShellGlobal *global);
|
2008-11-19 14:54:17 -05:00
|
|
|
|
2008-12-18 15:57:37 -05:00
|
|
|
void shell_global_reexec_self (ShellGlobal *global);
|
|
|
|
|
2009-03-24 14:25:07 -04:00
|
|
|
ClutterCairoTexture *shell_global_create_vertical_gradient (ClutterColor *top,
|
|
|
|
ClutterColor *bottom);
|
|
|
|
|
2009-06-08 19:04:52 -04:00
|
|
|
ClutterCairoTexture *shell_global_create_horizontal_gradient (ClutterColor *left,
|
|
|
|
ClutterColor *right);
|
|
|
|
|
2009-04-21 20:23:06 -04:00
|
|
|
ClutterActor *shell_global_create_root_pixmap_actor (ShellGlobal *global);
|
|
|
|
|
2009-04-24 10:01:34 -04:00
|
|
|
void shell_global_clutter_cairo_texture_draw_clock (ClutterCairoTexture *texture,
|
|
|
|
int hour,
|
|
|
|
int minute);
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __SHELL_GLOBAL_H__ */
|