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:
@ -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;
|
||||
|
Reference in New Issue
Block a user