[mutter] [MetaWindow]: Always notify on title property change



commit 01581dc61c8f813680a9a8e3511f310a4f49e846
Author: Colin Walters <walters verbum org>
Date:   Fri Aug 21 12:38:30 2009 -0400

    [MetaWindow]: Always notify on title property change
    
    The previous notification code was attempting to use the "modified"
    boolean returned from set_title_text, but "that boolean doesn't mean
    what you think it means".  It actually means "I truncated the title".
    
    Just always notify, it's far simpler than trying to compute
    when we don't need to, and callers can compress if they really need
    to.

 src/core/window-props.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window-props.c b/src/core/window-props.c
index ff2eb30..7047b46 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -472,8 +472,8 @@ set_window_title (MetaWindow *window,
     meta_ui_set_frame_title (window->screen->ui,
                              window->frame->xwindow,
                              window->title);
-  if (modified)
-    g_object_notify (G_OBJECT (window), "title");  
+
+  g_object_notify (G_OBJECT (window), "title");
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]