Re: "Connect to Server" dialog & new panel menu layout

Le vendredi 14 janvier 2005 �2:12 +0100, Alexander Larsson a �it :
> I re-did this a bit differently to not require the ifdef. Check it out.
> gnome-vfs seems to crash for me when i try to open a non-local spatial
> window using this though.

Thanks a lot, Alex!

I can not see the crash you're describing since nautilus is crashing for
some other reason here...

But I suspect the attached patch could help.
The dialog was destroyed and then used in


Les gens heureux ne sont pas press�
Index: nautilus-connect-server-dialog.c
RCS file: /cvs/gnome/nautilus/src/nautilus-connect-server-dialog.c,v
retrieving revision 1.11
diff -u -p -r1.11 nautilus-connect-server-dialog.c
--- nautilus-connect-server-dialog.c	14 Jan 2005 11:11:38 -0000	1.11
+++ nautilus-connect-server-dialog.c	16 Jan 2005 21:15:23 -0000
@@ -287,14 +287,15 @@ connect_to_server (NautilusConnectServer
 	gnome_vfs_connect_to_server (uri, name, icon);
-	gtk_widget_destroy (GTK_WIDGET (dialog));
+	gtk_widget_hide (GTK_WIDGET (dialog));
 	if (!eel_preferences_get_boolean (NAUTILUS_PREFERENCES_ALWAYS_USE_BROWSER)) {
 		nautilus_connect_server_dialog_present_uri (dialog->details->application,
 							    GTK_WIDGET (dialog));
+	gtk_widget_destroy (GTK_WIDGET (dialog));
 	g_free (uri);
 	g_free (name);

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