[balsa/popover: 38/63] Various: Drop an unused parameter



commit e3131a095907439f89a26f69fb88b02b7d6445d4
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]