mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
menu: Make final
This commit is contained in:
parent
6ffc9f9e6e
commit
8695e8c1b8
@ -36,15 +36,10 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_MENU (gtk_menu_get_type ())
|
||||
#define GTK_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU, GtkMenu))
|
||||
#define GTK_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU, GtkMenuClass))
|
||||
#define GTK_IS_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU))
|
||||
#define GTK_IS_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU))
|
||||
#define GTK_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU, GtkMenuClass))
|
||||
|
||||
|
||||
typedef struct _GtkMenu GtkMenu;
|
||||
typedef struct _GtkMenuClass GtkMenuClass;
|
||||
typedef struct _GtkMenuPrivate GtkMenuPrivate;
|
||||
typedef struct _GtkMenu GtkMenu;
|
||||
|
||||
/**
|
||||
* GtkArrowPlacement:
|
||||
@ -72,26 +67,6 @@ typedef enum
|
||||
typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget,
|
||||
GtkMenu *menu);
|
||||
|
||||
struct _GtkMenu
|
||||
{
|
||||
GtkMenuShell menu_shell;
|
||||
|
||||
/*< private >*/
|
||||
GtkMenuPrivate *priv;
|
||||
};
|
||||
|
||||
struct _GtkMenuClass
|
||||
{
|
||||
GtkMenuShellClass parent_class;
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (void);
|
||||
void (*_gtk_reserved4) (void);
|
||||
};
|
||||
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_menu_get_type (void) G_GNUC_CONST;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
@ -31,6 +31,21 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GtkMenuClass GtkMenuClass;
|
||||
typedef struct _GtkMenuPrivate GtkMenuPrivate;
|
||||
|
||||
struct _GtkMenu
|
||||
{
|
||||
GtkMenuShell menu_shell;
|
||||
|
||||
GtkMenuPrivate *priv;
|
||||
};
|
||||
|
||||
struct _GtkMenuClass
|
||||
{
|
||||
GtkMenuShellClass parent_class;
|
||||
};
|
||||
|
||||
struct _GtkMenuPrivate
|
||||
{
|
||||
GtkWidget *parent_menu_item;
|
||||
|
@ -26,7 +26,7 @@
|
||||
#error "Only <gtk/gtk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <gtk/gtkmenu.h>
|
||||
#include <gtk/gtkmenuprivate.h>
|
||||
#include <gtk/gtktreemodel.h>
|
||||
#include <gtk/gtktreeview.h>
|
||||
#include <gtk/gtkcellarea.h>
|
||||
|
Loading…
Reference in New Issue
Block a user