Code Monkey home page Code Monkey logo

Comments (5)

wbrenna avatar wbrenna commented on May 20, 2024

This was accidentally closed. The deprecated calls are mostly:

g_mutex_new();
g_mutex_free(GMutex*);
g_cond_new();
g_cond_free(GCond*);
gdk_pixbuf_unref(GdkPixBuf*);
g_thread_init(gpointer);

from xournalpp.

wbrenna avatar wbrenna commented on May 20, 2024

I think eventually gdk_threads_enter() and gdk_threads_leave() will be deprecated. Therefore I think this enhancement should be labelled "support gtk3+". Not in this milestone but hopefully in the next year :)

from xournalpp.

wbrenna avatar wbrenna commented on May 20, 2024

This has been partially updated through the pull request of x2b. I've put the most cutting edge work in the branch gtk3 - please use that branch if you're going to work on gtk3+ support!

from xournalpp.

wbrenna avatar wbrenna commented on May 20, 2024

I've done some more research into what needs to be done. This list is incomplete and may be updated as we go, but:

  • Change gtk+-2.0 to gtk+-3.0 in configure.ac
  • Figure out how to get rid of the <gdk/gdktypes.h> header (GTK3 only supports a few headers)
  • Migrate from libglade-2.0 to GTKBuilder (libglade3 does not seem to be supported by e.g. Ubuntu 13.10, but it can be used to convert .glade files to GTKBuilder files, the recommended step)
  • Change GDK_* keys to GDK_KEY_* (e.g. GDK_Home needs to be updated)
  • gdk_drawable has been retired: src/util/Util.cpp: gdk_drawable_set_colormap(GDK_DRAWABLE (pixmap), will need to be updated to a gdk_window call, I think. See https://developer.gnome.org/gtk3/stable/ch24s02.html#id-1.6.3.4.6.

Since this won't be backwards compatible and likely won't compile for a while, I've created a branch gtk3. Please use this branch if you want to experiment!

from xournalpp.

andreasb242 avatar andreasb242 commented on May 20, 2024

Master is now at GTK3

from xournalpp.

Related Issues (20)

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.