summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/gvc-combo-box.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-volume-control/src/gvc-combo-box.c')
-rw-r--r--mate-volume-control/src/gvc-combo-box.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-volume-control/src/gvc-combo-box.c b/mate-volume-control/src/gvc-combo-box.c
index 2665486..6576efa 100644
--- a/mate-volume-control/src/gvc-combo-box.c
+++ b/mate-volume-control/src/gvc-combo-box.c
@@ -74,7 +74,11 @@ static void gvc_combo_box_class_init (GvcComboBoxClass *klass);
static void gvc_combo_box_init (GvcComboBox *combo_box);
static void gvc_combo_box_finalize (GObject *object);
+#if GTK_CHECK_VERSION (3, 0, 0)
+G_DEFINE_TYPE (GvcComboBox, gvc_combo_box, GTK_TYPE_BOX)
+#else
G_DEFINE_TYPE (GvcComboBox, gvc_combo_box, GTK_TYPE_HBOX)
+#endif
void
gvc_combo_box_set_size_group (GvcComboBox *combo_box,