Fixed the check for which property changed in _notify. Removed unused static function...
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 1 Feb 2007 12:15:20 +0000 (12:15 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 1 Feb 2007 12:15:20 +0000 (12:15 +0000)
ChangeLog.2
src/hildon-window.c

index 509fb2e..1a59658 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-01  Johan Bilien  <johan.bilien@nokia.com>
+
+       * src/hildon-window.c:
+       Fixed the check for which property changed in _notify
+       Removed unused static function. Fixes: MB#962
+
 2007-02-01  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
        * doc/gtk-doc.make:
index 31a0274..3146bfc 100644 (file)
@@ -818,12 +818,12 @@ hildon_window_notify                            (GObject *gobject,
 {
     HildonWindow *window = HILDON_WINDOW (gobject);
 
-    if (strcmp (param->name, "title") == 0)
+    if (g_str_equal (param->name, "title"))
     {
 
         hildon_window_update_title (window);
     }
-    else if (strcmp (param->name, "is-topmost"))
+    else if (g_str_equal (param->name, "is-topmost"))
     {
         hildon_window_is_topmost_notify (window);
     }
@@ -1199,18 +1199,6 @@ hildon_window_window_state_event                (GtkWidget *widget,
 }
 
 /*
-   static void 
-   hildon_window_title_notify (GObject *gobject,
-   GParamSpec *arg1,
-   gpointer user_data)
-   {
-   HildonWindow *window = HILDON_WINDOW (gobject);
-
-   hildon_window_update_title (window);
-
-   }*/
-
-/*
  * The menu popuping needs a menu popup-function
  */
 static void