46c210c314
The actual changes to shell-menu.[ch] are pretty minimal; most of the changes there are just style/spacing/indentation. Also, removed shell_menu_append_separator() since it wasn't needed; the separators would already have been behaving as intended just because they were non-reactive. https://bugzilla.gnome.org/show_bug.cgi?id=614516
43 lines
1.5 KiB
C
43 lines
1.5 KiB
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
#ifndef __SHELL_MENU_H__
|
|
#define __SHELL_MENU_H__
|
|
|
|
#include <clutter/clutter.h>
|
|
#include "st.h"
|
|
|
|
#define SHELL_TYPE_MENU (shell_menu_get_type ())
|
|
#define SHELL_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHELL_TYPE_MENU, ShellMenu))
|
|
#define SHELL_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_MENU, ShellMenuClass))
|
|
#define SHELL_IS_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHELL_TYPE_MENU))
|
|
#define SHELL_IS_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_MENU))
|
|
#define SHELL_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_MENU, ShellMenuClass))
|
|
|
|
typedef struct _ShellMenu ShellMenu;
|
|
typedef struct _ShellMenuClass ShellMenuClass;
|
|
|
|
typedef struct _ShellMenuPrivate ShellMenuPrivate;
|
|
|
|
struct _ShellMenu
|
|
{
|
|
StBoxLayout parent;
|
|
|
|
ShellMenuPrivate *priv;
|
|
};
|
|
|
|
struct _ShellMenuClass
|
|
{
|
|
StBoxLayoutClass parent_class;
|
|
};
|
|
|
|
GType shell_menu_get_type (void) G_GNUC_CONST;
|
|
|
|
void shell_menu_popup (ShellMenu *menu,
|
|
guint button,
|
|
guint32 activate_time);
|
|
void shell_menu_popdown (ShellMenu *menu);
|
|
|
|
void shell_menu_set_persistent_source (ShellMenu *menu,
|
|
ClutterActor *source);
|
|
|
|
#endif /* __SHELL_MENU_H__ */
|