Port xfce4-timer-plugin to gtk3

Dani dani at damufo.com
Sun Apr 30 23:07:34 CEST 2017


Hello:

I'm trying to port code from xfce4-timer-plugin to gtk3.

At this time I get the following errors which do not give rise to found, 
someone knows what I can be doing wrong?

When I execute make, I have this output:
$ 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:41:
/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:58: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:58: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:58: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:41:
/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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:41:
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:58: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:58: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:58: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:58: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:58: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:58: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:58: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:41:
/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:58: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:58: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:58: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:58: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:58:1: note: in expansion of macro 
‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL’
  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL( create_plugin_control);
  ^
xfcetimer.c: In function ‘update_function’:
xfcetimer.c:196:5: warning: format not a string literal and no format 
arguments [-Wformat-security]
      GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, dialog_message);
      ^
xfcetimer.c: In function ‘add_edit_clicked’:
xfcetimer.c:890:2: warning: implicit declaration of function 
‘gtk_button_box_set_spacing’ [-Wimplicit-function-declaration]
   gtk_button_box_set_spacing(GTK_BUTTON_BOX(hbox), BORDER);
   ^
xfcetimer.c: In function ‘add_pbar’:
xfcetimer.c:1094:3: warning: implicit declaration of function 
‘gtk_progress_bar_set_bar_style’ [-Wimplicit-function-declaration]
    gtk_progress_bar_set_bar_style(GTK_PROGRESS_BAR(pd->pbar),
    ^
xfcetimer.c:1095:5: error: ‘GTK_PROGRESS_CONTINUOUS’ undeclared (first 
use in this function)
      GTK_PROGRESS_CONTINUOUS);
      ^
xfcetimer.c:1109:3: warning: implicit declaration of function 
‘gtk_progress_bar_set_orientation’ [-Wimplicit-function-declaration]
    gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(pd->pbar),
    ^
xfcetimer.c:1110:5: error: ‘GTK_PROGRESS_BOTTOM_TO_TOP’ undeclared 
(first use in this function)
      GTK_PROGRESS_BOTTOM_TO_TOP);
      ^
xfcetimer.c:1127:5: error: ‘GTK_PROGRESS_LEFT_TO_RIGHT’ undeclared 
(first use in this function)
      GTK_PROGRESS_LEFT_TO_RIGHT);
      ^
xfcetimer.c: In function ‘load_settings’:
xfcetimer.c:1173:4: warning: implicit declaration of function 
‘g_sprintf’ [-Wimplicit-function-declaration]
     g_sprintf(groupname, "G0");
     ^
xfcetimer.c: In function ‘create_plugin_control’:
xfcetimer.c:1849:4: error: ‘GTK_PROGRESS_CONTINUOUS’ undeclared (first 
use in this function)
     GTK_PROGRESS_CONTINUOUS);
     ^
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


End console

Very thanks!




On 30/04/17 13:47, Dani wrote:
>
> On 30/04/17 12:17, Dani wrote:
>> Hello:
>> I rename subject
>>
>> On 29/04/17 21:43, Matthew Brush wrote:
>>> On 2017-04-29 03:24 AM, Dani wrote:
>>>> [...]
>>>> Another thing
>>>>
>>>> When I execute ./autogen.sh
>>>>
>>>> The file, makefile, on line 266 (Refers to gtk2)
>>>>
>>>> LIBXFCE4PANEL_CFLAGS = -pthread -I/usr/include/xfce4/libxfce4panel-1.0
>>>> -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include
>>>> -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
>>>> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
>>>> -I/usr/include/pixman-1 -I/usr/include/libpng12
>>>> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12
>>>> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
>>>> -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/xfce4
>>>> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
>>>>
>>>> Is this correct?
>>>>
>>>
>>> No, you need to make sure libxfce4panel is building against GTK+3 as 
>>> well. It looks like the git master branch does by default, but I'm 
>>> not sure if that's what you're building against.
>>>
>> Sorry, at this point I do not know what to do.
>> I searched in master xfce git and did not find the libxfce4 in gtk3
>> Can you tell me where to go/continue?
> In configure.in.in I changed lines:
> XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.8.0], [has4ui=true] 
> , [XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.2.0], 
> [has4ui=false])])
> XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.3.20])
> XDT_CHECK_OPTIONAL_PACKAGE([XFCE48], [libxfce4panel-1.0], [4.8.0])
>
> for
>
> XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.1], 
> [has4ui=true] , [XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-2.0], 
> [4.12.1], [has4ui=false])])
>
> XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-2.0], [4.12.0])
> XDT_CHECK_OPTIONAL_PACKAGE([XFCE48], [libxfce4panel-2.0], [4.12.0])
>
>
> Now it seems that everything has already generated gtk3.
> :-)
>
>>>> xfce4_timer-xfcetimer.o: In function `plugin_create_options':
>>>> /home/usuario/pro_linux_c/xfce4-timer-plugin_meu_gtk3/src/xfcetimer.c:1615: 
>>>>
>>>> undefined reference to `gtk_button_box_new'
>>>
>>> That's your error right there. As you said above, it's building 
>>> against GTK+2 still, but `gtk_button_box_new` is only available 
>>> since GTK+ 3.0. This should go away once you get all your 
>>> dependencies also building against GTK+ 3.
>> My goal is port to gtk3.
>
>
>>>
>>> Regards,
>>> Matthew Brush
>>>
>>> _______________________________________________
>>> Xfce4-dev mailing list
>>> Xfce4-dev at xfce.org
>>> https://mail.xfce.org/mailman/listinfo/xfce4-dev
>>
>>
>> _______________________________________________
>> Xfce4-dev mailing list
>> Xfce4-dev at xfce.org
>> https://mail.xfce.org/mailman/listinfo/xfce4-dev
>
>
>
> _______________________________________________
> 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/20170430/1b1ed7ef/attachment-0001.html>


More information about the Xfce4-dev mailing list