Compile xfce4-timer-plugin

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Compile xfce4-timer-plugin

Dani
Hello:

(this is my first message on the list)

I have never compiled a plugin for xfce4, nor I am a C expert.

I would like to learn.

I'm trying to compile the xfce4-timer-plugin to do tests, learn... and of course suggest some improvement.

My system is Xubuntu 16.04

I downloaded the code here:
https://github.com/xfce-mirror/xfce4-timer-plugin

Now I try to compile
# ./configure

Seems to work fine

when
# make

it but I have stuck here:

xfcetimer.c: 41: 35: fatal error: libxfce4ui / libxfce4ui.h: No such file or directory

I installed libxfce4ui-1-dev (but not worked)

I sent a message to the plugin developer. I have not had an answer.

Can anyone help me?

Very thank you.



-- 
Dani

_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Baurzhan Muftakhidinov
Hi,

On Mon, Apr 3, 2017 at 12:08 PM, Dani <[hidden email]> wrote:
> Hello:
>
> (this is my first message on the list)
>
> I have never compiled a plugin for xfce4, nor I am a C expert.
>
> I would like to learn.

Great,

> I'm trying to compile the xfce4-timer-plugin to do tests, learn... and of
> course suggest some improvement.
>
> My system is Xubuntu 16.04
>
> I downloaded the code here:
> https://github.com/xfce-mirror/xfce4-timer-plugin
>
> Now I try to compile
> # ./configure
>
> Seems to work fine
>
> when
> # make
>
> it but I have stuck here:
> xfcetimer.c: 41: 35: fatal error: libxfce4ui / libxfce4ui.h: No such file or
> directory
>
> I installed libxfce4ui-1-dev (but not worked)
> I sent a message to the plugin developer. I have not had an answer.
>
> Can anyone help me?
>
> Very thank you.
>
>
>
> --
> Dani
>
>
> _______________________________________________
> Xfce4-dev mailing list
> [hidden email]
> https://mail.xfce.org/mailman/listinfo/xfce4-dev

You have to install build dependencies, in *ubuntu you can simply do

sudo apt-get build-dep xfce4-timer-plugin

HTH,
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani
Hello:

Dani

On 03/04/17 09:51, Baurzhan Muftakhidinov wrote:

> Hi,
>
> On Mon, Apr 3, 2017 at 12:08 PM, Dani <[hidden email]> wrote:
>> Hello:
>>
>> (this is my first message on the list)
>>
>> I have never compiled a plugin for xfce4, nor I am a C expert.
>>
>> I would like to learn.
> Great,
>
>> I'm trying to compile the xfce4-timer-plugin to do tests, learn... and of
>> course suggest some improvement.
>>
>> My system is Xubuntu 16.04
>>
>> I downloaded the code here:
>> https://github.com/xfce-mirror/xfce4-timer-plugin
>>
>> Now I try to compile
>> # ./configure
>>
>> Seems to work fine
>>
>> when
>> # make
>>
>> it but I have stuck here:
>> xfcetimer.c: 41: 35: fatal error: libxfce4ui / libxfce4ui.h: No such file or
>> directory
>>
>> I installed libxfce4ui-1-dev (but not worked)
>> I sent a message to the plugin developer. I have not had an answer.
>>
>> Can anyone help me?
>>
>> Very thank you.
>>
>>
>>
>> --
>> Dani
>>
> You have to install build dependencies, in *ubuntu you can simply do
>
> sudo apt-get build-dep xfce4-timer-plugin
>
> HTH,
No, I just installed it (install autopoint dh-autoreconf) and the error
persists.

Thank you for your help.

_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Simon Marchi
On 2017-04-03 05:00, Dani wrote:
> On 03/04/17 09:51, Baurzhan Muftakhidinov wrote:
>> You have to install build dependencies, in *ubuntu you can simply do
>>
>> sudo apt-get build-dep xfce4-timer-plugin
>>
>> HTH,
> No, I just installed it (install autopoint dh-autoreconf) and the
> error persists.

Hi Dani,

Did you use "apt-get build-dep xfce4-timer-plugin" as Baurzhan
suggested?  I've tried the following commands in an Ubuntu 16.04 Docker
container, and it built the plugin successfully:

# apt-get update
# apt-get install git
# apt-get build-dep xfce4-timer-plugin
# git clone https://github.com/xfce-mirror/xfce4-timer-plugin.git
# cd xfce4-timer-plugin
# ./autogen.sh
# make

