[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-846-g5b05e23ad

paul at claws-mail.org paul at claws-mail.org
Thu Nov 21 13:04:03 CET 2019


The branch, gtk3 has been updated
       via  5b05e23ad0f0e528fd33d728bb163a488f7e20ca (commit)
      from  d8a8e8f6eddbddd16dcd30dcbeac2463932c982e (commit)

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


- Log -----------------------------------------------------------------
commit 5b05e23ad0f0e528fd33d728bb163a488f7e20ca
Author: paul <paul at claws-mail.org>
Date:   Thu Nov 21 13:03:59 2019 +0000

    fix mimeview toggle arrow

diff --git a/src/mimeview.c b/src/mimeview.c
index 7b609d492..2e1057198 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -494,6 +494,7 @@ MimeView *mimeview_create(MainWindow *mainwin)
 	mimeview->mime_toggle   = mime_toggle;
 	mimeview->siginfoview	= siginfoview;
 	mimeview->scrollbutton  = scrollbutton;
+	mimeview->arrow		= arrow;
 	mimeview->target_list	= gtk_target_list_new(mimeview_mime_types, 1); 
 	
 	mimeviews = g_slist_prepend(mimeviews, mimeview);
@@ -2813,7 +2814,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(button),
+		gtk_image_set_from_icon_name(mimeview->arrow,
 					      "pan-end-symbolic", GTK_ICON_SIZE_MENU);
 		gtk_widget_hide(mimeview->icon_mainbox);
 		gtk_widget_show(mimeview->ctree_mainbox);
@@ -2825,7 +2826,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(button),
+		gtk_image_set_from_icon_name(mimeview->arrow,
 					      "pan-start-symbolic", GTK_ICON_SIZE_MENU);
 		gtk_widget_hide(mimeview->ctree_mainbox);
 		gtk_widget_show(mimeview->icon_mainbox);
diff --git a/src/mimeview.h b/src/mimeview.h
index e4c3cf321..d7f3b7cd4 100644
--- a/src/mimeview.h
+++ b/src/mimeview.h
@@ -70,6 +70,7 @@ struct _MimeView
 	GtkWidget *icon_mainbox;
 	GtkWidget *mime_toggle;
 	GtkWidget *scrollbutton;
+	GtkWidget *arrow;
 	MimeViewType type;
 	gboolean ctree_mode;
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list