mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
toolbar: make final
This commit is contained in:
parent
8695e8c1b8
commit
6836bfc208
@ -106,6 +106,29 @@ typedef struct _ToolbarContent ToolbarContent;
|
|||||||
#define SLIDE_SPEED 600.0 /* How fast the items slide, in pixels per second */
|
#define SLIDE_SPEED 600.0 /* How fast the items slide, in pixels per second */
|
||||||
#define ACCEL_THRESHOLD 0.18 /* After how much time in seconds will items start speeding up */
|
#define ACCEL_THRESHOLD 0.18 /* After how much time in seconds will items start speeding up */
|
||||||
|
|
||||||
|
typedef struct _GtkToolbarPrivate GtkToolbarPrivate;
|
||||||
|
typedef struct _GtkToolbarClass GtkToolbarClass;
|
||||||
|
|
||||||
|
struct _GtkToolbar
|
||||||
|
{
|
||||||
|
GtkContainer container;
|
||||||
|
|
||||||
|
GtkToolbarPrivate *priv;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct _GtkToolbarClass
|
||||||
|
{
|
||||||
|
GtkContainerClass parent_class;
|
||||||
|
|
||||||
|
void (* orientation_changed) (GtkToolbar *toolbar,
|
||||||
|
GtkOrientation orientation);
|
||||||
|
void (* style_changed) (GtkToolbar *toolbar,
|
||||||
|
GtkToolbarStyle style);
|
||||||
|
gboolean (* popup_context_menu) (GtkToolbar *toolbar,
|
||||||
|
gint x,
|
||||||
|
gint y,
|
||||||
|
gint button_number);
|
||||||
|
};
|
||||||
|
|
||||||
struct _GtkToolbarPrivate
|
struct _GtkToolbarPrivate
|
||||||
{
|
{
|
||||||
|
@ -43,42 +43,9 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
#define GTK_TYPE_TOOLBAR (gtk_toolbar_get_type ())
|
#define GTK_TYPE_TOOLBAR (gtk_toolbar_get_type ())
|
||||||
#define GTK_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLBAR, GtkToolbar))
|
#define GTK_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLBAR, GtkToolbar))
|
||||||
#define GTK_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLBAR, GtkToolbarClass))
|
|
||||||
#define GTK_IS_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLBAR))
|
#define GTK_IS_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLBAR))
|
||||||
#define GTK_IS_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLBAR))
|
|
||||||
#define GTK_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOLBAR, GtkToolbarClass))
|
|
||||||
|
|
||||||
typedef struct _GtkToolbar GtkToolbar;
|
typedef struct _GtkToolbar GtkToolbar;
|
||||||
typedef struct _GtkToolbarPrivate GtkToolbarPrivate;
|
|
||||||
typedef struct _GtkToolbarClass GtkToolbarClass;
|
|
||||||
|
|
||||||
struct _GtkToolbar
|
|
||||||
{
|
|
||||||
GtkContainer container;
|
|
||||||
|
|
||||||
GtkToolbarPrivate *priv;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _GtkToolbarClass
|
|
||||||
{
|
|
||||||
GtkContainerClass parent_class;
|
|
||||||
|
|
||||||
/* signals */
|
|
||||||
void (* orientation_changed) (GtkToolbar *toolbar,
|
|
||||||
GtkOrientation orientation);
|
|
||||||
void (* style_changed) (GtkToolbar *toolbar,
|
|
||||||
GtkToolbarStyle style);
|
|
||||||
gboolean (* popup_context_menu) (GtkToolbar *toolbar,
|
|
||||||
gint x,
|
|
||||||
gint y,
|
|
||||||
gint button_number);
|
|
||||||
|
|
||||||
/* Padding for future expansion */
|
|
||||||
void (*_gtk_reserved1) (void);
|
|
||||||
void (*_gtk_reserved2) (void);
|
|
||||||
void (*_gtk_reserved3) (void);
|
|
||||||
void (*_gtk_reserved4) (void);
|
|
||||||
};
|
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
GType gtk_toolbar_get_type (void) G_GNUC_CONST;
|
GType gtk_toolbar_get_type (void) G_GNUC_CONST;
|
||||||
|
Loading…
Reference in New Issue
Block a user