fixed gcc warnings
[livewp] / applet / src / livewp-settings.c
index cfcc940..5a515e9 100644 (file)
@@ -111,7 +111,7 @@ create_enable_button (gboolean active)
     GtkWidget *button;
     button = hildon_check_button_new (HILDON_SIZE_AUTO);
     gtk_button_set_label (GTK_BUTTON (button), _("Enable"));
-    hildon_check_button_set_active(button, active);
+    hildon_check_button_set_active(HILDON_CHECK_BUTTON(button), active);
     return button;
 }
 
@@ -169,14 +169,14 @@ lw_settings(Animation_WallpaperPrivate *priv, gpointer data){
                     priv->theme = g_strdup("Matrix");
             }
             /* Check rich animation */
-            if (hildon_check_button_get_active (rich_animation_button))
+            if (hildon_check_button_get_active (HILDON_CHECK_BUTTON(rich_animation_button)))
                 priv->rich_animation = TRUE;
             else
                 priv->rich_animation = FALSE;
             /* Save config */
             save_config(priv);
             /* action with applet */
-            if (hildon_check_button_get_active (enable_button)){
+            if (hildon_check_button_get_active (HILDON_CHECK_BUTTON(enable_button))){
                     if (!check_applet_state())
                         start_applet();
                     else