fixed gcc warnings
authorVlad Vasiliev <vlad@toshiba2.oblgaz>
Sat, 1 May 2010 06:57:43 +0000 (09:57 +0300)
committerVlad Vasiliev <vlad@toshiba2.oblgaz>
Sat, 1 May 2010 06:57:43 +0000 (09:57 +0300)
applet/src/livewp-control-widget.h
applet/src/livewp-settings.c

index 7b75f67..288fe6c 100644 (file)
@@ -23,4 +23,6 @@
 /*******************************************************************************/
 #include <hildon-cp-plugin/hildon-cp-plugin-interface.h>
 #include <gtk/gtk.h>
-
+void lw_settings(Animation_WallpaperPrivate *priv, gpointer data);
+gint read_config(Animation_WallpaperPrivate *priv);
+void livewp_initialize_dbus(Animation_WallpaperPrivate *priv);
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