[balsa/gtk4: 51/311] Various: Drop an unused parameter
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 51/311] Various: Drop an unused parameter
- Date: Fri, 17 Dec 2021 19:53:14 +0000 (UTC)
commit 61a22eeb13ef0028223eda6b5ef343d79c800b51
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Jun 16 14:10:21 2020 -0400
Various: Drop an unused parameter
libbalsa/libbalsa-vfs.c | 4 +---
libbalsa/libbalsa-vfs.h | 7 +++----
src/balsa-mime-widget.c | 2 +-
3 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/libbalsa/libbalsa-vfs.c b/libbalsa/libbalsa-vfs.c
index 8cd5b1904..a66e138ae 100644
--- a/libbalsa/libbalsa-vfs.c
+++ b/libbalsa/libbalsa-vfs.c
@@ -667,9 +667,7 @@ libbalsa_vfs_fill_menu_by_content_type(GMenu *menu,
}
GtkWidget *
-libbalsa_vfs_mime_button(LibBalsaMessageBody * mime_body,
- const gchar * content_type,
- GCallback callback, gpointer data)
+libbalsa_vfs_mime_button(const gchar * content_type, GCallback callback, gpointer data)
{
GtkWidget *button = NULL;
gchar *msg;
diff --git a/libbalsa/libbalsa-vfs.h b/libbalsa/libbalsa-vfs.h
index 0f95cb1e6..84ff8f205 100644
--- a/libbalsa/libbalsa-vfs.h
+++ b/libbalsa/libbalsa-vfs.h
@@ -78,10 +78,9 @@ gboolean libbalsa_vfs_launch_app_for_body(LibBalsaMessageBody *mime_body,
void libbalsa_vfs_fill_menu_by_content_type(GMenu *menu,
const gchar *content_type,
const gchar *action);
-GtkWidget * libbalsa_vfs_mime_button(LibBalsaMessageBody * mime_body,
- const gchar * content_type,
- GCallback callback,
- gpointer data);
+GtkWidget * libbalsa_vfs_mime_button(const gchar * content_type,
+ GCallback callback,
+ gpointer data);
/* content type helpers */
gchar * libbalsa_vfs_content_description(const gchar * mime_type);
diff --git a/src/balsa-mime-widget.c b/src/balsa-mime-widget.c
index 65ea90d6f..78ed4470c 100644
--- a/src/balsa-mime-widget.c
+++ b/src/balsa-mime-widget.c
@@ -263,7 +263,7 @@ balsa_mime_widget_new_unknown(BalsaMessage * bm,
hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BMW_HBOX_SPACE);
gtk_box_set_homogeneous(GTK_BOX(hbox), TRUE);
- if ((button = libbalsa_vfs_mime_button(mime_body, use_content_type,
+ if ((button = libbalsa_vfs_mime_button(use_content_type,
G_CALLBACK(balsa_mime_widget_ctx_menu_cb),
(gpointer) mime_body)))
gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]