mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
gtkspinner: Remove GET_PRIVATE macro
This commit is contained in:
parent
c17dad9d32
commit
e6db32de44
@ -53,8 +53,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#define GTK_SPINNER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_SPINNER, GtkSpinnerPrivate))
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GtkSpinner, gtk_spinner, GTK_TYPE_DRAWING_AREA);
|
G_DEFINE_TYPE (GtkSpinner, gtk_spinner, GTK_TYPE_DRAWING_AREA);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
@ -204,7 +202,9 @@ gtk_spinner_init (GtkSpinner *spinner)
|
|||||||
{
|
{
|
||||||
GtkSpinnerPrivate *priv;
|
GtkSpinnerPrivate *priv;
|
||||||
|
|
||||||
priv = GTK_SPINNER_GET_PRIVATE (spinner);
|
priv = G_TYPE_INSTANCE_GET_PRIVATE (spinner,
|
||||||
|
GTK_TYPE_SPINNER,
|
||||||
|
GtkSpinnerPrivate);
|
||||||
priv->current = 0;
|
priv->current = 0;
|
||||||
priv->timeout = 0;
|
priv->timeout = 0;
|
||||||
|
|
||||||
|
@ -47,6 +47,8 @@ typedef struct _GtkSpinnerPrivate GtkSpinnerPrivate;
|
|||||||
struct _GtkSpinner
|
struct _GtkSpinner
|
||||||
{
|
{
|
||||||
GtkDrawingArea parent;
|
GtkDrawingArea parent;
|
||||||
|
|
||||||
|
/* <private> */
|
||||||
GtkSpinnerPrivate *priv;
|
GtkSpinnerPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user