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 659091 - gtknotebook shows wrong page when not all pages are filled
gtknotebook shows wrong page when not all pages are filled
Status: RESOLVED OBSOLETE
Product: glade
Classification: Applications
Component: general
3.10.x
Other Linux
: Normal minor
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-09-14 20:30 UTC by John
Modified: 2018-03-26 15:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John 2011-09-14 20:30:23 UTC
I was creating a simple project with not much more than a menu and a notebook,
and filled in only one page of the (default) 3 pages the notebook has.

When running the program, the third page is show (which was still empty), instead of the first page  (that page was selected when the project was saved).

This is of course an abnormal situation...

John
Comment 1 John 2011-09-14 20:33:27 UTC
Just to be clear, _only_ the third page is shown (no other tabs are visible).
Which is empty, of course.

John
Comment 2 Tristan Van Berkom 2013-05-19 13:45:58 UTC
This is tricky to fix.

Note that, you _must_ put widgets into the GtkNotebook pages for the
notebook to make any sense to GTK+ when GtkBuilder parses the notebook,
the empty pages are just discarded.

Perhaps the best thing to do from Glade would be to issue a warning
at save time, telling the user that the notebook doesnt make sense
(if it contains empty pages).

A warning like:
   "The file you are saving contains a notebook with
    empty pages, this will not produce any sensible results
    when loaded with GtkBuilder"

Of course, we need to support the empty pages from Glade itself, since
there is always a time, while editing a notebook from Glade, that an
empty page will exist.
Comment 3 John 2013-05-19 21:16:57 UTC
>A warning like:
>   "The file you are saving contains a notebook with
>    empty pages, this will not produce any sensible results
>    when loaded with GtkBuilder"

Yes, that does seem like a good idea. I'm not sure everyone
is knowledgeable that empty pages could cause problems (I
wasn't).

Thanks,
John
Comment 4 GNOME Infrastructure Team 2018-03-26 15:20:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/92.