GNOME Bugzilla – Bug 601412
action area presence makes gnome-terminal window grow on tab switch
Last modified: 2010-01-18 06:24:40 UTC
Steps to repro: 0) In gnome-terminal/src/terminal-window.c:terminal_window_init(), insert this code directly after the "priv->notebook = gtk_notebook_new ();" line: { GtkWidget *h = gtk_hbox_new (FALSE, 6); gtk_box_pack_start (GTK_BOX (h), gtk_button_new_with_label ("hi there!"), FALSE, FALSE, 0); gtk_widget_show_all (h); gtk_notebook_set_action_widget (GTK_NOTEBOOK (priv->notebook), h, GTK_PACK_START); } 1) Compile, run 2) Create a 2nd tab 3) Switch back and forth between the tabs Results: a) The action area where the button should be is allocated space, but the button is not shown b) On each tab switch, the window grows in the horizontal direction!
Johannes, this seems to be action-area fallout. Can you take a look at this ?
Hmm, yes, kind of strange things happen here.
Created attachment 148892 [details] [review] Show the action widgets correctly Would be nice if someone could look into this mapping thing - I am not so sure...
Created attachment 148893 [details] [review] Don't grow width when adding new tabs with action widgets With the two patches, the given test-case with gnome-terminal works for me correctly. GtkNotebook grows 4 pixels in width though when showing tabs but that's unrelated to action widgets (it happens also with 2.18).