On Debian / Ubuntu, using "apt-get build-dep" is the best way to get
everything needed to build a package.  But in the general case, if you
are missing for a particular header (.h) file, you can can do a package
search by filename on packages.ubuntu.com.  It will tell you which
package you need to install to get it.

Simon
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Francesco Pasa
In reply to this post by Dani
Hi!

I
​ tried, on my system I need to run ./autogen.sh and then make. Another thing I would try it to

locate libxfce4ui​

and check it's somewhere in the system (both header and dynamic library). Than I would check LIBRARAY_PATH is correctly set. Have you checked if there is a libxfce4ui-2-dev?

Have fun!

On 3 April 2017 at 12:00, <[hidden email]> wrote:
Send Xfce4-dev mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.xfce.org/mailman/listinfo/xfce4-dev
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xfce4-dev digest..."


Today's Topics:

   1. Compile xfce4-timer-plugin (Dani)
   2. Re: Compile xfce4-timer-plugin (Baurzhan Muftakhidinov)
   3. Re: Compile xfce4-timer-plugin (Dani)


----------------------------------------------------------------------

Message: 1
Date: Mon, 3 Apr 2017 09:08:20 +0200
From: Dani <[hidden email]>
To: [hidden email]
Subject: Compile xfce4-timer-plugin
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Hello:

(this is my first message on the list)

I have never compiled a plugin for xfce4, nor I am a C expert.

I would like to learn.

I'm trying to compile the xfce4-timer-plugin to do tests, learn... and
of course suggest some improvement.

My system is Xubuntu 16.04

I downloaded the code here:
https://github.com/xfce-mirror/xfce4-timer-plugin

Now I try to compile
# ./configure

Seems to work fine

when
# make

it but I have stuck here:
xfcetimer.c: 41: 35: fatal error: libxfce4ui / libxfce4ui.h: No such
file or directory

I installed libxfce4ui-1-dev (but not worked)
I sent a message to the plugin developer. I have not had an answer.

Can anyone help me?

Very thank you.



--
Dani

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20170403/34b8b3cc/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 3 Apr 2017 12:51:27 +0500
From: Baurzhan Muftakhidinov <[hidden email]>
To: Xfce development list <[hidden email]>
Subject: Re: Compile xfce4-timer-plugin
Message-ID:
        <CAFp4thSbQargDwJ-B2qKxByw5FHfPrb=[hidden email]>
Content-Type: text/plain; charset=UTF-8

Hi,

On Mon, Apr 3, 2017 at 12:08 PM, Dani <[hidden email]> wrote:
> Hello:
>
> (this is my first message on the list)
>
> I have never compiled a plugin for xfce4, nor I am a C expert.
>
> I would like to learn.

Great,

> I'm trying to compile the xfce4-timer-plugin to do tests, learn... and of
> course suggest some improvement.
>
> My system is Xubuntu 16.04
>
> I downloaded the code here:
> https://github.com/xfce-mirror/xfce4-timer-plugin
>
> Now I try to compile
> # ./configure
>
> Seems to work fine
>
> when
> # make
>
> it but I have stuck here:
> xfcetimer.c: 41: 35: fatal error: libxfce4ui / libxfce4ui.h: No such file or
> directory
>
> I installed libxfce4ui-1-dev (but not worked)
> I sent a message to the plugin developer. I have not had an answer.
>
> Can anyone help me?
>
> Very thank you.
>
>
>
> --
> Dani
>
>
> _______________________________________________
> Xfce4-dev mailing list
> [hidden email]
> https://mail.xfce.org/mailman/listinfo/xfce4-dev

You have to install build dependencies, in *ubuntu you can simply do

sudo apt-get build-dep xfce4-timer-plugin

HTH,


------------------------------

Message: 3
Date: Mon, 3 Apr 2017 11:00:13 +0200
From: Dani <[hidden email]>
To: Xfce development list <[hidden email]>
Subject: Re: Compile xfce4-timer-plugin
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hello:

Dani

