frames: Revert the logic here when the frame type updates

When the frame type updates, we were doing something funky that
caused us to reset the title used for the text layout here. I can't
really think of any place that it would trigger, and in testing I
haven't hit this either, so let's just remove the fancy logic and
assert this.
This commit is contained in:
Jasper St. Pierre 2014-12-31 21:42:00 -08:00
parent 9e199e6350
commit 4d1d8e831e

View File

@ -391,11 +391,7 @@ meta_frames_ensure_layout (MetaFrames *frames,
{
if (frame->text_layout)
{
/* save title to recreate layout */
g_free (frame->title);
frame->title = g_strdup (pango_layout_get_text (frame->text_layout));
g_assert (g_str_equal (frame->title, pango_layout_get_text (frame->text_layout)));
g_clear_object (&frame->text_layout);
}
}