Mockup panel, xevent skeleton.

This commit is contained in:
Tomas Frydrych 2008-10-15 17:50:06 +01:00
parent f6c958ff26
commit 5f3e27bbd7
2 changed files with 25 additions and 3 deletions

View File

@ -14,11 +14,9 @@ moblin_la_CFLAGS = -fPIC
moblin_la_SOURCES = moblin.c
moblin_la_LDFLAGS = -module -avoid-version -no-undefined
moblin_la_LIBADD = @CLUTTER_LIBS@
pkglib_LTLIBRARIES = default.la moblin.la
pkglib_LTLIBRARIES = default.la
# post-install hook to remove the .la and .a files we are not interested in
# (There is no way to stop libtool generating static libs locally, and we
# cannot do this globally because of libmetacity-private.so).

View File

@ -55,6 +55,8 @@ static void unmaximize (MetaCompWindow *actor,
static void switch_workspace (const GList **actors, gint from, gint to,
MetaMotionDirection direction);
static gboolean xevent_filter (XEvent *xev);
static void kill_effect (MetaCompWindow *actor, gulong event);
static gboolean reload (void);
@ -118,6 +120,8 @@ struct PluginPrivate
ClutterActor *desktop1;
ClutterActor *desktop2;
ClutterActor *panel;
gboolean debug_mode : 1;
};
@ -600,6 +604,11 @@ destroy (MetaCompWindow *mcw)
META_COMPOSITOR_CLUTTER_PLUGIN_DESTROY);
}
static gboolean
xevent_filter (XEvent *xev)
{
}
static void
kill_effect (MetaCompWindow *mcw, gulong event)
{
@ -692,6 +701,8 @@ do_init ()
guint map_timeout = MAP_TIMEOUT;
guint switch_timeout = SWITCH_TIMEOUT;
const gchar *name;
ClutterActor *overlay, *background;
ClutterColor clr = {0xff, 0, 0, 0xff};
plugin->plugin_private = priv;
@ -778,6 +789,19 @@ do_init ()
switch_timeout),
CLUTTER_ALPHA_SINE_INC);
overlay = meta_comp_clutter_plugin_get_overlay_group (plugin);
priv->panel = clutter_group_new ();
clutter_container_add_actor (CLUTTER_CONTAINER (overlay), priv->panel);
/* FIME -- size and color */
background = clutter_rectangle_new_with_color (&clr);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->panel), background);
clutter_actor_set_size (background, 300, 40);
clutter_actor_set_position (background, 0,
-clutter_actor_get_height (background));
return TRUE;
}