diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-19 21:05:40 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-19 21:05:40 +0000 |
commit | c8a901c1dcf32b0119651332b127909ed209e248 (patch) | |
tree | 273cbb28406d33e7db445cf44b8780e15514a535 /gtk/gtklinkbutton.c | |
parent | 825b48911b091528118d8cd207932b73c69f751e (diff) | |
download | gtk+-c8a901c1dcf32b0119651332b127909ed209e248.tar.gz |
link button: Don't allow subclassing
Diffstat (limited to 'gtk/gtklinkbutton.c')
-rw-r--r-- | gtk/gtklinkbutton.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index 50f4dfb6da..f9802d077a 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -73,6 +73,24 @@ #include <string.h> +typedef struct _GtkLinkButtonClass GtkLinkButtonClass; +typedef struct _GtkLinkButtonPrivate GtkLinkButtonPrivate; + +struct _GtkLinkButton +{ + /*< private >*/ + GtkButton parent_instance; +}; + +struct _GtkLinkButtonClass +{ + /*< private >*/ + GtkButtonClass parent_class; + + /*< public >*/ + gboolean (* activate_link) (GtkLinkButton *button); +}; + struct _GtkLinkButtonPrivate { gchar *uri; |