On 03/04/17 09:51, Baurzhan Muftakhidinov wrote:
> Hi,
>
> On Mon, Apr 3, 2017 at 12:08 PM, Dani <[hidden email]> wrote:
>> Hello:
>>
>> (this is my first message on the list)
>>
>> I have never compiled a plugin for xfce4, nor I am a C expert.
>>
>> I would like to learn.
> Great,
>
>> I'm trying to compile the xfce4-timer-plugin to do tests, learn... and of
>> course suggest some improvement.
>>
>> My system is Xubuntu 16.04
>>
>> I downloaded the code here:
>> https://github.com/xfce-mirror/xfce4-timer-plugin
>>
>> Now I try to compile
>> # ./configure
>>
>> Seems to work fine
>>
>> when
>> # make
>>
>> it but I have stuck here:
>> xfcetimer.c: 41: 35: fatal error: libxfce4ui / libxfce4ui.h: No such file or
>> directory
>>
>> I installed libxfce4ui-1-dev (but not worked)
>> I sent a message to the plugin developer. I have not had an answer.
>>
>> Can anyone help me?
>>
>> Very thank you.
>>
>>
>>
>> --
>> Dani
>>
> You have to install build dependencies, in *ubuntu you can simply do
>
> sudo apt-get build-dep xfce4-timer-plugin
>
> HTH,
No, I just installed it (install autopoint dh-autoreconf) and the error
persists.

Thank you for your help.



------------------------------

Subject: Digest Footer

_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev

------------------------------

End of Xfce4-dev Digest, Vol 160, Issue 1
*****************************************


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani
In reply to this post by Dani

Dani

On 03/04/17 16:14, Simon Marchi wrote:

> On 2017-04-03 05:00, Dani wrote:
>>>> I'm trying to compile the xfce4-timer-plugin to do tests, learn...
>>>> and of
>>>> course suggest some improvement.
>>>>
>>>> My system is Xubuntu 16.04
>>>>
>>>> I downloaded the code here:
>>>> https://github.com/xfce-mirror/xfce4-timer-plugin
>>>>
>>>> Now I try to compile
>>>> # ./configure
>>>>
>>>> Seems to work fine
>>>>
>>>> when
>>>> # make
>>>>
>>>> it but I have stuck here:
>>>> xfcetimer.c: 41: 35: fatal error: libxfce4ui / libxfce4ui.h: No
>>>> such file or
>>>> directory
>>>>
>>>> I installed libxfce4ui-1-dev (but not worked)
>>>> I sent a message to the plugin developer. I have not had an answer.
>>>>
>>>> Can anyone help me?
>>>>
>>>> Very thank you.
>>>>
>>>>
>>>>
>>>> --
>>>> Dani
>>>>
>>> You have to install build dependencies, in *ubuntu you can simply do
>>>
>>> sudo apt-get build-dep xfce4-timer-plugin
>>>
>>> HTH,
>> No, I just installed it (install autopoint dh-autoreconf) and the
>> error persists.
>
> Hi Dani,
>
> Did you use "apt-get build-dep xfce4-timer-plugin" as Baurzhan
> suggested?  I've tried the following commands in an Ubuntu 16.04
> Docker container, and it built the plugin successfully:
>
> # apt-get update
> # apt-get install git
> # apt-get build-dep xfce4-timer-plugin
> # git clone https://github.com/xfce-mirror/xfce4-timer-plugin.git
> # cd xfce4-timer-plugin
> # ./autogen.sh
> # make
>
> On Debian / Ubuntu, using "apt-get build-dep" is the best way to get
> everything needed to build a package.  But in the general case, if you
> are missing for a particular header (.h) file, you can can do a
> package search by filename on packages.ubuntu.com. It will tell you
> which package you need to install to get it.
>
> Simon
>
Hello:

I did what Simon has indicated and worked well.

My error was in not running make as root.

Thank you very much.


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Simon Marchi
On 2017-04-04 05:27, Dani wrote:
> Hello:
>
> I did what Simon has indicated and worked well.
>
> My error was in not running make as root.
>
> Thank you very much.

Hmm if you need to run make as root to make it work (unless it's make
install), you are doing something wrong.  Just do everything from the
start as your normal user and it should be fine.

Note that in my example I was running things as root, since I popped up
a Docker container to test it, and by default you are root.
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani

On 04/04/17 15:34, Simon Marchi wrote:
On 2017-04-04 05:27, Dani wrote:
Hello:

I did what Simon has indicated and worked well.

My error was in not running make as root.

Thank you very much.

