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 366683 - cant decrease GtkNotebook "pages" property without manually deleting widgets
cant decrease GtkNotebook "pages" property without manually deleting widgets
Status: RESOLVED WONTFIX
Product: glade
Classification: Applications
Component: general
3.1.x
Other All
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
: 530114 533092 554136 (view as bug list)
Depends on: 382348
Blocks:
 
 
Reported: 2006-10-29 06:48 UTC by Priyank
Modified: 2008-09-29 19:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a test glade file that shows the bug (20.02 KB, application/xml)
2007-01-12 01:32 UTC, rob m
Details

Description Priyank 2006-10-29 06:48:41 UTC
Please describe the problem:
I've noticed a problem with Glade3-3.1.0
I tried to open an existing project (glade3 project) in glade 3.1 and i noticed that my notebook which had 2 pages earlier, now had 4 pages and all the labels were gone. Also, i can't change the number of pages to 2. It forces me to have atleast 4 pages for a GtkNotebook. 

Steps to reproduce:
1. Open glade
2. Create a GtkNotebook
3. Try to reduce the number of pages to less than 4.


Actual results:
Glade doesn't allow to change the number of pages to less than 4.

Expected results:
Glade should allow to change the number of pages to less than 4.

Does this happen every time?
Yes, it happens everytime.

Other information:
Comment 1 Tristan Van Berkom 2006-10-29 15:04:54 UTC
Yes well - this is one of the very technical shortcommings
of glade 3, since it has Undo/Redo things are a little complex...

we have a way to group commands together - but we dont have
a way yet to let the plugin code (the notebook related code)
issue the commands nescisary to undoably delete project widgets.

Currently you must remove any content widgets AND tab-label
widgets in order to decrease the number of pages in the notebook
(the afore mentioned reason - if not - we wouldnt have any way
to bring those widgets back upon Redo).

Renaming the bug to address the actual issue at hand
Comment 2 rob m 2007-01-12 01:32:18 UTC
Created attachment 80095 [details]
a test glade file that shows the bug
Comment 3 rob m 2007-01-12 01:34:38 UTC
Comment on attachment 80095 [details]
a test glade file that shows the bug

i can confirm and replicate this. I created the attached glade file and if i open it in 3.1.2 my tab-labels are missing (as well as other features) if i open it in 3.0.2 it opens fine
Comment 4 rob m 2007-01-12 01:58:15 UTC
i tried 3.1.4 and it all appears to work now, thanks
Comment 5 Tristan Van Berkom 2007-01-12 02:48:33 UTC
Mhm - well we did have a severe notebook bug in earlier 3.1 versions,
but if you look at the summery of /this/ bug - the bug is still
there.

There are some architectural changes that need to be done before
fixing this, note to developer: originally we wanted glade commands
to support recursion; so that the notebook could detect the property
change command and prepend a "remove child widget" command or two
(for the content & tab label) - this turned out to be far too complex.

Instead I propose we support an "issue-command" backend functionality
so that the catalog can optionally issue the change property command
(and issue the other related commands if nescisary).

needless to say - the problem here is that if we allow the notebook
to shrink, undoing that command wont bring back orphaned project widgets
that resided in removed pages.
Comment 6 Tristan Van Berkom 2007-07-03 17:43:51 UTC
see explanation for the wontfix on bug 382348
Comment 7 Juan Pablo Ugarte 2008-04-26 22:04:42 UTC
*** Bug 530114 has been marked as a duplicate of this bug. ***
Comment 8 Juan Pablo Ugarte 2008-05-14 12:41:01 UTC
*** Bug 533092 has been marked as a duplicate of this bug. ***
Comment 9 Juan Pablo Ugarte 2008-09-29 19:23:50 UTC
*** Bug 554136 has been marked as a duplicate of this bug. ***