[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-845-gd8a8e8f6e

paul at claws-mail.org paul at claws-mail.org
Thu Nov 21 12:44:08 CET 2019


The branch, gtk3 has been updated
       via  d8a8e8f6eddbddd16dcd30dcbeac2463932c982e (commit)
       via  831603164be7b5042102aacfd217046e0701220f (commit)
      from  2f9bccd20272d12c011849877121bad2539a3918 (commit)

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


- Log -----------------------------------------------------------------
commit d8a8e8f6eddbddd16dcd30dcbeac2463932c982e
Author: paul <paul at claws-mail.org>
Date:   Thu Nov 21 12:44:03 2019 +0000

    replace deprecated gtk_arrow_new()

diff --git a/src/prefs_template.c b/src/prefs_template.c
index f86a38109..c95698aaf 100644
--- a/src/prefs_template.c
+++ b/src/prefs_template.c
@@ -290,7 +290,7 @@ static void prefs_template_window_create(void)
 	gtk_widget_show(hbox2);
 	gtk_box_pack_start(GTK_BOX(vbox2), hbox2, FALSE, FALSE, 0);
 
-	arrow1 = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+	arrow1 = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
 	gtk_widget_show(arrow1);
 	gtk_box_pack_start(GTK_BOX(hbox2), arrow1, FALSE, FALSE, 0);
 

commit 831603164be7b5042102aacfd217046e0701220f
Author: paul <paul at claws-mail.org>
Date:   Thu Nov 21 12:43:08 2019 +0000

    fix incompatible pointer warning

diff --git a/src/mimeview.c b/src/mimeview.c
index 551861258..7b609d492 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -2813,7 +2813,7 @@ static gint mime_toggle_button_cb(GtkWidget *button, GdkEventButton *event,
 
 	mimeview->ctree_mode = !mimeview->ctree_mode;
 	if (mimeview->ctree_mode) {
-		gtk_image_set_from_icon_name(gtk_bin_get_child(GTK_BIN(button)),
+		gtk_image_set_from_icon_name(GTK_BIN(button),
 					      "pan-end-symbolic", GTK_ICON_SIZE_MENU);
 		gtk_widget_hide(mimeview->icon_mainbox);
 		gtk_widget_show(mimeview->ctree_mainbox);
@@ -2825,7 +2825,7 @@ static gint mime_toggle_button_cb(GtkWidget *button, GdkEventButton *event,
 		gtk_box_pack_end(GTK_BOX(mimeview->ctree_mainbox), 
 				   button, FALSE, FALSE, 0);
 	} else {
-		gtk_image_set_from_icon_name(gtk_bin_get_child(GTK_BIN(button)),
+		gtk_image_set_from_icon_name(GTK_BIN(button),
 					      "pan-start-symbolic", GTK_ICON_SIZE_MENU);
 		gtk_widget_hide(mimeview->ctree_mainbox);
 		gtk_widget_show(mimeview->icon_mainbox);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list