There has been a couple of posts recently on Planet GNOME mention the increase usage of tabs in applications. I decided to write up a quick patch for GTK+ which makes it even easier to add tab support. With the patch I applied you can just call a single method:
gtk_widget_set_use_tabs (widget, TRUE);
To get complete tab support in your application.
Emmanuele just reviewed it and it will soon be committed to SVN trunk of GTK+. I’m looking forward to applications migrating to this new simplified API!
Better would be to commit a patch that removes all tab support.
Yay, tabbed buttons!
I think there’s something wrong in hunk @@ -2512,6 +2530,9 @@ of gtk/gtkwidget.c: shouldn’t the call be gtk_widget_set_use_tabs (widget, g_value_get_boolean (value));
ie widget instead of value as first parameter?
😉
Pingback: GNOME 3.0 = Tabs! — Cosimo’s blog.
Pingback: J5’s Blog » D-Bus now supports tabs
Pingback: Nação Livre » Blog Archive » Tabs everywhere ? Please, no!
You are not adding widget back to parent if tabbed is true, I think you want something to put widget back in parent .
I might be wrong, maybe it’s wanted behaviour ? 🙂
s/to put widget back/to put the notebook/
This is hilarious, Johan van Swederson.
Awesome fad. Bet KDE won’t have this!
It’s good to have GTK+ Tab support. But then please, app developers, please do not abuse the use of Tabs.
Clearly we need to be adding tab support to Metacity (a la Fluxbox) so even poor, tab deficient applications can behave in a tabbed manner ;).
i’m with comment #12 ‘Mike’ on this one and i up the bidding by asking a tiling wm as a side dish to the tabbed wm
now _that_ would be a trully spatial desktop
Jonas: Don’t worry, all this tab hysteria is actually just a joke.
This patch won’t work.
1. You forgot to add the notebook to parent widget.
2. What happens when you need the second notebook page?
I think this is just a joke since this is not a working patch.