1
0
Fork 0

[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.
This commit is contained in:
Colin Walters 2009-08-21 12:38:30 -04:00
parent 9cc70a3fb6
commit 01581dc61c

View file

@ -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