If you are a GTK/SWT developer and want to be involved in SWT Triage,
Then you should read:
It is also useful to subscribe to the swt-platform email in bugzilla.
This way you’ll get emails for new SWT bugs and comment update on un-assigned bugs.
To do this, go to bugzilla, -> Preferences -> Email preferences
-> “Add users to my watch list” , add: email@example.com
The only trouble is that you’ll get emails for all platforms (Windows/Mac/Linux) and you’ll have to create some filters for sorting things out. But in general I found that it’s good to be ‘aware’ of the issues that happen on windows/mac, as those sometimes occur on Linux also, or a bug labeled as ‘windows’ often impacts linux swt also.
As Eclipse developers, when troubleshooting Eclipse, it is sometimes important to figure out how parts of a U.I are constructed.
When developing SWT widgets, we need to test them on various GTK versions to ensure backwards compatibility.
There are some tricks and perks involved.
Get Gtk sources
Configure Eclipse to use the gtk you compiled
- Edit your run-configuration of the code snippet that you want to run.
- Navigate to “Environmental Variables”
- Click on “Add”, type in:
path: #your_compiled_gtk //e.g /home/lufimtse/src/gtk3_10/gtk/.libs
- Name your configuration (I reccomend appending gtk version, e.g “ControlExample (g3-10)”)
- It should look something like this:
- Now run the configuration and you should see your application rendered in gtk*.*.
You may note that it won’t have any styling:
- The lack of styling is due to the fact that there is no theaming.
Now sometimes you might want the compiled gtk to use your system theame to see impact of themes on looks.
To do so, do as above except run the configuration as following:
./configure --prefix=/usr --sysconfdir=/etc --enable-broadway-backend --enable-x11-backend --disable-wayland-backend
In the interest of comparison: (left native look, right bare look)
- Lastly, in your source code, you might want to verify that you’re running the compiled gtk and not your own. Use this line of code:
System.out.println("GTK Version: " + OS.gtk_major_version() + "." + OS.gtk_minor_version() + "." + OS.gtk_micro_version());
Making a gtk3 application in eclipse can be somewhat tricky as one has to fix dependencies.
Lemme show you how to do it: