From 74654d281620c5d26d3724fd4e8ca374494a47b0 Mon Sep 17 00:00:00 2001 From: Michael Dominic Kostrzewa Date: Thu, 1 Feb 2007 12:15:20 +0000 Subject: [PATCH] Fixed the check for which property changed in _notify. Removed unused static function. Fixes: MB#962 --- ChangeLog.2 | 6 ++++++ src/hildon-window.c | 16 ++-------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/ChangeLog.2 b/ChangeLog.2 index 509fb2e..1a59658 100644 --- a/ChangeLog.2 +++ b/ChangeLog.2 @@ -1,3 +1,9 @@ +2007-02-01 Johan Bilien + + * 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 * doc/gtk-doc.make: diff --git a/src/hildon-window.c b/src/hildon-window.c index 31a0274..3146bfc 100644 --- a/src/hildon-window.c +++ b/src/hildon-window.c @@ -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 -- 1.7.9.5