Hmm if you need to run make as root to make it work (unless it's make install), you are doing something wrong.  Just do everything from the start as your normal user and it should be fine.

Note that in my example I was running things as root, since I popped up a Docker container to test it, and by default you are root.

Well I do not know what I can be doing wrong to make it work just being root.
The fact is that now also works without being root.

I think that running it once as root should have put something in its place and so it now works without being root, as it should have done from the beginning.

Very thanks.

_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani
Hello:

I been working in xfce4timer-plugin.
I would suggest any improvements.
How can I do to send the code with these improvements?
In this list? Another channel?
I'm sorry, I'm new and did not how to do.

The improvements are:
1. Add "keep above" for Beep window

2. When paused show other timers.

3. Add icon for main properties window, to show on apps bar.

4. The secondary window (add/edit timers)  now is a dialog, when is open no new icon on apps bar.

5. Made a new icon for application (really this is not an improvement is a proposal), and added size 32.

I have made these changes and working on my PC.

Very thanks.


On 05/04/17 05:46, Dani wrote:

On 04/04/17 15:34, Simon Marchi wrote:
On 2017-04-04 05:27, Dani wrote:
Hello:

I did what Simon has indicated and worked well.

My error was in not running make as root.

Thank you very much.

Hmm if you need to run make as root to make it work (unless it's make install), you are doing something wrong.  Just do everything from the start as your normal user and it should be fine.

Note that in my example I was running things as root, since I popped up a Docker container to test it, and by default you are root.

Well I do not know what I can be doing wrong to make it work just being root.
The fact is that now also works without being root.

I think that running it once as root should have put something in its place and so it now works without being root, as it should have done from the beginning.

Very thanks.


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Baurzhan Muftakhidinov
Hi,

It is nice to hear that. To send improvements you should
open a ticket on bugzilla.xfce.org and attach your patches,
one per change you've implemented.

Best regards,

On Fri, Apr 21, 2017 at 12:06 AM, Dani <[hidden email]> wrote:

> Hello:
>
> I been working in xfce4timer-plugin.
> I would suggest any improvements.
> How can I do to send the code with these improvements?
> In this list? Another channel?
> I'm sorry, I'm new and did not how to do.
>
> The improvements are:
> 1. Add "keep above" for Beep window
>
> 2. When paused show other timers.
>
> 3. Add icon for main properties window, to show on apps bar.
>
> 4. The secondary window (add/edit timers)  now is a dialog, when is open no
> new icon on apps bar.
>
> 5. Made a new icon for application (really this is not an improvement is a
> proposal), and added size 32.
>
> I have made these changes and working on my PC.
>
> Very thanks.
>
>
>
> On 05/04/17 05:46, Dani wrote:
>
>
> On 04/04/17 15:34, Simon Marchi wrote:
>
> On 2017-04-04 05:27, Dani wrote:
>
> Hello:
>
> I did what Simon has indicated and worked well.
>
> My error was in not running make as root.
>
> Thank you very much.
>
>
> Hmm if you need to run make as root to make it work (unless it's make
> install), you are doing something wrong.  Just do everything from the start
> as your normal user and it should be fine.
>
> Note that in my example I was running things as root, since I popped up a
> Docker container to test it, and by default you are root.
>
>
> Well I do not know what I can be doing wrong to make it work just being
> root.
> The fact is that now also works without being root.
>
> I think that running it once as root should have put something in its place
> and so it now works without being root, as it should have done from the
> beginning.
>
> Very thanks.
>
>
> _______________________________________________
> Xfce4-dev mailing list
> [hidden email]
> https://mail.xfce.org/mailman/listinfo/xfce4-dev
>
>
>
> _______________________________________________
> Xfce4-dev mailing list
> [hidden email]
> https://mail.xfce.org/mailman/listinfo/xfce4-dev
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani
On 21/04/17 10:21, Baurzhan Muftakhidinov wrote:
Hi,

It is nice to hear that. To send improvements you should
open a ticket on bugzilla.xfce.org and attach your patches,
one per change you've implemented.

Best regards,
OK.

Keep above
https://bugzilla.xfce.org/show_bug.cgi?id=13514

Window to dialog and main window icon
https://bugzilla.xfce.org/show_bug.cgi?id=13515

When paused show all menu timers
https://bugzilla.xfce.org/show_bug.cgi?id=13516

New icon, also add a new for 32px
https://bugzilla.xfce.org/show_bug.cgi?id=13517

I hope I have done well.
Very thanks

On Fri, Apr 21, 2017 at 12:06 AM, Dani [hidden email] wrote:
Hello:

I been working in xfce4timer-plugin.
I would suggest any improvements.
How can I do to send the code with these improvements?
In this list? Another channel?
I'm sorry, I'm new and did not how to do.

The improvements are:
1. Add "keep above" for Beep window

2. When paused show other timers.

3. Add icon for main properties window, to show on apps bar.

4. The secondary window (add/edit timers)  now is a dialog, when is open no
new icon on apps bar.

5. Made a new icon for application (really this is not an improvement is a
proposal), and added size 32.

I have made these changes and working on my PC.

Very thanks.



On 05/04/17 05:46, Dani wrote:


On 04/04/17 15:34, Simon Marchi wrote:

On 2017-04-04 05:27, Dani wrote:

Hello:

I did what Simon has indicated and worked well.

My error was in not running make as root.

Thank you very much.


Hmm if you need to run make as root to make it work (unless it's make
install), you are doing something wrong.  Just do everything from the start
as your normal user and it should be fine.

Note that in my example I was running things as root, since I popped up a
Docker container to test it, and by default you are root.


Well I do not know what I can be doing wrong to make it work just being
root.
The fact is that now also works without being root.

I think that running it once as root should have put something in its place
and so it now works without being root, as it should have done from the
beginning.

Very thanks.


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev



_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Landry Breuil-4
On Fri, Apr 21, 2017 at 4:01 PM, Dani <[hidden email]> wrote:

> On 21/04/17 10:21, Baurzhan Muftakhidinov wrote:
>
> Hi,
>
> It is nice to hear that. To send improvements you should
> open a ticket on bugzilla.xfce.org and attach your patches,
> one per change you've implemented.
>
> Best regards,
>
> OK.
>
> Keep above
> https://bugzilla.xfce.org/show_bug.cgi?id=13514
>
> Window to dialog and main window icon
> https://bugzilla.xfce.org/show_bug.cgi?id=13515
>
> When paused show all menu timers
> https://bugzilla.xfce.org/show_bug.cgi?id=13516
>
> New icon, also add a new for 32px
> https://bugzilla.xfce.org/show_bug.cgi?id=13517
>
> I hope I have done well.

Hi, and thanks for reporting all these ! Note that timer plugin hasnt
seen actual 'code' updates (only translations) since the 1.6.0 release
3 years ago, so if you don't hear back from the developer (Kemal Ilgar
Eroglu) don't hesitate to ping back here so that your work isnt lost,
another developer could look into it and apply them, or transfer you
maintainership if Kermal agrees.
The plugin could/should also be ported to Gtk+3 :)

