Bug 1430748

Summary: glade destroys file just by loading and saving it
Product: [Fedora] Fedora Reporter: Mike FABIAN <mfabian>
Component: gladeAssignee: Kalev Lember <klember>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: klember, mfabian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:50:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Original setup.glade file
none
New setup.glade file after loading the original one into glade and saving it.
none
Test program glade_problem.py
none
display-ui-with-glade_problem.py.png none

Description Mike FABIAN 2017-03-09 13:48:21 UTC
Created attachment 1261575 [details]
Original setup.glade file

I have a file setup.glade which works when I load it with a small 
python program "glade_problem.py” like this:

    python3 glade_problem.py

It shows the dialog correctly.

Now I load the file into glade:

   glade setup.glade

and do no changes whatsoever, I immediately click on the "save to disk"
icon and quit glade.

Now I try to load the new file with the same test program:

   python3 glade_problem.py

and the layout is completely messed up.

When using maindialog.show() instead of maindialog.show_all()
in the test program, the dialog doesn’t show up at all,
I can only see the windowmanager title bar then with a small gray
area below.

With the original setup.glade file, it worked even with maindialog.show().

Why does glade destroy this working file by just saving it again???

glade version: glade-3.20.0-1.fc25.x86_64

Comment 1 Mike FABIAN 2017-03-09 13:49:40 UTC
Created attachment 1261576 [details]
New setup.glade file after loading the original one into glade and saving it.

Comment 2 Mike FABIAN 2017-03-09 13:50:38 UTC
Created attachment 1261577 [details]
Test program glade_problem.py

Use it like “python3 glade_problem.py” with “setup.glade” in the same directory.

Comment 3 Mike FABIAN 2017-03-09 13:58:41 UTC
Created attachment 1261579 [details]
display-ui-with-glade_problem.py.png

Left:  python3 glade_problem.py
       using the original setup.glade file

Right: python3 glade_problem.py
       using the setup.glade file which was once loaded into glade
       and then saved.

Comment 4 Mike FABIAN 2017-03-09 14:03:56 UTC
I opened an upstream bug here:

https://bugzilla.gnome.org/show_bug.cgi?id=779806

Comment 5 Kalev Lember 2017-03-09 14:03:57 UTC
Can you file it upstream at https://bugzilla.gnome.org/enter_bug.cgi?product=glade please? I don't think we have anyone downstream looking at glade issues currently.

Comment 6 Mike FABIAN 2017-03-09 14:04:19 UTC
I opened an upstream bug here:

https://bugzilla.gnome.org/show_bug.cgi?id=779806

Comment 7 Fedora End Of Life 2017-11-16 18:49:26 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-12-12 10:50:16 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.