[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-88-g62b64faeb

wwp at claws-mail.org wwp at claws-mail.org
Wed Sep 1 09:45:51 UTC 2021


The branch, gtk3 has been updated
       via  62b64faeb9b22e7e3c0b2bf9a5a3506bd0b852f3 (commit)
      from  4c09d7cbeb0fc507f4217f64674e103428197ccb (commit)

Summary of changes:
 src/prefs_folder_item.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit 62b64faeb9b22e7e3c0b2bf9a5a3506bd0b852f3
Author: wwp <subscript at free.fr>
Date:   Wed Sep 1 11:45:30 2021 +0200

    Restrict widget size requisition to the width only.

diff --git a/src/prefs_folder_item.c b/src/prefs_folder_item.c
index 70d17244c..5347b90ca 100644
--- a/src/prefs_folder_item.c
+++ b/src/prefs_folder_item.c
@@ -276,7 +276,7 @@ static void prefs_folder_item_general_create_widget_func(PrefsPage * page_,
 	GtkWidget *offlinesync_rec_checkbtn;
 	GtkWidget *promote_html_part_rec_checkbtn;
 
-	GtkRequisition req1, req2;
+	gint wreq1, wreq2;
 
 	page->item	   = item;
 
@@ -619,10 +619,10 @@ static void prefs_folder_item_general_create_widget_func(PrefsPage * page_,
 	gtk_widget_show_all(table);
 
 	/* line few widgets up now that we know their display size */
-	gtk_widget_get_preferred_size(label_regexp_test, &req1, NULL);
-	gtk_widget_get_preferred_size(label_regexp_result, &req2, NULL);
-	gtk_widget_set_size_request(label_regexp_test, MAX(100, MAX(req1.width, req2.width)), -1);
-	gtk_widget_set_size_request(label_regexp_result, MAX(100, MAX(req1.width, req2.width)), -1);
+	gtk_widget_get_preferred_width(label_regexp_test, &wreq1, NULL);
+	gtk_widget_get_preferred_width(label_regexp_result, &wreq2, NULL);
+	gtk_widget_set_size_request(label_regexp_test, MAX(100, MAX(wreq1, wreq2)), -1);
+	gtk_widget_set_size_request(label_regexp_result, MAX(100, MAX(wreq1, wreq2)), -1);
 
 	if (item->folder && (item->folder->klass->type != F_IMAP && 
 	    item->folder->klass->type != F_NEWS)) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list