Landry
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani
On 22/04/17 11:00, Landry Breuil wrote:

> On Fri, Apr 21, 2017 at 4:01 PM, Dani <[hidden email]> wrote:
>> On 21/04/17 10:21, Baurzhan Muftakhidinov wrote:
>>
>> Hi,
>>
>> It is nice to hear that. To send improvements you should
>> open a ticket on bugzilla.xfce.org and attach your patches,
>> one per change you've implemented.
>>
>> Best regards,
>>
>> OK.
>>
>> Keep above
>> https://bugzilla.xfce.org/show_bug.cgi?id=13514
>>
>> Window to dialog and main window icon
>> https://bugzilla.xfce.org/show_bug.cgi?id=13515
>>
>> When paused show all menu timers
>> https://bugzilla.xfce.org/show_bug.cgi?id=13516
>>
>> New icon, also add a new for 32px
>> https://bugzilla.xfce.org/show_bug.cgi?id=13517
>>
>> I hope I have done well.
> Hi, and thanks for reporting all these ! Note that timer plugin hasnt
> seen actual 'code' updates (only translations) since the 1.6.0 release
> 3 years ago, so if you don't hear back from the developer (Kemal Ilgar
> Eroglu) don't hesitate to ping back here so that your work isnt lost,
> another developer could look into it and apply them, or transfer you
> maintainership if Kermal agrees.
> The plugin could/should also be ported to Gtk+3 :)
>
> Landry
>
Hello:
Before of I contact xfce list I sent a email to Kemal (on March 29) but
no reply.
I wait to developer reply.






_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani
In reply to this post by Landry Breuil-4
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 configure.in.in the gtk version to:

