Bug 248686 - Avoid deleting the preference window
Summary: Avoid deleting the preference window
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-users   
(Show other bugs)
Version: 7
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
Keywords: Desktop
Depends On:
TreeView+ depends on / blocked
Reported: 2007-07-18 08:56 UTC by Masatake YAMATO
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-27 07:37:58 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix the bug with using hide_on_delete instead of hide. (652 bytes, patch)
2007-07-18 08:56 UTC, Masatake YAMATO
no flags Details | Diff

Description Masatake YAMATO 2007-07-18 08:56:34 UTC
Description of problem:

Preference window is really deleted when a user closes it with [X] button
of window manager. It should be just hidden but deleted actually.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
0. Launch system-config-user from a terminal.
1. Choose Edit-> Preferences
2. Close it with [X] button of window manager(don't use close button of dialog
3. Re-choose Edit-> Preferences
4. Preference window isn't shown and you'll get following error message on the

 /usr/share/system-config-users/prefWindow.py:34: GtkWarning:
gtk_container_foreach: assertion `GTK_IS_CONTAINER (container)' failed
  self.toplevel.show ()

Actual results:

The preference window is not shown.

Expected results:

The preference window is shown.

Additional info:

A patch for fixing this is attached.

Comment 1 Masatake YAMATO 2007-07-18 08:56:34 UTC
Created attachment 159501 [details]
Fix the bug with using hide_on_delete instead of hide.

Comment 2 Nils Philippsen 2007-07-18 13:27:00 UTC
Hi Yamato,

thanks for spotting this. I've fixed it a little bit differently in the
hosted.fpo repo, by just returning True in PrefWindow.hide().

Comment 3 Nils Philippsen 2007-07-23 09:04:01 UTC
Building system-config-users-1.2.61 which should hit updates-testing shortly.
Please test this one.

Comment 4 Fedora Update System 2007-07-23 15:46:03 UTC
system-config-users-1.2.61-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Nils Philippsen 2007-09-27 07:37:58 UTC
system-config-users-1.2.64-1.fc7 is in dist-fc7-updates, closing

Note You need to log in before you can comment on or make changes to this bug.