<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello<br>
    <pre class="moz-signature" cols="72">Dani</pre>
    <div class="moz-cite-prefix">On 29/04/17 01:39, Matthew Brush wrote:<br>
    </div>
    <blockquote
      cite="mid:dde34c06-c0c7-96e9-d325-aa88c0ba5eab@codebrainz.ca"
      type="cite">On 2017-04-28 03:31 PM, Dani wrote:
      <br>
      <blockquote type="cite">Hello:
        <br>
        <br>
        I would like to port the xfce4-timer-plugin to gtk3.
        <br>
        <br>
        I have never done this, in fact I have never done things with
        gtk (so I
        <br>
        learn).
        <br>
        <br>
        For this I have changed in the file configure.in.in the gtk
        version to:
        <br>
        <br>
        XDT_CHECK_PACKAGE ([GTK], [gtk + -3.0], [3.18.9])
        <br>
        <br>
      </blockquote>
      <br>
      That shouldn't work with spaces around the +
      <br>
    </blockquote>
    <span id="result_box" class="short_text" lang="en"><span class="">It
        does not have them, I think it was copying<br>
        This is my line 43 in configure.in.in<br>
        XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.18.9])<br>
        <br>
        <br>
        Another thing<br>
        <br>
      </span></span>When I execute ./autogen.sh<br>
    <br>
    The file, makefile, on line 266 (<span id="result_box" class=""
      lang="en"><span class="">Refers to gtk2</span></span>)<br>
    <br>
    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<br>
    <br>
    Is this correct?<br>
    <br>
    I have to change something more in autogen.sh or configure.in.in or
    another file?<br>
    <br>
    <blockquote
      cite="mid:dde34c06-c0c7-96e9-d325-aa88c0ba5eab@codebrainz.ca"
      type="cite">
      <br>
      <blockquote type="cite">After I've tried compiling, first exxecute
        <br>
        ./autogen
        <br>
        This seems to work
        <br>
        I then execute
        <br>
        Make
        <br>
        Which gives the following error:
        <br>
        <br>
/usr/include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-macros-46.h:431:48:
        <br>
        warning: passing argument 1 of 'gtk_widget_get_realized' from
        <br>
        incompatible pointer type [-Wincompatible-pointer-types]
        <br>
        G_return_if_fail (gtk_widget_get_realized (plug)); \
        <br>
        ...
        <br>
        <br>
      </blockquote>
      <br>
      What is the ... part?
      <br>
      <br>
      There's no G_return_if_fail macro AFAIK, and there's not enough
      information above to tell the problem, compiler should give more
      context like "note: in expansion of macro here" or such.
      <br>
      <br>
    </blockquote>
    <br>
    Sorry, this is de full message:<br>
    <br>
    $ make<br>
    make  all-recursive<br>
    make[1]: Entering directory
    '/home/usuario/pro_linux_c/xfce4-timer-plugin_meu_gtk3'<br>
    Making all in src<br>
    make[2]: Entering directory
    '/home/usuario/pro_linux_c/xfce4-timer-plugin_meu_gtk3/src'<br>
    gcc -DHAVE_CONFIG_H -I. -I..    -I.. -pthread
    -I/usr/include/xfce4/libxfce4ui-1 -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 -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-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
    -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<br>
    In file included from
    /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,<br>
                     from /usr/include/glib-2.0/glib/gtypes.h:32,<br>
                     from /usr/include/glib-2.0/glib/galloca.h:32,<br>
                     from /usr/include/glib-2.0/glib.h:30,<br>
                     from /usr/include/glib-2.0/gobject/gbinding.h:28,<br>
                     from /usr/include/glib-2.0/glib-object.h:23,<br>
                     from /usr/include/glib-2.0/gio/gioenums.h:28,<br>
                     from /usr/include/glib-2.0/gio/giotypes.h:28,<br>
                     from /usr/include/glib-2.0/gio/gio.h:26,<br>
                     from
    /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,<br>
                     from /usr/include/gtk-2.0/gdk/gdk.h:32,<br>
                     from /usr/include/gtk-2.0/gtk/gtk.h:32,<br>
                     from xfcetimer.c:38:<br>
    xfcetimer.c: In function ‘_xpp_realize’:<br>
/usr/include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-macros-46.h:431:48:
    warning: passing argument 1 of ‘gtk_widget_get_realized’ from
    incompatible pointer type [-Wincompatible-pointer-types]<br>
         g_return_if_fail (gtk_widget_get_realized (plug)); \<br>
                                                    ^<br>
    /usr/include/glib-2.0/glib/gmacros.h:370:8: note: in definition of
    macro ‘_G_BOOLEAN_EXPR’<br>
        if (expr)                                    \<br>
            ^<br>
    /usr/include/glib-2.0/glib/gmessages.h:368:9: note: in expansion of
    macro ‘G_LIKELY’<br>
          if G_LIKELY(expr) { } else            \<br>
             ^<br>
/usr/include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-macros-46.h:431:5:
    note: in expansion of macro ‘g_return_if_fail’<br>
         g_return_if_fail (gtk_widget_get_realized (plug)); \<br>
         ^<br>
