GtkNotebook action widgets

Remember the good old days when bug nummers started with 1xxxxx? Well, now we have one bug less in this area, GtkNotebook finally supports widgets in the tabs area:

GtkNotebook with action widgets

GtkNotebook with action widgets

(Note that the buttons here are just examples and this was done mainly for testing purposes).

Why could this be useful:

  • Firefox-style “Add tab”-buttons
  • Saving space when dealing with notebooks that have a constant (and low) page number
  • probably much more

There is nothing in the HIG yet of course and you should use it with care. I hope it’s useful though.

Credits go to Carlos Garnacho for the original patch and to Mathias Clasen for reviewing my patch and adding GtkBuilder support. Also thanks to Openismus for letting me finish this!

Commentary

Leave a response »

  1. 1. November 10th, 2009

    very nice! and useful, too.

    shuerhaaken

Trackbacks

  1. [...] a single close tab button to the right of all tabs. Johannes Schmid wrote about it in his weblog: GtkNotebook action widgets . (GNOME bug [...]

    GNOME Commit-Digest » Blog Archive » Issue 58

Leave a comment, a trackback from your own site or subscribe to an RSS feed for this entry. Trackback URL for this entry Comments feed for this entry

Leave a response

Leave a URL

Preview