Hopefully, the attached patch fixes the compilation error.

That part of code causing the error is the code for GTK+ 3.14 and 3.15.

Port to GTK+ 3 requires care for such differences between minor versions
(sigh :)

If you find anything wrong with the patch, please let me know.

Regards,
Kazunobu

2016-02-05 20:24 GMT+09:00 Christian Brabandt <[email protected]>:

> Hi Kazunobu!
>
> On Fr, 05 Feb 2016, Kazunobu Kuriyama wrote:
>
> > This is a revised patch, using a single surface.
> >
> > It was made against v7.4.1261.
> >
> > Marius, does it work for you?
>
> Unfortunately, it does not seem to apply:
>
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread
> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
> -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
> -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0
> -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0
> -I/usr/include/libpng12 -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -DGTK_DISABLE_SINGLE_INCLUDES
> -DUSE_GTK3   -g -DDEBUG -Wall -Wextra -Wshadow -Wmissing-prototypes
> -Wmaybe-uninitialized       -o objects/gui_gtk_x11.o gui_gtk_x11.c
> gui_gtk.c: In function ‘create_image_button’:
> gui_gtk.c:1992:33: warning: unused parameter ‘stock_id’
> [-Wunused-parameter]
>  create_image_button(const char *stock_id, const char *label)
>                                  ^
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread
> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
> -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
> -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0
> -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0
> -I/usr/include/libpng12 -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -DGTK_DISABLE_SINGLE_INCLUDES
> -DUSE_GTK3   -g -DDEBUG -Wall -Wextra -Wshadow -Wmissing-prototypes
> -Wmaybe-uninitialized       -o objects/pty.o pty.c
> gui_gtk.c: In function ‘find_replace_dialog_create’:
> gui_gtk.c:2171:57: error: ‘align’ undeclared (first use in this function)
>      g_object_set_property(G_OBJECT(tmp), "xalign_val", &align);
>                                                          ^
> gui_gtk.c:2171:57: note: each undeclared identifier is reported only once
> for each function it appears in
> gui_gtk.c:2222:9: warning: implicit declaration of function ‘g_unset’
> [-Wimplicit-function-declaration]
>          g_unset(&xalign);
>          ^
> gui_gtk.c: At top level:
> gui_gtk.c:222:18: warning: ‘stock_vim_icons’ defined but not used
> [-Wunused-variable]
>  static IconNames stock_vim_icons[] = {
>                   ^
> Makefile:2767: recipe for target 'objects/gui_gtk.o' failed
> make[1]: *** [objects/gui_gtk.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> gui_gtk_x11.c: In function ‘draw_event’:
> gui_gtk_x11.c:625:18: warning: unused variable ‘rect’ [-Wunused-variable]
>      GdkRectangle rect;
>                   ^
> gui_gtk_x11.c: In function ‘gui_gtk_get_pointer’:
> gui_gtk_x11.c:1730:75: warning: unused parameter ‘state’
> [-Wunused-parameter]
>  gui_gtk_get_pointer(GtkWidget *widget, gint *x, gint *y, GdkModifierType
> *state)
>
>  ^
> gui_gtk_x11.c: In function ‘drawarea_configure_event_cb’:
> gui_gtk_x11.c:2984:48: warning: unused parameter ‘event’
> [-Wunused-parameter]
>                              GdkEventConfigure *event,
>                                                 ^
> gui_gtk_x11.c:2985:48: warning: unused parameter ‘data’
> [-Wunused-parameter]
>                              gpointer           data)
>                                                 ^
> gui_gtk_x11.c: In function ‘gui_gtk_shift_lines’:
> gui_gtk_x11.c:6874:33: warning: unused variable ‘rect’ [-Wunused-variable]
>      const cairo_rectangle_int_t rect = { x, y_src, width, height };
>                                  ^
> make[1]: Leaving directory '/home/chrisbra/code/vim/src'
> Makefile:26: recipe for target 'first' failed
> make: *** [first] Error 2
>
>
>
>
> Best,
> Christian
> --
> Letzte Worte eines Gleisarbeiters:
>   "Wann kommt denn der nächste Zug?"
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: gtk3-update03.patch.gz
Description: GNU Zip compressed data

Raspunde prin e-mail lui