Skip to content

Commit

Permalink
www/bluefish: Fix build on clang16
Browse files Browse the repository at this point in the history
Use G_CALLBACK() macro to silence incompatible function pointer warnings
and disables any argument checks.

Sugested by:	dim
See also:	https://lists.freebsd.org/archives/freebsd-ports/2023-July/004036.html
MFH:		2023Q3
  • Loading branch information
nunotexbsd committed Jul 5, 2023
1 parent bcea2e3 commit e95c4be
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/bluefish/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= bluefish
DISTVERSION= 2.2.14
PORTREVISION= 1
CATEGORIES= www editors
MASTER_SITES= https://www.bennewitz.com/bluefish/stable/source/ \
SF
Expand Down
11 changes: 11 additions & 0 deletions www/bluefish/files/patch-src_bftextview2__autocomp.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/bftextview2_autocomp.c.orig 2023-07-04 14:09:37 UTC
+++ src/bftextview2_autocomp.c
@@ -429,7 +429,7 @@ acwin_create(BluefishTextView * btv)
/*gtk_widget_set_size_request(acw->reflabel,150,-1); */
gtk_widget_show_all(acw->scroll);
gtk_widget_show(hbox);
- g_signal_connect(acw->reflabel, "activate-link", acw_label_active_link_lcb, acw);
+ g_signal_connect(acw->reflabel, "activate-link", G_CALLBACK(acw_label_active_link_lcb), acw);
/*gtk_widget_set_size_request(GTK_WIDGET(acw->tree),100,200); */
/*gtk_widget_set_size_request(acw->win, 150, 200); */
/*g_signal_connect(G_OBJECT(acw->win),"key-release-event",G_CALLBACK(acwin_key_release_lcb),acw); */
11 changes: 11 additions & 0 deletions www/bluefish/files/patch-src_external__commands.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/external_commands.c.orig 2023-07-04 14:12:18 UTC
+++ src/external_commands.c
@@ -483,7 +483,7 @@ create_commandstring(Texternalp * ep, const gchar * fo
gtk_dialog_set_default_response(GTK_DIALOG(dialog),GTK_RESPONSE_ACCEPT);
tmp = g_strdup_printf(_("Supply arguments to define %%a in '%s'"), formatstring);
entry = dialog_entry_labeled(NULL, tmp, gtk_dialog_get_content_area(GTK_DIALOG(dialog)), 6);
- g_signal_connect(G_OBJECT(entry), "activate", command_dialog_entry_activated_lcb, dialog);
+ g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(command_dialog_entry_activated_lcb), dialog);
g_free(tmp);
gtk_widget_show_all(dialog);
result = gtk_dialog_run(GTK_DIALOG(dialog));

0 comments on commit e95c4be

Please sign in to comment.