summaryrefslogtreecommitdiff
path: root/gtk/gtkvolumebutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-19 20:34:13 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-19 20:34:13 +0000
commit2dec0b8d7f12dae277962c33aef11a62284576b6 (patch)
treeafdd780dc4f362ecd3f470eb64b3f9b850af6f52 /gtk/gtkvolumebutton.c
parent8c1bce72d53cec1879e0797e6ab306ce48f83c7c (diff)
downloadgtk+-2dec0b8d7f12dae277962c33aef11a62284576b6.tar.gz
volume button: Don't allow subclassing
If you want to subclass, there's GtkScaleButton.
Diffstat (limited to 'gtk/gtkvolumebutton.c')
-rw-r--r--gtk/gtkvolumebutton.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkvolumebutton.c b/gtk/gtkvolumebutton.c
index 71b5fc1208..5d805b282b 100644
--- a/gtk/gtkvolumebutton.c
+++ b/gtk/gtkvolumebutton.c
@@ -45,6 +45,13 @@
* icons, tooltips and accessible labels.
*/
+typedef struct _GtkVolumeButtonClass GtkVolumeButtonClass;
+
+struct _GtkVolumeButtonClass
+{
+ GtkScaleButtonClass parent_class;
+};
+
#define EPSILON (1e-10)
static const gchar * const icons[] =