Port xfce4-timer-plugin to gtk3

Dani dani at damufo.com
Sun Apr 30 13:47:35 CEST 2017


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20170430/90246af2/attachment.html>


More information about the Xfce4-dev mailing list