Code Monkey home page Code Monkey logo

Comments (11)

Hawk777 avatar Hawk777 commented on July 3, 2024

Actually, it ended up being very trivial, and the code might even work with both 2 and 3 now, if you can still obtain a GTK+2 version of XFCE, so I’ll just make the PR.

from xfce4-kbdleds-plugin.

oco2000 avatar oco2000 commented on July 3, 2024

Are you sure this is enough?
Can you point me to some docs how to port GTK2 XFCE apps to GTK3?

from xfce4-kbdleds-plugin.

oco2000 avatar oco2000 commented on July 3, 2024

At least what can I see right now, we should bump GTK version in configure.ac.in

from xfce4-kbdleds-plugin.

Hawk777 avatar Hawk777 commented on July 3, 2024

All I know is that I installed XFCE 4.16, made the change in this PR, compiled, and ran ldd on the output, and it was linked to v3 and not to v2 and worked fine.

Anyway the only mention I saw of GTK in configure.ac.in is behind a dnl; in M4 that’s a comment isn’t it?

from xfce4-kbdleds-plugin.

oco2000 avatar oco2000 commented on July 3, 2024

You are right, dnl is a comment.
Anyway I need some docs )
Will not merge it yet

from xfce4-kbdleds-plugin.

Hawk777 avatar Hawk777 commented on July 3, 2024

My understanding is that v3 largely removes stuff that was already deprecated in recent v2 as well as sealing data types, but yes, probably worth finding some more detailed information to see if there’s anything else important.

from xfce4-kbdleds-plugin.

oco2000 avatar oco2000 commented on July 3, 2024

I investigated a bit, and then saw your commit messages )

  • panel_slice_new0 is deprecated, but it is just a macros, that actually is replaced by g_slice_new0, see /usr/include/xfce4/libxfce4panel-2.0/libxfce4panel/xfce-panel-macros-46.h
  • libxfce4panel.h includes xfce-panel-plugin.h

So your PR does not resolve the migration to GTK3.

Actually the build from master branch on my PC also is linked to libgtk-3.so.0. Maybe it is checked during 'configure' step which GTK version is available.
I will merge #7 because it removes the deprecated code.

from xfce4-kbdleds-plugin.

oco2000 avatar oco2000 commented on July 3, 2024

Help in migrating is appreciated

from xfce4-kbdleds-plugin.

Hawk777 avatar Hawk777 commented on July 3, 2024

The choice of whether to link to 2 or 3 is made by which library is present in the Requires: lines in the XFCE library .pc files, I think; in other words, the kbdleds plugin is built with either 2 or 3 based on whether XFCE itself is built with 2 or 3. When XFCE is built with 3, kbdleds is linked only to the GTK+3 .so file. What other migration is there that needs to be done? As far as I can tell, kbdleds is now GTK+3 compatible, isn’t it? Unless you mean also taking advantage of GTK+3-exclusive new features?

from xfce4-kbdleds-plugin.

oco2000 avatar oco2000 commented on July 3, 2024

Yes, I think it is compatible, if it links with libgtk3 and runs.
Maybe we should take some additional required steps that we don't know about.

from xfce4-kbdleds-plugin.

oco2000 avatar oco2000 commented on July 3, 2024

Closing due to inactivity

from xfce4-kbdleds-plugin.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.