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 623562 - Diagram Dialog generate diagrams without a selected device
Diagram Dialog generate diagrams without a selected device
Status: RESOLVED FIXED
Product: gevice
Classification: Other
Component: General
1.0.0
Other Linux
: Normal normal
: ---
Assigned To: gevice-maint
gevice-maint
Depends on:
Blocks:
 
 
Reported: 2010-07-05 01:26 UTC by Chihau Chau
Modified: 2011-11-03 21:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Solving device diagram dialog issues (2.76 KB, patch)
2010-07-05 01:35 UTC, Chihau Chau
none Details | Review

Description Chihau Chau 2010-07-05 01:26:40 UTC
The user can generate a device diagram without select a device and the diagram dialog doesn't close automatically after generate the diagram.
Comment 1 Chihau Chau 2010-07-05 01:35:24 UTC
Created attachment 165252 [details] [review]
Solving device diagram dialog issues

This prevent to generate a diagram when the user haven't selected a
device and show a warning dialog with the message "You need choose some
device to generate the diagram.".
    
Other issue solved is when the diagram is generated, the diagram dialog
doesn't close. Now the diagram dialog is close automatically after
generate the diagram.
Comment 2 Alejandro Valdes 2010-07-27 19:37:49 UTC
Hi Chihau.

I changed a little the code for use a function that i use for showing messages. The other changes has been applied.

md = gtk.MessageDialog(None,
gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_WARNING, 
gtk.BUTTONS_CLOSE, "You need choose some device to generate the diagram.")
md.run()
md.destroy()


result = gevice.show_message (_("You need choose some device to generate the diagram."),gtk.MESSAGE_WARNING,gtk.BUTTONS_OK)

Thanks!