ShellStack: make this an StWidget

Base ShellStack on StContainer rather than ClutterGroup, so that it
has StWidget-y features (and so we don't have to "cheat" in
shell_stack_allocate()). Implement navigate_focus() to only ever pass
focus into the top-most child, since doing otherwise would be
surprising.

https://bugzilla.gnome.org/show_bug.cgi?id=646934
This commit is contained in:
Dan Winship
2011-04-06 12:53:19 -04:00
parent caade78e79
commit 9ae8d90be4
2 changed files with 80 additions and 21 deletions

View File

@ -2,7 +2,7 @@
#ifndef __SHELL_STACK_H__
#define __SHELL_STACK_H__
#include <clutter/clutter.h>
#include "st.h"
#include <gtk/gtk.h>
#define SHELL_TYPE_STACK (shell_stack_get_type ())
@ -19,14 +19,14 @@ typedef struct _ShellStackPrivate ShellStackPrivate;
struct _ShellStack
{
ClutterGroup parent;
StContainer parent;
ShellStackPrivate *priv;
};
struct _ShellStackClass
{
ClutterGroupClass parent_class;
StContainerClass parent_class;
};
GType shell_stack_get_type (void) G_GNUC_CONST;