Re: gtk3 xfce-panel-macros bug? ‘GdkEventClient’

André Miranda andre42m at gmail.com
Wed May 3 17:04:00 CEST 2017


Hi Dani,
You'll have to rework the events handling code, because GdkEventClient has
been removed as you can check at:
https://developer.gnome.org/gtk3/stable/ch26s02.html#id-1.6.3.4.8

Well, that's basically the amusing work of porting things to GTK3, check
what's broken/missing and figure out what's its replacement.
There is no complete manual for every case, if you're lucky enough you'll
get a nice deprecation message telling what to use, in other cases you'll
have to use google a bit more, probably forwarded to:
https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html

It also helps to take a look at the source of plugins already ported, most
of the work is the same.
Ahh, if possible, next time you share the build output, consider attaching
it or use a service such as pastebin or gist.

Cheers,
Andre Miranda


On Wed, May 3, 2017 at 11:32 AM, Dani <dani at damufo.com> wrote:

> Hello:
>
> When I try compile xfce4-timer-plugin(port to gtk3) I get the following
> error:
>
> $ make
> make  all-recursive
> make[1]: Entering directory '/home/usuario/pro_linux_c/
> xfce4-timer-plugin_meu_gtk3'
> Making all in src
> make[2]: Entering directory '/home/usuario/pro_linux_c/
> xfce4-timer-plugin_meu_gtk3/src'
> gcc -DHAVE_CONFIG_H -I. -I..    -I.. -pthread -I/usr/include/xfce4/libxfce4ui-2
> -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/mirclient
> -I/usr/include/mircommon -I/usr/include/mircookie -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/xfce4
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> -pthread -I/usr/include/xfce4/libxfce4panel-2.0 -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/mirclient -I/usr/include/mircommon -I/usr/include/mircookie
> -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/xfce4
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -g -O2 -MT
> xfce4_timer-xfcetimer.o -MD -MP -MF .deps/xfce4_timer-xfcetimer.Tpo -c -o
> xfce4_timer-xfcetimer.o `test -f 'xfcetimer.c' || echo './'`xfcetimer.c
> In file included from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-plugin.h:28:0,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-macros.h:28,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/libxfce4panel.h:29,
>                  from xfcetimer.c:42:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:286:22:
> error: unknown type name ‘GdkEventClient’
>                       GdkEventClient  *event, \
>                       ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> xfcetimer.c: In function ‘_xpp_provider_signal’:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:390:5:
> error: unknown type name ‘GdkEventClient’
>      GdkEventClient  event; \
>      ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> In file included from /usr/lib/x86_64-linux-gnu/
> glib-2.0/include/glibconfig.h:9:0,
>                  from /usr/include/glib-2.0/glib/gtypes.h:32,
>                  from /usr/include/glib-2.0/glib/galloca.h:32,
>                  from /usr/include/glib-2.0/glib.h:30,
>                  from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
>                  from /usr/include/gtk-3.0/gdk/gdk.h:30,
>                  from /usr/include/gtk-3.0/gtk/gtk.h:30,
>                  from xfcetimer.c:36:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:394:23:
> warning: implicit declaration of function ‘GTK_IS_PLUG’
> [-Wimplicit-function-declaration]
>      g_return_if_fail (GTK_IS_PLUG (plug)); \
>                        ^
> /usr/include/glib-2.0/glib/gmacros.h:370:8: note: in definition of macro
> ‘_G_BOOLEAN_EXPR’
>     if (expr)                                    \
>         ^
> /usr/include/glib-2.0/glib/gmessages.h:368:9: note: in expansion of macro
> ‘G_LIKELY’
>       if G_LIKELY(expr) { } else            \
>          ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:394:5:
> note: in expansion of macro ‘g_return_if_fail’
>      g_return_if_fail (GTK_IS_PLUG (plug)); \
>      ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> In file included from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-plugin.h:28:0,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-macros.h:28,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/libxfce4panel.h:29,
>                  from xfcetimer.c:42:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:404:10:
> error: request for member ‘type’ in something not a structure or union
>      event.type = GDK_CLIENT_EVENT; \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:405:10:
> error: request for member ‘window’ in something not a structure or union
>      event.window = gtk_widget_get_window (plug); \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:406:10:
> error: request for member ‘send_event’ in something not a structure or union
>      event.send_event = TRUE; \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:407:10:
> error: request for member ‘message_type’ in something not a structure or
> union
>      event.message_type = _xpp_atom; \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:408:10:
> error: request for member ‘data_format’ in something not a structure or
> union
>      event.data_format = 16; \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:409:10:
> error: request for member ‘data’ in something not a structure or union
>      event.data.s[0] = message; \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:410:10:
> error: request for member ‘data’ in something not a structure or union
>      event.data.s[1] = 0; \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:412:14:
> warning: implicit declaration of function ‘gtk_plug_get_socket_window’
> [-Wimplicit-function-declaration]
>      window = gtk_plug_get_socket_window (GTK_PLUG (plug)); \
>               ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:412:42:
> warning: implicit declaration of function ‘GTK_PLUG’ [-Wimplicit-function-
> declaration]
>      window = gtk_plug_get_socket_window (GTK_PLUG (plug)); \
>                                           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:412:12:
> warning: assignment makes pointer from integer without a cast
> [-Wint-conversion]
>      window = gtk_plug_get_socket_window (GTK_PLUG (plug)); \
>             ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:416:5:
> warning: implicit declaration of function ‘gdk_event_send_client_message’
> [-Wimplicit-function-declaration]
>      gdk_event_send_client_message ((GdkEvent *) &event, GDK_WINDOW_XID
> (window)); \
>      ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> xfcetimer.c: At top level:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:425:17:
> error: unknown type name ‘GtkPlug’
>                  GtkPlug         *plug) \
>                  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> xfcetimer.c: In function ‘_xpp_expose_event’:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:460:10:
> warning: implicit declaration of function ‘GTK_WIDGET_DRAWABLE’
> [-Wimplicit-function-declaration]
>      if (!GTK_WIDGET_DRAWABLE (plug)) \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:425:17:
> warning: ‘gtk_widget_get_style’ is deprecated: Use
> 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
>                  GtkPlug         *plug) \
>                  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> In file included from /usr/include/gtk-3.0/gtk/gtk.h:263:0,
>                  from xfcetimer.c:36:
> /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
>  GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
>              ^
> In file included from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-plugin.h:28:0,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-macros.h:28,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/libxfce4panel.h:29,
>                  from xfcetimer.c:42:
> xfcetimer.c: At top level:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:531:23:
> error: unknown type name ‘GtkPlug’
>    _xpp_plug_embedded (GtkPlug *plug) \
>                        ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> xfcetimer.c: In function ‘main’:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:546:5:
> error: unknown type name ‘GdkNativeWindow’
>      GdkNativeWindow  socket_id; \
>      ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:547:5:
> error: unknown type name ‘GdkColormap’
>      GdkColormap     *colormap = NULL; \
>      ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:586:12:
> warning: implicit declaration of function ‘gtk_plug_new’
> [-Wimplicit-function-declaration]
>      plug = gtk_plug_new (socket_id); \
>             ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:586:10:
> warning: assignment makes pointer from integer without a cast
> [-Wint-conversion]
>      plug = gtk_plug_new (socket_id); \
>           ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> In file included from /usr/include/glib-2.0/gobject/gobject.h:28:0,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
>                  from /usr/include/glib-2.0/glib-object.h:23,
>                  from /usr/include/glib-2.0/gio/gioenums.h:28,
>                  from /usr/include/glib-2.0/gio/giotypes.h:28,
>                  from /usr/include/glib-2.0/gio/gio.h:26,
>                  from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
>                  from /usr/include/gtk-3.0/gdk/gdk.h:32,
>                  from /usr/include/gtk-3.0/gtk/gtk.h:30,
>                  from xfcetimer.c:36:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:589:21:
> error: ‘_xpp_plug_embedded’ undeclared (first use in this function)
>          G_CALLBACK (_xpp_plug_embedded), NULL); \
>                      ^
> /usr/include/glib-2.0/gobject/gsignal.h:475:60: note: in definition of
> macro ‘g_signal_connect’
>      g_signal_connect_data ((instance), (detailed_signal), (c_handler),
> (data), NULL, (GConnectFlags) 0)
>                                                             ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:589:9:
> note: in expansion of macro ‘G_CALLBACK’
>          G_CALLBACK (_xpp_plug_embedded), NULL); \
>          ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:589:21:
> note: each undeclared identifier is reported only once for each function it
> appears in
>          G_CALLBACK (_xpp_plug_embedded), NULL); \
>                      ^
> /usr/include/glib-2.0/gobject/gsignal.h:475:60: note: in definition of
> macro ‘g_signal_connect’
>      g_signal_connect_data ((instance), (detailed_signal), (c_handler),
> (data), NULL, (GConnectFlags) 0)
>                                                             ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:589:9:
> note: in expansion of macro ‘G_CALLBACK’
>          G_CALLBACK (_xpp_plug_embedded), NULL); \
>          ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> In file included from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-plugin.h:28:0,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/xfce-panel-macros.h:28,
>                  from /usr/include/xfce4/libxfce4panel-2.0/
> libxfce4panel/libxfce4panel.h:29,
>                  from xfcetimer.c:42:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:596:16:
> warning: implicit declaration of function ‘gdk_screen_get_rgba_colormap’
> [-Wimplicit-function-declaration]
>      colormap = gdk_screen_get_rgba_colormap (screen); \
>                 ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:596:14:
> warning: assignment makes pointer from integer without a cast
> [-Wint-conversion]
>      colormap = gdk_screen_get_rgba_colormap (screen); \
>               ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:598:7:
> warning: implicit declaration of function ‘gtk_widget_set_colormap’
> [-Wimplicit-function-declaration]
>        gtk_widget_set_colormap (plug, colormap); \
>        ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> In file included from /usr/include/glib-2.0/gobject/gobject.h:28:0,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
>                  from /usr/include/glib-2.0/glib-object.h:23,
>                  from /usr/include/glib-2.0/gio/gioenums.h:28,
>                  from /usr/include/glib-2.0/gio/giotypes.h:28,
>                  from /usr/include/glib-2.0/gio/gio.h:26,
>                  from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
>                  from /usr/include/gtk-3.0/gdk/gdk.h:32,
>                  from /usr/include/gtk-3.0/gtk/gtk.h:30,
>                  from xfcetimer.c:36:
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:609:21:
> error: ‘_xpp_realize’ undeclared (first use in this function)
>          G_CALLBACK (_xpp_realize), plug); \
>                      ^
> /usr/include/glib-2.0/gobject/gsignal.h:490:60: note: in definition of
> macro ‘g_signal_connect_after’
>      g_signal_connect_data ((instance), (detailed_signal), (c_handler),
> (data), NULL, G_CONNECT_AFTER)
>                                                             ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:609:9:
> note: in expansion of macro ‘G_CALLBACK’
>          G_CALLBACK (_xpp_realize), plug); \
>          ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:621:20:
> error: ‘_xpp_client_event’ undeclared (first use in this function)
>         G_CALLBACK (_xpp_client_event), xpp); \
>                     ^
> /usr/include/glib-2.0/gobject/gsignal.h:475:60: note: in definition of
> macro ‘g_signal_connect’
>      g_signal_connect_data ((instance), (detailed_signal), (c_handler),
> (data), NULL, (GConnectFlags) 0)
>                                                             ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:621:8:
> note: in expansion of macro ‘G_CALLBACK’
>         G_CALLBACK (_xpp_client_event), xpp); \
>         ^
> /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
> note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’
>      XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
>      ^
> xfcetimer.c:59:1: note: in expansion of macro ‘XFCE_PANEL_PLUGIN_REGISTER_
> EXTERNAL’
>  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
>  ^
> Makefile:547: recipe for target 'xfce4_timer-xfcetimer.o' failed
> make[2]: *** [xfce4_timer-xfcetimer.o] Error 1
> make[2]: Leaving directory '/home/usuario/pro_linux_c/
> xfce4-timer-plugin_meu_gtk3/src'
> Makefile:471: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/home/usuario/pro_linux_c/
> xfce4-timer-plugin_meu_gtk3'
> Makefile:403: recipe for target 'all' failed
> make: *** [all] Error 2
>
> Very thanks!
>
> --
> Dani
>
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce4-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20170503/69339b14/attachment-0001.html>


More information about the Xfce4-dev mailing list