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 103408 - move nautilus authentication dialog to libgnomeui
move nautilus authentication dialog to libgnomeui
Status: RESOLVED FIXED
Product: libgnomeui
Classification: Deprecated
Component: general
2.2.x
Other Linux
: High enhancement
: 2.2.0
Assigned To: libgnomeui maintainers
libgnomeui maintainers
Depends on:
Blocks:
 
 
Reported: 2003-01-13 19:13 UTC by Christophe Fergeau
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch for libgnomeui (45.46 KB, patch)
2003-01-13 19:15 UTC, Christophe Fergeau
none Details | Review
(trivial) patch for Nautilus (1.23 KB, patch)
2003-01-13 19:16 UTC, Christophe Fergeau
none Details | Review
updated patch (more hig compliant) (46.11 KB, patch)
2003-01-15 19:15 UTC, Christophe Fergeau
none Details | Review
same patch, but now it registers a stock icon (47.80 KB, patch)
2003-04-09 21:36 UTC, Christophe Fergeau
none Details | Review

Description Christophe Fergeau 2003-01-13 19:13:48 UTC
Putting this dialog in libgnomeui would allow all GNOME apps to get a
working authentication dialog for free. 

The attached patch takes a few files from eel and Nautilus and puts them in
libgnomeui. Any app can then call gnome_authentication_manager_init()  if
it wants to ask the user for auth info when necessary. Imo, this function
should be called automatically when initializing libgnomeui and libgnomeui
should provide a function to disable the authentication callbacks if an app
writer really doesn't want them.

If this patch gets applied, the corresponding files can be removed from eel
and Nautilus (nautilus-authn-manager.[ch], eel-caption-table.[ch],
eel-password-dialog.[ch])
Comment 1 Christophe Fergeau 2003-01-13 19:15:02 UTC
Created attachment 13536 [details] [review]
patch for libgnomeui
Comment 2 Christophe Fergeau 2003-01-13 19:16:26 UTC
Created attachment 13537 [details] [review]
(trivial) patch for Nautilus
Comment 3 Christophe Fergeau 2003-01-13 19:17:13 UTC
Forgot to mention that it might be a good idea not to install
gnome-caption-table.h and gnome-password-dialog.h if possible
Comment 4 Christophe Fergeau 2003-01-15 19:15:30 UTC
Created attachment 13590 [details] [review]
updated patch (more hig compliant)
Comment 5 Christophe Fergeau 2003-01-15 19:16:22 UTC
I tweaked the dialog so that it is more HIG compliant. Its icon is
hardcoded for now, but a stock icon can be used once #65765 is fixed
Comment 6 Christophe Fergeau 2003-04-09 21:36:36 UTC
Created attachment 15605 [details] [review]
same patch, but now it registers a stock icon
Comment 7 Christophe Fergeau 2003-04-09 21:37:04 UTC
Modified the patch to register a stock icon, since the gtk one won't
appear before gtk 2.4
Comment 8 Dave Bordoley [Not Reading Bug Mail] 2003-05-13 16:40:29 UTC
Why not kill off gnome_password_dialog_run_and_block and instead hook
the a callback up to the "response" signal in
present_authentication_dialog_blocking. Another option if you want
modality to the parent window of the dialog would be to use window
grouping and do a grab on the window group. Going app modal though
kind of sucks for dialogs like this. 
Comment 9 Christophe Fergeau 2003-05-20 18:02:54 UTC
According to owen, gtk_dialog_run should no longer be a problem with
upcoming glib 2.2 release
Comment 10 Anders Carlsson 2003-05-26 17:08:03 UTC
I've moved this into libgnomeui now. Closing.