XDT_CHECK_PACKAGE ([GTK], [gtk + -3.0], [3.18.9])

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)); \
...

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?

Thanks and apologies for being so new.

Dani
On 22/04/17 11:00, Landry Breuil wrote:
On Fri, Apr 21, 2017 at 4:01 PM, Dani [hidden email] wrote:
On 21/04/17 10:21, Baurzhan Muftakhidinov wrote:

Hi,

It is nice to hear that. To send improvements you should
open a ticket on bugzilla.xfce.org and attach your patches,
one per change you've implemented.

Best regards,

OK.

Keep above
https://bugzilla.xfce.org/show_bug.cgi?id=13514

Window to dialog and main window icon
https://bugzilla.xfce.org/show_bug.cgi?id=13515

When paused show all menu timers
https://bugzilla.xfce.org/show_bug.cgi?id=13516

New icon, also add a new for 32px
https://bugzilla.xfce.org/show_bug.cgi?id=13517

I hope I have done well.
Hi, and thanks for reporting all these ! Note that timer plugin hasnt
seen actual 'code' updates (only translations) since the 1.6.0 release
3 years ago, so if you don't hear back from the developer (Kemal Ilgar
Eroglu) don't hesitate to ping back here so that your work isnt lost,
another developer could look into it and apply them, or transfer you
maintainership if Kermal agrees.
The plugin could/should also be ported to Gtk+3 :)

Landry
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Matthew Brush
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 configure.in.in 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.

Regards,
Matthew Brush
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Dani
Hello
Dani
On 29/04/17 01:39, Matthew Brush wrote:
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 configure.in.in the gtk version to:

XDT_CHECK_PACKAGE ([GTK], [gtk + -3.0], [3.18.9])


That shouldn't work with spaces around the +
It does not have them, I think it was copying
This is my line 43 in configure.in.in
XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.18.9])


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?

I have to change something more in autogen.sh or configure.in.in or another file?


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.


Sorry, this is de full message:

$ 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-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
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/glib-2.0/gobject/gbinding.h:28,
                 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-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from xfcetimer.c:38:
xfcetimer.c: In function ‘_xpp_realize’:
/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)); \
                                                ^
/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-1.0/libxfce4panel/xfce-panel-macros-46.h:431:5: note: in expansion of macro ‘g_return_if_fail’
     g_return_if_fail (gtk_widget_get_realized (plug)); \
     ^
/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’
     XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL_FULL (construct_func, NULL, NULL)
     ^
xfcetimer.c:61: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-2.0/gtk/gtkcontainer.h:35:0,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from xfcetimer.c:38:
/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 *}’
 gboolean              gtk_widget_get_realized           (GtkWidget    *widget);
                       ^
xfcetimer.c: In function ‘update_function’:
xfcetimer.c:194:37: warning: format not a string literal and no format arguments [-Wformat-security]
                                     GTK_BUTTONS_NONE, dialog_message);
                                     ^
xfcetimer.c: In function ‘load_settings’:
xfcetimer.c:1187:11: warning: implicit declaration of function ‘g_sprintf’ [-Wimplicit-function-declaration]
           g_sprintf(groupname,"G0");
           ^
xfcetimer.c: In function ‘plugin_create_options’:
xfcetimer.c:1615:13: warning: implicit declaration of function ‘gtk_button_box_new’ [-Wimplicit-function-declaration]
   buttonbox=gtk_button_box_new(GTK_ORIENTATION_VERTICAL);
             ^
xfcetimer.c:1615:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   buttonbox=gtk_button_box_new(GTK_ORIENTATION_VERTICAL);
            ^
mv -f .deps/xfce4_timer-xfcetimer.Tpo .deps/xfce4_timer-xfcetimer.Po
/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 
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
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'
collect2: error: ld returned 1 exit status
Makefile:514: recipe for target 'xfce4-timer' failed
make[2]: *** [xfce4-timer] 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


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.

Very thanks!


Regards,
Matthew Brush
_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile xfce4-timer-plugin

Matthew Brush
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.

> 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.

Regards,
Matthew Brush

_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Port xfce4-timer-plugin to gtk3

Dani
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?
>> 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
> [hidden email]
> https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Port xfce4-timer-plugin to gtk3

Dani

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
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Port xfce4-timer-plugin to gtk3

Dani
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
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev



_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev


_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
12
Loading...