forked from AuroraMiddleware/gtk
shortcuts window: Make not subclassable
Part of being more explicit about what we allow to be subclassed and what not.
This commit is contained in:
parent
c31eadc3a1
commit
be40ecbfe6
@ -29,10 +29,7 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_SHORTCUTS_GROUP (gtk_shortcuts_group_get_type ())
|
||||
#define GTK_SHORTCUTS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SHORTCUTS_GROUP, GtkShortcutsGroup))
|
||||
#define GTK_SHORTCUTS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SHORTCUTS_GROUP, GtkShortcutsGroupClass))
|
||||
#define GTK_IS_SHORTCUTS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SHORTCUTS_GROUP))
|
||||
#define GTK_IS_SHORTCUTS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SHORTCUTS_GROUP))
|
||||
#define GTK_SHORTCUTS_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SHORTCUTS_GROUP, GtkShortcutsGroupClass))
|
||||
|
||||
|
||||
typedef struct _GtkShortcutsGroup GtkShortcutsGroup;
|
||||
|
@ -29,10 +29,7 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_SHORTCUTS_SECTION (gtk_shortcuts_section_get_type ())
|
||||
#define GTK_SHORTCUTS_SECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SHORTCUTS_SECTION, GtkShortcutsSection))
|
||||
#define GTK_SHORTCUTS_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SHORTCUTS_SECTION, GtkShortcutsSectionClass))
|
||||
#define GTK_IS_SHORTCUTS_SECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SHORTCUTS_SECTION))
|
||||
#define GTK_IS_SHORTCUTS_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SHORTCUTS_SECTION))
|
||||
#define GTK_SHORTCUTS_SECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SHORTCUTS_SECTION, GtkShortcutsSectionClass))
|
||||
|
||||
|
||||
typedef struct _GtkShortcutsSection GtkShortcutsSection;
|
||||
|
@ -29,10 +29,7 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_SHORTCUTS_SHORTCUT (gtk_shortcuts_shortcut_get_type())
|
||||
#define GTK_SHORTCUTS_SHORTCUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SHORTCUTS_SHORTCUT, GtkShortcutsShortcut))
|
||||
#define GTK_SHORTCUTS_SHORTCUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SHORTCUTS_SHORTCUT, GtkShortcutsShortcutClass))
|
||||
#define GTK_IS_SHORTCUTS_SHORTCUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SHORTCUTS_SHORTCUT))
|
||||
#define GTK_IS_SHORTCUTS_SHORTCUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SHORTCUTS_SHORTCUT))
|
||||
#define GTK_SHORTCUTS_SHORTCUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SHORTCUTS_SHORTCUT, GtkShortcutsShortcutClass))
|
||||
|
||||
|
||||
typedef struct _GtkShortcutsShortcut GtkShortcutsShortcut;
|
||||
|
@ -91,6 +91,14 @@
|
||||
* The .ui file for this example can be found [here](https://gitlab.gnome.org/GNOME/gtk/tree/master/demos/gtk-demo/shortcuts-builder.ui).
|
||||
*/
|
||||
|
||||
struct _GtkShortcutsWindowClass
|
||||
{
|
||||
GtkWindowClass parent_class;
|
||||
|
||||
void (*close) (GtkShortcutsWindow *self);
|
||||
void (*search) (GtkShortcutsWindow *self);
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GHashTable *keywords;
|
||||
|
@ -29,10 +29,7 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_SHORTCUTS_WINDOW (gtk_shortcuts_window_get_type ())
|
||||
#define GTK_SHORTCUTS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SHORTCUTS_WINDOW, GtkShortcutsWindow))
|
||||
#define GTK_SHORTCUTS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SHORTCUTS_WINDOW, GtkShortcutsWindowClass))
|
||||
#define GTK_IS_SHORTCUTS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SHORTCUTS_WINDOW))
|
||||
#define GTK_IS_SHORTCUTS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SHORTCUTS_WINDOW))
|
||||
#define GTK_SHORTCUTS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SHORTCUTS_WINDOW, GtkShortcutsWindowClass))
|
||||
|
||||
|
||||
typedef struct _GtkShortcutsWindow GtkShortcutsWindow;
|
||||
@ -44,14 +41,6 @@ struct _GtkShortcutsWindow
|
||||
GtkWindow window;
|
||||
};
|
||||
|
||||
struct _GtkShortcutsWindowClass
|
||||
{
|
||||
GtkWindowClass parent_class;
|
||||
|
||||
void (*close) (GtkShortcutsWindow *self);
|
||||
void (*search) (GtkShortcutsWindow *self);
|
||||
};
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_shortcuts_window_get_type (void) G_GNUC_CONST;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user