[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-89-gab0270f
ticho at claws-mail.org
ticho at claws-mail.org
Sat Feb 17 11:39:51 CET 2018
The branch, gtk3 has been updated
via ab0270f13ee257ef7d721217e66623df64779ae9 (commit)
from eb109e05a8ad8ae285059fff5006f0763be842e0 (commit)
Summary of changes:
src/compose.c | 5 +++--
src/mainwindow.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit ab0270f13ee257ef7d721217e66623df64779ae9
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sat Feb 17 11:37:35 2018 +0100
Correctly set initial size for main and compose windows.
Use gtk_window_set_default_size() instead of
gtk_widget_set_size_request(), since in GTK3, the latter
sets minimum allowed size for a widget, and we're
interested in just setting initial size here. User
should be allowed to make the windows smaller.
diff --git a/src/compose.c b/src/compose.c
index 638c8a3..4cbd015 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -7720,8 +7720,9 @@ static Compose *compose_create(PrefsAccount *account,
window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "compose");
gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
- gtk_widget_set_size_request(window, prefs_common.compose_width,
- prefs_common.compose_height);
+ gtk_window_set_default_size(GTK_WINDOW(window),
+ prefs_common.compose_width,
+ prefs_common.compose_height);
if (!geometry.max_width) {
geometry.max_width = gdk_screen_width();
diff --git a/src/mainwindow.c b/src/mainwindow.c
index f73a257..fc7b2f9 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3811,7 +3811,7 @@ static void main_window_set_widgets(MainWindow *mainwin, LayoutType layout_mode)
gtk_widget_set_size_request(GTK_WIDGET_PTR(mainwin->messageview),
prefs_common.msgview_width,
prefs_common.msgview_height);
- gtk_widget_set_size_request(GTK_WIDGET(mainwin->window),
+ gtk_window_set_default_size(mainwin->window,
prefs_common.mainwin_width,
prefs_common.mainwin_height);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list