Porting panel plugins to Gtk3
mbrush at codebrainz.ca
Wed Jun 1 02:35:25 CEST 2016
Once his account is setup, would you be able to give André push access
on the Mousepad repository too? I have push access but I don't think I
can give it to others or if I can, I don't know how.
On 2016-05-31 01:19 PM, André Miranda wrote:
> Hi Landry,
> Yes, I'd like to be the maintainer of this plugin, but I don't have a @
> xfce.org mail, it could be andre at xfce.org or andre.miranda at xfce.org.
> Do you guys also need my SSH public key?
> André Miranda
> On Tue, May 31, 2016 at 4:15 PM, Landry Breuil <landry.breuil at gmail.com>
>> harald judt (who was maintaining it so far) is fine with merging this
>> - if you want to be the new maintainer of that plugin, mail accounts
>> at xfce.org so that we can set you up your git account so that you can
>> merge/push things to git.xfce.org yourself :)
>> On Fri, May 27, 2016 at 1:28 AM, André Miranda <andreldm1989 at gmail.com>
>>> Hello there guys,
>>> Thanks to Landry's very descriptive commits, I was able to port Xfce
>>> single most important plugin: Xfce4-Eyes-Plugin!
>>> Jokes apart, I just wanted to try it out with a simple plugin before
>>> Here is code: https://github.com/andreldm/xfce4-eyes-plugin
>>> (how convenient a push request would be...)
>>> André Miranda
>>> On Sun, May 1, 2016 at 9:02 AM, Landry Breuil <landry at xfce.org> wrote:
>>>> so, if we want to have Xfce 4.14 with Gtk+3 in a foreseeable future, at
>>>> some point porting has to resume/restart.. in the past days, i've spent
>>>> some time porting *some* of the panel plugins i *somewhat* maintain, and
>>>> here are some tips and tricks:
>>>> * i'm targetting Gtk+3 only, bye-bye Gtk+2. Technically it would be
>>>> doable to support both with some #ifdefs, but is there a point..
>>>> * i'm going for a feature-parity target first. No UI revamp, no
>>>> revolution. Ideally, i'd like to move dialog construction to .ui files
>>>> / GtkBuilder, that might come next. Same thing, using cairo drawing
>>>> instead of abusing progressbars for monitors/meters might be nice,
>>>> maybe next.
>>>> * devhelp is your friend to browse the Gtk+3 doc, as is
>>>> * there's an ongoing discussion to know if we finally target 3.14 or
>>>> 3.20, as there are some 'breaking' changes wrt styling in >= 3.16 with
>>>> css providers (see
>>>> * styling that worked in 3.14 is considered deprecated in 3.16/3.20, so
>>>> has to be #ifdef'ed, see for example
>>>> * most of the changes are mechanical, Replacing XfceHVBox /
>>>> GtkHBox/GtkVBox by GtkBox, using GtkOrientable, replacing GtkTable by
>>>> GtkGrid, replacing GTK_STOCK* macros by their gtk equivalent names,
>>>> replacing GtkToggleButton/GtkCheckBox by GtkSwitch, replacing GdkColor
>>>> by GdkRGBA, usinc GtkCssProvider instead of setting bg/base colors.. all
>>>> this is documented in Gtk+3 doc when a widget is deprecated, and the
>>>> general migration doc is here :
>>>> So far, i've ported over the following plugins (have a look at the
>>>> commits to see what changes are needed):
>>>> Not everything is perfect, but things are moving nicely.
>>>> To 'compare' gtk2 and gtk3 version and have both in the same panel, i
>>>> use the following trick (for a 'foo' panel plugin):
>>>> * in /usr/share/xfce4/panel/plugins/, copy foo.desktop to
>>>> * in foo-git.desktop, only keep untranslated Name/Comment and append
>>>> 'git' to Name to differentiate plugins
>>>> * append X-XFCE-API=2.0 to foo-git.desktop
>>>> * append '-git' to X-XFCE-Module line
>>>> * symlink path/to/my/workdir/panel-plugin/.libs/libfoo.so to
>>>> xfce4-panel -a should allow you to load the git version of the plugin,
>>>> without overwriting the 'released' gtk2 version.
>>>> Mandatory screenshots using clearklooks theme, one with gtk3 versions
>>>> http://i.imgur.com/UwZEaGN.png (not all the checkbox are migrated to
>>>> gtkswitch, and i know systemload dialog is a bit huge...)
>>>> and the same thing with the last release of the same plugins
>>>> http://i.imgur.com/aS44yQV.png and the two panels with the same plugins
>>>> loaded using default config. Okay, progressbars dont look the same,
>>>> buttons might be a git bigger...
>>>> All that to say that it's an easy task for someone who wants to start
>>>> playing with gtk code and porting to gtk3 - all help on this is welcome!
>>>> If there's a plugin you use and care about, and that looks
>>>> abandoned/unmaintained, grab the git master, try to apply the same
>>>> changes, and post patches to bugzilla/the list.
>>>> Of course, feedback, criticism and testing are welcome! I've only tested
>>>> those changes on my OpenBSD desktop with Gtk 3.20.3..
>>>> Xfce4-dev mailing list
>>>> Xfce4-dev at xfce.org
>>> Xfce4-dev mailing list
>>> Xfce4-dev at xfce.org
>> Xfce4-dev mailing list
>> Xfce4-dev at xfce.org
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
More information about the Xfce4-dev