aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2023-07-01 14:45:20 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2023-07-01 14:45:53 +0000
commit1a1b4f35d7ae4f90a462298be95102110b121b81 (patch)
tree02cf6ad9cf4f6699f52ac0a50731bffa6583caeb
parent4df4983addae73e0d652ccfd502a86ed4fa62067 (diff)
downloadports-1a1b4f35d7ae4f90a462298be95102110b121b81.tar.gz
ports-1a1b4f35d7ae4f90a462298be95102110b121b81.zip
-rw-r--r--x11/mlterm/files/patch-gtk_vte.c46
-rw-r--r--x11/mlterm/files/patch-uitoolkit_libtype_ui__window__cairo.c11
2 files changed, 57 insertions, 0 deletions
diff --git a/x11/mlterm/files/patch-gtk_vte.c b/x11/mlterm/files/patch-gtk_vte.c
new file mode 100644
index 000000000000..1174801a8246
--- /dev/null
+++ b/x11/mlterm/files/patch-gtk_vte.c
@@ -0,0 +1,46 @@
+--- gtk/vte.c.orig 2023-04-01 13:54:40 UTC
++++ gtk/vte.c
+@@ -1327,8 +1327,8 @@ static void init_screen(VteTerminal *terminal, ui_font
+
+ PVT(terminal)->screen->xterm_listener.set_window_name = set_window_name;
+ PVT(terminal)->screen->xterm_listener.set_icon_name = set_icon_name;
+- PVT(terminal)->xterm_resize = PVT(terminal)->screen->xterm_listener.resize;
+- PVT(terminal)->screen->xterm_listener.resize = xterm_resize;
++ PVT(terminal)->xterm_resize = (void (*)(void *, u_int, u_int, int))PVT(terminal)->screen->xterm_listener.resize;
++ PVT(terminal)->screen->xterm_listener.resize = (void (*)(void *, u_int, u_int, int, int))xterm_resize;
+
+ orig_select_in_window = PVT(terminal)->screen->sel_listener.select_in_window;
+ PVT(terminal)->screen->sel_listener.select_in_window = select_in_window;
+@@ -3369,19 +3369,19 @@ void vte_terminal_set_color_dim_rgba(VteTerminal *term
+
+ #if GTK_CHECK_VERSION(2, 99, 0)
+ void vte_terminal_set_color_bold_rgba(VteTerminal *terminal, const GdkRGBA *bold) {
+- set_color_bold(terminal, bold, gdk_rgba_to_string2);
++ set_color_bold(terminal, bold, (gchar *(*)(const void *))gdk_rgba_to_string2);
+ }
+
+ void vte_terminal_set_color_foreground_rgba(VteTerminal *terminal, const GdkRGBA *foreground) {
+- set_color_foreground(terminal, foreground, gdk_rgba_to_string2);
++ set_color_foreground(terminal, foreground, (gchar *(*)(const void *))gdk_rgba_to_string2);
+ }
+
+ void vte_terminal_set_color_background_rgba(VteTerminal *terminal, const GdkRGBA *background) {
+- set_color_background(terminal, background, gdk_rgba_to_string2);
++ set_color_background(terminal, background, (gchar *(*)(const void *))gdk_rgba_to_string2);
+ }
+
+ void vte_terminal_set_color_cursor_rgba(VteTerminal *terminal, const GdkRGBA *cursor_background) {
+- set_color_cursor(terminal, cursor_background, gdk_rgba_to_string2);
++ set_color_cursor(terminal, cursor_background, (gchar *(*)(const void *))gdk_rgba_to_string2);
+ }
+
+ #if VTE_CHECK_VERSION(0, 44, 0)
+@@ -3418,7 +3418,7 @@ void vte_terminal_set_color_highlight_foreground_rgba(
+ void vte_terminal_set_colors_rgba(VteTerminal *terminal, const GdkRGBA *foreground,
+ const GdkRGBA *background, const GdkRGBA *palette,
+ gsize palette_size) {
+- if (set_colors(terminal, palette, palette_size, sizeof(GdkRGBA), gdk_rgba_to_string2) &&
++ if (set_colors(terminal, palette, palette_size, sizeof(GdkRGBA), (gchar *(*)(const char *))gdk_rgba_to_string2) &&
+ palette_size > 0) {
+ if (foreground == NULL) {
+ foreground = &palette[7];
diff --git a/x11/mlterm/files/patch-uitoolkit_libtype_ui__window__cairo.c b/x11/mlterm/files/patch-uitoolkit_libtype_ui__window__cairo.c
new file mode 100644
index 000000000000..cf5dc4db47d7
--- /dev/null
+++ b/x11/mlterm/files/patch-uitoolkit_libtype_ui__window__cairo.c
@@ -0,0 +1,11 @@
+--- uitoolkit/libtype/ui_window_cairo.c.orig 2023-07-01 12:37:30 UTC
++++ uitoolkit/libtype/ui_window_cairo.c
+@@ -54,7 +54,7 @@ static void adjust_glyphs(ui_font_t *font, cairo_glyph
+
+ static void flush_glyphs(cairo_t *cr) {
+ if (num_glyph_buf > 0) {
+- u_long pixel = cairo_get_user_data(cr, (cairo_user_data_key_t*)2);
++ u_long pixel = (u_long)cairo_get_user_data(cr, (cairo_user_data_key_t*)2);
+
+ cairo_set_scaled_font(cr, cairo_get_user_data(cr, (cairo_user_data_key_t*)1));
+ cairo_set_source_rgba(cr,