[Commits] prefswindow.c 1.12.2.60 1.12.2.61

ticho at claws-mail.org ticho at claws-mail.org
Wed Jul 25 20:51:46 CEST 2012


Update of /home/claws-mail/claws/src/gtk
In directory srv:/tmp/cvs-serv18333/src/gtk

Modified Files:
      Tag: gtk2
	prefswindow.c 
Log Message:
2012-07-25 [ticho]	3.8.1cvs17

	* src/gtk/prefswindow.c
		Correctly set transient_for property for preferences window,
		as well as for color picker dialogs. Fixes bug #2710.

Index: prefswindow.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/prefswindow.c,v
retrieving revision 1.12.2.60
retrieving revision 1.12.2.61
diff -u -d -r1.12.2.60 -r1.12.2.61
--- prefswindow.c	7 Jul 2012 07:09:35 -0000	1.12.2.60
+++ prefswindow.c	25 Jul 2012 18:51:44 -0000	1.12.2.61
@@ -32,6 +32,7 @@
 #include "prefswindow.h"
 #include "gtkutils.h"
 #include "prefs_common.h"
+#include "gtk/manage_window.h"
 
 enum { 
 	PREFS_PAGE_TITLE,		/* page title */
@@ -460,6 +461,8 @@
 	gtk_window_set_position (GTK_WINDOW(prefswindow->window), GTK_WIN_POS_CENTER);
 	gtk_window_set_modal (GTK_WINDOW (prefswindow->window), TRUE);
 	gtk_window_set_resizable (GTK_WINDOW(prefswindow->window), TRUE);
+	gtk_window_set_transient_for (GTK_WINDOW(prefswindow->window),
+			GTK_WINDOW(mainwindow_get_mainwindow()->window));
 	gtk_container_set_border_width(GTK_CONTAINER(prefswindow->window), 4);
 
 	prefswindow->vbox = gtk_vbox_new(FALSE, 6);
@@ -603,6 +606,8 @@
 			GTK_SCROLLED_WINDOW(prefswindow->scrolledwindow1));
 	gtk_adjustment_set_value(adj, gtk_adjustment_get_lower(adj));
 	gtk_adjustment_changed(adj);
+
+	manage_window_focus_in(prefswindow->window, NULL, NULL);
 }
 
 void prefswindow_open(const gchar *title, GSList *prefs_pages, gpointer data,



More information about the Commits mailing list