[Commits] [SCM] claws branch, master, updated. 3.13.2-160-gcb67730

pawel at claws-mail.org pawel at claws-mail.org
Sat Jul 2 18:14:46 CEST 2016


The branch, master has been updated
       via  cb67730a260a491ae380fd928d8ca673200972b0 (commit)
      from  bc2c1d1d88c4ad3ecf56dffd9a12be03bfd5564d (commit)

Summary of changes:
 src/account.c          |    1 +
 src/addressbook.c      |    1 +
 src/gtk/logwindow.c    |    1 +
 src/gtk/pluginwindow.c |    1 +
 src/message_search.c   |    1 +
 src/sourcewindow.c     |    1 +
 src/summary_search.c   |    1 +
 7 files changed, 7 insertions(+)


- Log -----------------------------------------------------------------
commit cb67730a260a491ae380fd928d8ca673200972b0
Author: Pawel Pekala <c0rn at o2.pl>
Date:   Sat Jul 2 18:05:14 2016 +0200

    Place dialogs on center of main window. Most window managers place
    these dialogs in some weird positions making interacting with
    them unwieldy. Windows is biggest offender here putting things
    around left top corner of the screen.

diff --git a/src/account.c b/src/account.c
index e2f472f..ad6ba4e 100644
--- a/src/account.c
+++ b/src/account.c
@@ -724,6 +724,7 @@ static void account_edit_create(void)
 	debug_print("Creating account edit window...\n");
 
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "account");
+	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
 	gtk_container_set_border_width (GTK_CONTAINER (window), 8);
 	gtk_window_set_title (GTK_WINDOW (window), _("Edit accounts"));
 	g_signal_connect (G_OBJECT (window), "delete_event",
diff --git a/src/addressbook.c b/src/addressbook.c
index 80599f8..fc110da 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -914,6 +914,7 @@ static void addressbook_create(void)
 
 	/* Address book window */
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "addressbook");
+	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
 	gtk_window_set_title(GTK_WINDOW(window), _("Address book"));
 	gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
 	gtk_widget_realize(window);
diff --git a/src/gtk/logwindow.c b/src/gtk/logwindow.c
index 4cc3208..9fd3bea 100644
--- a/src/gtk/logwindow.c
+++ b/src/gtk/logwindow.c
@@ -94,6 +94,7 @@ LogWindow *log_window_create(LogInstance instance)
 	logwin = g_new0(LogWindow, 1);
 
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "logwindow");
+	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
 	gtk_window_set_title(GTK_WINDOW(window), get_log_title(instance));
 	gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
 	g_signal_connect(G_OBJECT(window), "delete_event",
diff --git a/src/gtk/pluginwindow.c b/src/gtk/pluginwindow.c
index a29e0ea..4284cfd 100644
--- a/src/gtk/pluginwindow.c
+++ b/src/gtk/pluginwindow.c
@@ -299,6 +299,7 @@ void pluginwindow_create()
 	pluginwindow = g_new0(PluginWindow, 1);
 
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "pluginwindow");
+	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
 	gtk_container_set_border_width(GTK_CONTAINER(window), 8);
 	gtk_window_set_title(GTK_WINDOW(window), _("Plugins"));
 	gtk_window_set_modal(GTK_WINDOW(window), TRUE);
diff --git a/src/message_search.c b/src/message_search.c
index 33965bd..5fc9a47 100644
--- a/src/message_search.c
+++ b/src/message_search.c
@@ -158,6 +158,7 @@ static void message_search_create(void)
 	GtkWidget *stop_btn;
 
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "message_search");
+	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
 	gtk_window_set_title (GTK_WINDOW (window),
 			      _("Find in current message"));
 	gtk_widget_set_size_request (window, 450, -1);
diff --git a/src/sourcewindow.c b/src/sourcewindow.c
index 43c40ff..b9fa6f8 100644
--- a/src/sourcewindow.c
+++ b/src/sourcewindow.c
@@ -61,6 +61,7 @@ SourceWindow *source_window_create(void)
 	sourcewin = g_new0(SourceWindow, 1);
 
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "sourcewindow");
+	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
 	gtk_window_set_title(GTK_WINDOW(window), _("Source of the message"));
 	gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
 	gtk_widget_set_size_request(window, prefs_common.sourcewin_width,
diff --git a/src/summary_search.c b/src/summary_search.c
index 5e9c546..0427449 100644
--- a/src/summary_search.c
+++ b/src/summary_search.c
@@ -256,6 +256,7 @@ static void summary_search_create(void)
 	gboolean is_searching = FALSE;
 
 	window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "summary_search");
+	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
 	gtk_window_set_title(GTK_WINDOW (window), _("Search messages"));
 	gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
 	gtk_container_set_border_width(GTK_CONTAINER (window), 8);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list