network-manager-applet r437 - in branches/network-manager-applet-0-6: . src



Author: dcbw
Date: Tue Jan  8 22:01:47 2008
New Revision: 437
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=437&view=rev

Log:
2008-01-08  Dan Williams  <dcbw redhat com>

	* src/applet.c
	  src/other-network-dialog.c
	  src/passphrase-dialog.c
		- (nma_show_vpn_failure_dialog, nma_show_vpn_login_banner_dialog,
		   nma_driver_notify, show_warning_dialog, nma_other_network_dialog_run,
		   nmi_passphrase_dialog_new): Sigh.  Widget needs to be realized so
			that it's ->window exists



Modified:
   branches/network-manager-applet-0-6/ChangeLog
   branches/network-manager-applet-0-6/src/applet.c
   branches/network-manager-applet-0-6/src/other-network-dialog.c
   branches/network-manager-applet-0-6/src/passphrase-dialog.c

Modified: branches/network-manager-applet-0-6/src/applet.c
==============================================================================
--- branches/network-manager-applet-0-6/src/applet.c	(original)
+++ branches/network-manager-applet-0-6/src/applet.c	Tue Jan  8 22:01:47 2008
@@ -397,6 +397,7 @@
 
 	/* Bash focus-stealing prevention in the face */
 	gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
+	gtk_widget_realize (GTK_WIDGET (dialog));
 	gdk_x11_window_set_user_time (dialog->window, gdk_x11_get_server_time (dialog->window));
 	gtk_widget_show_all (dialog);
 }
@@ -490,6 +491,7 @@
 
 	/* Bash focus-stealing prevention in the face */
 	gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
+	gtk_widget_realize (GTK_WIDGET (dialog));
 	gdk_x11_window_set_user_time (dialog->window, gdk_x11_get_server_time (dialog->window));
 	gtk_widget_show_all (dialog);
 }
@@ -769,6 +771,7 @@
 
 	/* Bash focus-stealing prevention in the face */
 	gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
+	gtk_widget_realize (GTK_WIDGET (dialog));
 	gdk_x11_window_set_user_time (dialog->window, gdk_x11_get_server_time (dialog->window));
 	gtk_widget_show_all (dialog);
 
@@ -1195,6 +1198,7 @@
 
 	/* Bash focus-stealing prevention in the face */
 	gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
+	gtk_widget_realize (GTK_WIDGET (dialog));
 	gdk_x11_window_set_user_time (dialog->window, gdk_x11_get_server_time (dialog->window));
 	gtk_window_present (GTK_WINDOW (dialog));
 

Modified: branches/network-manager-applet-0-6/src/other-network-dialog.c
==============================================================================
--- branches/network-manager-applet-0-6/src/other-network-dialog.c	(original)
+++ branches/network-manager-applet-0-6/src/other-network-dialog.c	Tue Jan  8 22:01:47 2008
@@ -459,6 +459,7 @@
 	g_signal_connect (dialog, "response", G_CALLBACK (nma_ond_response_cb), NULL);
 
 	gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
+	gtk_widget_realize (GTK_WIDGET (dialog));
 	gdk_x11_window_set_user_time (dialog->window, gdk_x11_get_server_time (dialog->window));
 	gtk_window_present (GTK_WINDOW (dialog));
 }

Modified: branches/network-manager-applet-0-6/src/passphrase-dialog.c
==============================================================================
--- branches/network-manager-applet-0-6/src/passphrase-dialog.c	(original)
+++ branches/network-manager-applet-0-6/src/passphrase-dialog.c	Tue Jan  8 22:01:47 2008
@@ -271,6 +271,7 @@
 
 	/* Bash focus-stealing prevention in the face */
 	gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
+	gtk_widget_realize (GTK_WIDGET (dialog));
 	gdk_x11_window_set_user_time (dialog->window, gdk_x11_get_server_time (dialog->window));
 	gtk_window_present (GTK_WINDOW (dialog));
 



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