Compile xfce4-timer-plugin

Matthew Brush mbrush at
Sat Apr 29 01:39:37 CEST 2017

On 2017-04-28 03:31 PM, Dani wrote:
> Hello:
> I would like to port the xfce4-timer-plugin to gtk3.
> I have never done this, in fact I have never done things with gtk (so I
> learn).
> For this I have changed in the file the gtk version to:
> XDT_CHECK_PACKAGE ([GTK], [gtk + -3.0], [3.18.9])

That shouldn't work with spaces around the +

> After I've tried compiling, first exxecute
> ./autogen
> This seems to work
> I then execute
> Make
> Which gives the following error:
> /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]
> G_return_if_fail (gtk_widget_get_realized (plug)); \
> ...

What is the ... part?

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.

> This is where I get the doubt:
> Can I compile the xfce4-timer-plugin with gtk3 in my ubuntu 16.04?
> Is there any documentation on how to do this?

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.

Matthew Brush

More information about the Xfce4-dev mailing list