After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 345992 - notebook shows incorrect page
notebook shows incorrect page
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.4.x
Other All
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-06-26 22:47 UTC by Rodrigo
Modified: 2006-06-30 08:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
source code and Makefile for the bug (2.16 KB, application/x-compressed-tar)
2006-06-29 20:57 UTC, Rodrigo
Details

Description Rodrigo 2006-06-26 22:47:46 UTC
Please describe the problem:
when i create a notebook, and call append_page(my widget(...)) to append two pages, the notebook's tabs shows first page, but notebook's widget shown is the one of the second page.


Steps to reproduce:
1. call twice: m_Notebook.append_page(*manage(new GuiWidgetWave(ch,gfr)), us);
2. look at the gui
3. 


Actual results:
the notebook shows the second widget, but the tab activated is the first. you can switch to tab #1 and back to tab #0 to see first widget.

Expected results:
the notebook shows the first widget

Does this happen every time?
yes

Other information:
there is a workaround: after appending the widgets call:
m_Notebook.set_current_page(-1);
m_Notebook.set_current_page(0);
Comment 1 Murray Cumming 2006-06-29 14:01:19 UTC
Thanks for the report. Could you create a small test case, please? And xactly what version of gtkmm are yoo using?
Comment 2 Rodrigo 2006-06-29 20:57:22 UTC
Created attachment 68189 [details]
source code and Makefile for the bug

.tar.gz with source code and Makefile showing the bug.
Comment 3 Rodrigo 2006-06-29 20:59:18 UTC
here is the test case... i tried with labels but it worked well. with this subclass of Gtk::DrawingArea shows the bug.

i compiled it with gtkmm version 2.4.10 in debian sarge 3.1r0a with X11R6.

i attach file gtkmm-2.4.10-bug.tar.gz

in order to test it:

tar xzf gtkmm-2.4.10-bug.tar.gz
cd gtkmm-2.4.10-bug
make
./gui_main

and then press "open"
i see a tab labeled "/" with a drawn line like this "\"
press second tab. i see the same.
press first tab "/". i see what should be seen at first, a drawn line like this "/"

sorry if the size of the test case is too big...

thanks

[sorry, this might be send with the attachment...] 
Comment 4 Murray Cumming 2006-06-30 07:59:52 UTC
Thanks. This seems to work fine for me on Ubuntu Dapper (with gtkmm 2.8.8). I always see / on the tab and / on the page, or \ on the tab and \ on the page.

Maybe this is a GTK+ bug that was fixed in a later version. GTK+ 2.4 is quite old. If you can not upgrade, you could try to ask the people on gtk-list@gnome.org to backport a fix. Otherwise, you can use your workaround, with a comment in your code saying that it is fixed in a later version.
Comment 5 Murray Cumming 2006-06-30 08:00:22 UTC
And please reopen this bug if I have misunderstood.