Re: GtkFilesystemGnomeVFS and authentication



On Thu, 2004-03-18 at 17:08, Alexander Larsson wrote:
> On Tue, 2004-03-16 at 21:37, Federico Mena Quintero wrote:
> > Hi, Alex,
> > 
> > These are some disconnected thoughts on GtkFileSystemGnomeVFS and
> > authentication.
> > 
> > * The file system backend does nothing with respect to authentication
> > right now.  Should we blindly call gnome_authentication_manager_init()
> > when the module is loaded, or something like that?
> 
> After some research and talk with owen I've ended up with the patch
> below. It adds some new private API that could potentially be useful for
> other apps, but for now its not exposed.
> 
> It seems to work.

The patch is mixed in with my other libgnomeui patch, ignore these
parts:


-       gtk_window_set_modal (GTK_WINDOW (dialog), FALSE);
+       toplevel = gtk_widget_get_toplevel (gtk_grab_get_current ());
+       if (toplevel && GTK_WIDGET_TOPLEVEL (toplevel)) {
+               /* There is a modal window, so we need to be modal too
in order to
+                * get input. We set the other modal dialog as parent,
which
+                * hopefully gives us better window management.
+                */
+               gtk_window_set_transient_for (GTK_WINDOW (dialog),
GTK_WINDOW (toplevel));
+       } else {
+               gtk_window_set_modal (GTK_WINDOW (dialog), FALSE);
+       }

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a genetically engineered arachnophobic shaman with nothing left to lose. 
She's a violent gypsy femme fatale with the soul of a mighty warrior. They 
fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]