/usr/include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-macros-46.h:221:5:
    note: in expansion of macro
    ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL’<br>
         XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL,
    NULL)<br>
         ^<br>
    xfcetimer.c:61:1: note: in expansion of macro
    ‘XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL’<br>
     XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);<br>
     ^<br>
    In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35:0,<br>
                     from /usr/include/gtk-2.0/gtk/gtkbin.h:35,<br>
                     from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,<br>
                     from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,<br>
                     from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,<br>
                     from /usr/include/gtk-2.0/gtk/gtk.h:33,<br>
                     from xfcetimer.c:38:<br>
    /usr/include/gtk-2.0/gtk/gtkwidget.h:981:23: note: expected
    ‘GtkWidget * {aka struct _GtkWidget *}’ but argument is of type
    ‘GtkPlug * {aka struct _GtkPlug *}’<br>
     gboolean              gtk_widget_get_realized          
    (GtkWidget    *widget);<br>
                           ^<br>
    xfcetimer.c: In function ‘update_function’:<br>
    xfcetimer.c:194:37: warning: format not a string literal and no
    format arguments [-Wformat-security]<br>
                                         GTK_BUTTONS_NONE,
    dialog_message);<br>
                                         ^<br>
    xfcetimer.c: In function ‘load_settings’:<br>
    xfcetimer.c:1187:11: warning: implicit declaration of function
    ‘g_sprintf’ [-Wimplicit-function-declaration]<br>
               g_sprintf(groupname,"G0");<br>
               ^<br>
    xfcetimer.c: In function ‘plugin_create_options’:<br>
    xfcetimer.c:1615:13: warning: implicit declaration of function
    ‘gtk_button_box_new’ [-Wimplicit-function-declaration]<br>
       buttonbox=gtk_button_box_new(GTK_ORIENTATION_VERTICAL);<br>
                 ^<br>
    xfcetimer.c:1615:12: warning: assignment makes pointer from integer
    without a cast [-Wint-conversion]<br>
       buttonbox=gtk_button_box_new(GTK_ORIENTATION_VERTICAL);<br>
                ^<br>
    mv -f .deps/xfce4_timer-xfcetimer.Tpo .deps/xfce4_timer-xfcetimer.Po<br>
    /bin/bash ../libtool  --tag=CC   --mode=link gcc -I.. -pthread
    -I/usr/include/xfce4/libxfce4ui-1 -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 -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-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
    -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -g -O2
    -lxfce4panel-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0
    -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0
    -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype
    -Wl,--export-dynamic -lgmodule-2.0 -pthread -lxfce4util -lglib-2.0
    -lxfce4util -lglib-2.0 -lxfce4ui-1 -lgtk-x11-2.0 -lgdk-x11-2.0
    -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
    -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype
    -lxfce4util -lglib-2.0  -o xfce4-timer xfce4_timer-xfcetimer.o  <br>
    libtool: link: gcc -I.. -pthread -I/usr/include/xfce4/libxfce4ui-1
    -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 -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-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
    -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -g -O2
    -Wl,--export-dynamic -pthread -o xfce4-timer
    xfce4_timer-xfcetimer.o  -lxfce4panel-1.0 -lgmodule-2.0 -lxfce4ui-1
    -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo
    -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
    -lfontconfig /usr/lib/x86_64-linux-gnu/libfreetype.so -lxfce4util
    -lglib-2.0 -pthread<br>
    xfce4_timer-xfcetimer.o: In function `plugin_create_options':<br>
/home/usuario/pro_linux_c/xfce4-timer-plugin_meu_gtk3/src/xfcetimer.c:1615:
    undefined reference to `gtk_button_box_new'<br>
    collect2: error: ld returned 1 exit status<br>
    Makefile:514: recipe for target 'xfce4-timer' failed<br>
    make[2]: *** [xfce4-timer] Error 1<br>
    make[2]: Leaving directory
    '/home/usuario/pro_linux_c/xfce4-timer-plugin_meu_gtk3/src'<br>
    Makefile:471: recipe for target 'all-recursive' failed<br>
    make[1]: *** [all-recursive] Error 1<br>
    make[1]: Leaving directory
    '/home/usuario/pro_linux_c/xfce4-timer-plugin_meu_gtk3'<br>
    Makefile:403: recipe for target 'all' failed<br>
    make: *** [all] Error 2<br>
    <br>
    <br>
    <blockquote
      cite="mid:dde34c06-c0c7-96e9-d325-aa88c0ba5eab@codebrainz.ca"
      type="cite">
      <blockquote type="cite">This is where I get the doubt:
        <br>
        Can I compile the xfce4-timer-plugin with gtk3 in my ubuntu
        16.04?
        <br>
        Is there any documentation on how to do this?
        <br>
        <br>
      </blockquote>
      <br>
      If it's not ported yet, it probably won't compile, but if your
      goal is porting it to GTK+3, then the first step is getting it to
      build by resolving all the errors you find, which it sounds like
      you're starting in the right direction.
      <br>
      <br>
    </blockquote>
    Very thanks!<br>
    <br>
    <br>
    <blockquote
      cite="mid:dde34c06-c0c7-96e9-d325-aa88c0ba5eab@codebrainz.ca"
      type="cite">Regards,
      <br>
      Matthew Brush
      <br>
      _______________________________________________
      <br>
      Xfce4-dev mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://mail.xfce.org/mailman/listinfo/xfce4-dev">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a><br>
    </blockquote>
    <br>
  </body>
</html>