Public bug reported:

[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://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-titlebar
[2] 
https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-12&id=8db2ba425aaff107faaa4c7468be63f8ef2fa8e9
[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;
}

** Affects: gtk+3.0 (Ubuntu)
     Importance: Wishlist
         Status: Triaged

** Affects: gtk+3.0 (Ubuntu Trusty)
     Importance: Wishlist
         Status: Triaged

** Changed in: gtk+3.0 (Ubuntu)
       Status: New => Triaged

** Changed in: gtk+3.0 (Ubuntu)
   Importance: Undecided => Wishlist

** Also affects: gtk+3.0 (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: gtk+3.0 (Ubuntu Trusty)
       Status: New => Triaged

** Changed in: gtk+3.0 (Ubuntu Trusty)
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gtk+3.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1325767

Title:
  Can't unset titlebar

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1325767/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to