[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-71-g13a8e7744

paul at claws-mail.org paul at claws-mail.org
Mon Aug 23 14:22:27 UTC 2021


The branch, gtk3 has been updated
       via  13a8e7744b16fee45aed79088421c39560d5282d (commit)
       via  66bafe683401cc2a51ca0d15615b1751fa4c9108 (commit)
      from  79ff72c6e4fe9c5882672e518fd7d45cac7bff80 (commit)

Summary of changes:
 src/mainwindow.c | 4 ++--
 src/printing.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 13a8e7744b16fee45aed79088421c39560d5282d
Author: paul <paul at claws-mail.org>
Date:   Mon Aug 23 15:22:23 2021 +0100

    replace deprecated gtk_text_iter_begins_tag()

diff --git a/src/printing.c b/src/printing.c
index 49c7c441e..73526d95f 100644
--- a/src/printing.c
+++ b/src/printing.c
@@ -1357,7 +1357,7 @@ static void printing_layout_set_text_attributes(PrintData *print_data,
 			g_slist_free(tags);
 		}
 
-		if (gtk_text_iter_begins_tag(&iter, NULL)) {
+		if (gtk_text_iter_starts_tag(&iter, NULL)) {
 			tags = gtk_text_iter_get_toggled_tags(&iter, TRUE);
 			/* Sometimes, an iter has several weights. Use only the first in this case */
 			gboolean weight_set_for_this_iter;

commit 66bafe683401cc2a51ca0d15615b1751fa4c9108
Author: paul <paul at claws-mail.org>
Date:   Mon Aug 23 15:20:41 2021 +0100

    fix 2 incompatible pointer type warnings

diff --git a/src/mainwindow.c b/src/mainwindow.c
index b3d7c7714..ab854ee5d 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -2805,7 +2805,7 @@ void main_window_get_size(MainWindow *mainwin)
 		prefs_common.mainview_width = allocation.width;
 	}
 
-	gtk_window_get_size(mainwin->window, &allocation.width, &allocation.height);
+	gtk_window_get_size(GTK_WINDOW(mainwin->window), &allocation.width, &allocation.height);
 	if (allocation.width > 1 && allocation.height > 1 &&
 	    !prefs_common.mainwin_maximised && !prefs_common.mainwin_fullscreen) {
 		prefs_common.mainview_height = allocation.height;
@@ -2845,7 +2845,7 @@ void main_window_get_position(MainWindow *mainwin)
 	if (prefs_common.mainwin_maximised || prefs_common.mainwin_fullscreen)
 		return;
 
-	gtk_window_get_position(mainwin->window, &x, &y);
+	gtk_window_get_position(GTK_WINDOW(mainwin->window), &x, &y);
 
 	prefs_common.mainview_x = x;
 	prefs_common.mainview_y = y;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list