[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-148-g9ba29ca59

jonathan at claws-mail.org jonathan at claws-mail.org
Sat Sep 11 03:34:00 CEST 2021


The branch, gtk3 has been updated
       via  9ba29ca59869d89cb74ff943ac8658b9f0e7fde7 (commit)
       via  b32b28769916d51b8314aca85d19bff8b971d8c9 (commit)
      from  ef5c197cfcc1e5e0dcd1048142d179e67f02f5cb (commit)

Summary of changes:
 src/plugins/fancy/fancy_viewer.c | 10 +++++-----
 src/plugins/fancy/fancy_viewer.h |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 9ba29ca59869d89cb74ff943ac8658b9f0e7fde7
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date:   Thu Sep 9 23:51:15 2021 -0700

    Add missing const qualifier
    
    Fix warning: assignment discards ‘const’ qualifier from pointer target type

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 2aacdeee6..03cbe0cce 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -797,7 +797,7 @@ static void download_file_cb(GtkWidget *widget, FancyViewer *viewer)
 	pthread_t curljob;
 	gint result;
 #endif
-	const gchar *link = (const gchar *)viewer->cur_link;
+	const gchar *link = viewer->cur_link;
 	gchar *filename = g_utf8_strchr(link, -1, g_utf8_get_char("/"));
 	filename = g_strconcat(g_get_home_dir(), filename, NULL);
 	gchar *fname = filesel_select_file_save(_("Save as"), filename);
@@ -945,7 +945,7 @@ static gboolean context_menu_cb (WebKitWebView *view, WebKitContextMenu *menu,
 			link_uri != NULL) {
 		if (viewer != NULL && viewer->cur_link != NULL) {
             /* g_object_get() already made a copy, no need to strdup() here */
-            viewer->cur_link = (gchar*)link_uri;
+            viewer->cur_link = link_uri;
         }
 	}
 
diff --git a/src/plugins/fancy/fancy_viewer.h b/src/plugins/fancy/fancy_viewer.h
index e60c5fad0..51dea06ed 100644
--- a/src/plugins/fancy/fancy_viewer.h
+++ b/src/plugins/fancy/fancy_viewer.h
@@ -106,7 +106,7 @@ struct _FancyViewer
 	const gchar       *curlfile;
 	FILE              *stream;
 
-	gchar             *cur_link;
+	const gchar       *cur_link;
 	gchar             *filename;
 	MimeInfo          *to_load;
 	gulong            doc_handle;

commit b32b28769916d51b8314aca85d19bff8b971d8c9
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date:   Thu Sep 9 23:47:02 2021 -0700

    Minor cleanup

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 17572703e..2aacdeee6 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -130,7 +130,7 @@ static void fancy_apply_prefs(FancyViewer *viewer)
 			webkit_user_style_sheet_unref(style);
 			g_free(stylesheet);
 		} else {
-			debug_print("Could not read style file: %s", viewer->override_stylesheet);
+			debug_print("Could not read style file: %s\n", viewer->override_stylesheet);
 		}
 	}
 }
@@ -469,9 +469,9 @@ navigation_policy_cb (WebKitWebView    *web_view,
                                 webkit_policy_decision_ignore(policy_decision);
                         }
                 }
-                return true;
+                return TRUE;
         } else {
-                return false;
+                return FALSE;
         }
 }
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list