Deal with title-less windows
https://bugzilla.gnome.org/show_bug.cgi?id=601290
This commit is contained in:
parent
21f15246a6
commit
8334b063f1
@ -751,11 +751,14 @@ ThumbnailList.prototype = {
|
|||||||
height: height * scale });
|
height: height * scale });
|
||||||
box.add_actor(clone);
|
box.add_actor(clone);
|
||||||
|
|
||||||
let name = new St.Label({ text: windows[i].get_title() });
|
let title = windows[i].get_title();
|
||||||
// St.Label doesn't support text-align so use a Bin
|
if (title) {
|
||||||
let bin = new St.Bin({ x_align: St.Align.MIDDLE });
|
let name = new St.Label({ text: title });
|
||||||
bin.add_actor(name);
|
// St.Label doesn't support text-align so use a Bin
|
||||||
box.add_actor(bin);
|
let bin = new St.Bin({ x_align: St.Align.MIDDLE });
|
||||||
|
bin.add_actor(name);
|
||||||
|
box.add_actor(bin);
|
||||||
|
}
|
||||||
|
|
||||||
this.addItem(box);
|
this.addItem(box);
|
||||||
}
|
}
|
||||||
|
@ -740,6 +740,8 @@ shell_app_info_get_name (ShellAppInfo *info)
|
|||||||
{
|
{
|
||||||
char *title;
|
char *title;
|
||||||
g_object_get (info->window, "title", &title, NULL);
|
g_object_get (info->window, "title", &title, NULL);
|
||||||
|
if (!title)
|
||||||
|
title = g_strdup ("");
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user