2009-03-12 Alberto Garcia <agarcia@igalia.com>
[hildon] / src / hildon-helper.c
index 49b7dc3..cd3026d 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
  *
- * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
@@ -31,6 +31,8 @@
  * on widget styles and probing functions for touch events.
  */
 
+#undef                                          HILDON_DISABLE_DEPRECATED
+
 #ifdef                                          HAVE_CONFIG_H
 #include                                        <config.h>
 #endif
@@ -156,6 +158,7 @@ attach_new_color_element                        (GtkWidget *widget,
             element->state == state &&
             element->is_color == TRUE) {
             /* Reusing ... */
+            g_free (element->logical_color_name);
             element->logical_color_name = g_strdup (color_name);
             return style_list;
         }
@@ -373,6 +376,8 @@ show_insensitive_message                        (GtkWidget *widget,
  * This function assigns an insensitive message to a @widget. When the @widget is
  * in an insensitive state and the user activates it, the @message will be displayed
  * using a standard #HildonBanner.
+ *
+ * Deprecated: As of hildon 2.2, it is strongly discouraged to use insensitive messages.
  **/
 void
 hildon_helper_set_insensitive_message           (GtkWidget *widget,
@@ -404,6 +409,8 @@ hildon_helper_set_insensitive_message           (GtkWidget *widget,
  * @Varargs: arguments for the format string
  *
  * A version of hildon_helper_set_insensitive_message with string formatting.
+ *
+ * Deprecated: As of hildon 2.2, it is strongly discouraged to use insensitive messages.
  **/
 void
 hildon_helper_set_insensitive_messagef          (GtkWidget *widget,