Make HildonCheckButton derive from GtkToggleButton
[hildon] / hildon / hildon-check-button.h
index 6430f13..3597303 100644 (file)
@@ -50,15 +50,12 @@ typedef struct                                  _HildonCheckButtonPrivate Hildon
 
 struct                                          _HildonCheckButtonClass
 {
-    GtkButtonClass parent_class;
-
-    /* Signal handlers */
-    void (* toggled)                            (HildonCheckButton *button);
+    GtkToggleButtonClass parent_class;
 };
 
 struct                                          _HildonCheckButton
 {
-    GtkButton parent;
+    GtkToggleButton parent;
 
     /* private */
     HildonCheckButtonPrivate *priv;
@@ -70,6 +67,7 @@ hildon_check_button_get_type                    (void) G_GNUC_CONST;
 GtkWidget *
 hildon_check_button_new                         (HildonSizeType size);
 
+#ifndef HILDON_DISABLE_DEPRECATED
 void
 hildon_check_button_set_active                  (HildonCheckButton *button,
                                                  gboolean           is_active);
@@ -79,6 +77,7 @@ hildon_check_button_get_active                  (HildonCheckButton *button);
 
 void
 hildon_check_button_toggled                     (HildonCheckButton *button);
+#endif
 
 G_END_DECLS