mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
www/bluefish: Fix build on clang16
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
This commit is contained in:
parent
bcea2e3a26
commit
e95c4bea42
@ -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
|
||||
|
11
www/bluefish/files/patch-src_bftextview2__autocomp.c
Normal file
11
www/bluefish/files/patch-src_bftextview2__autocomp.c
Normal file
@ -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
www/bluefish/files/patch-src_external__commands.c
Normal file
11
www/bluefish/files/patch-src_external__commands.c
Normal file
@ -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));
|
Loading…
Reference in New Issue
Block a user