Can't unset titlebar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtk+3.0 (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned | ||
Trusty |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
[Impact]
In GTK+ unsetting a titlebar [1] does not work. This was fixed in upstream GTK+ [2]. Since Ubuntu does not work well with GtkHeaderBar it is desirable for applications to be able to conditionally unset their titlebar to work well in Ubuntu.
[Test Case]
1. Write an application that uses a Gtk.HeaderBar and unsets it [3]
2. Run application
Expected result:
Window is shown with window decorations
Observed result:
Window is shown without window decorations
[Regression Potential]
Potential for breaking existing cases where the titlebar is reset. This seems low probability given the simplicity of the patch.
[1] https:/
[2] https:/
[3]
int main (string[] args)
{
Gtk.init (ref args);
var w = new Gtk.Window ();
var hb = new Gtk.HeaderBar ();
hb.visible = true;
w.set_titlebar (hb);
w.set_titlebar (null); /* Doesn't restore decorations on GTK 3.10 */
var l = new Gtk.Label ("Hello world!");
l.visible = true;
w.add (l);
w.visible = true;
Gtk.main ();
return 0;
}
Changed in gtk+3.0 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in gtk+3.0 (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
This bug was fixed in the package gtk+3.0 - 3.10.9-0ubuntu1
---------------
gtk+3.0 (3.10.9-0ubuntu1) utopic; urgency=medium
* New upstream version
- "Change the logic so that we only insert separators when we see a
non-zero number of actual items in the menu before us."
(lp: #1306850)
-- Sebastien Bacher <email address hidden> Tue, 03 Jun 2014 15:09:52 +0200