talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 55ae9699a6bbe2508edddb49c92353ac9fba83d1
parent bdab46298af5bbbc53bb7d726987bba1f7ab762d
Author: paul <paul@claws-mail.org>
Date:   Wed, 19 Aug 2020 14:00:10 +0100

allow user to both shrink and expand addrbook window and edit window

Diffstat:
Msrc/addressbook.c | 3+--
Msrc/editaddress.c | 4++--
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/addressbook.c b/src/addressbook.c @@ -1002,7 +1002,6 @@ static void addressbook_create(void) gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ctree_swin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_widget_set_size_request(ctree_swin, COL_FOLDER_WIDTH + 20, -1); /* Address index */ ctree = gtk_sctree_new_with_titles(N_INDEX_COLS, 0, index_titles); @@ -1317,7 +1316,7 @@ static void addressbook_create(void) gtk_window_set_geometry_hints(GTK_WINDOW(window), NULL, &geometry, GDK_HINT_MIN_SIZE); - gtk_widget_set_size_request(window, prefs_common.addressbookwin_width, + gtk_window_set_default_size(GTK_WINDOW(window), prefs_common.addressbookwin_width, prefs_common.addressbookwin_height); #ifdef G_OS_WIN32 gtk_window_move(GTK_WINDOW(window), 48, 48); diff --git a/src/editaddress.c b/src/editaddress.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2019 Hiroyuki Yamamoto and the Claws Mail team + * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -877,7 +877,7 @@ static void addressbook_edit_person_dialog_create( gboolean *cancelled ) { gtk_window_set_geometry_hints(GTK_WINDOW(window), NULL, &geometry, GDK_HINT_MIN_SIZE); - gtk_widget_set_size_request(window, prefs_common.addressbookeditpersonwin_width, + gtk_window_set_default_size(window, prefs_common.addressbookeditpersonwin_width, prefs_common.addressbookeditpersonwin_height); personeditdlg.container = window;