-
Notifications
You must be signed in to change notification settings - Fork 137
Devel GTK
If you are new to or want to learn SWT-GTK development, please see the comprehensive SWT-GTK development guide
- Compiling various versions of GTK
- JHBuild : Compile newest GTK+ versions and it's dependencies with with jhbuild
- Defining a version specific GTK macro to prevent compilation errors
- Using locally compiled GTK libraries with native GTK snippets
- Eliminating "sentinel" warnings on SWT JNI compilation
- os_custom development (SwtFixed implementation)
- For GTK related Equinox launcher information, refer to the Equinox documentation.
- Finding which version of GTK your Eclipse runs on
- Enabling icons in menus, buttons, and more in GNOME3
- Determining what version of GTK shipped with Fedora
- GNOME documentation on changes from GTK2 to GTK3
- How to fix massive import errors after repository reset
- Fix "missing gtk-*.so" file errors when launching a child Eclipse
Wayland (wiki) is a rendering engine, intended to be a replacement for X Window System (wiki).
In Fedora 21+, you can run things on Wayland. There are several ways:
Log out and then on the logon screen, click on the gear icon and select "Gnome Wayland". See example screenshot. As of 4.8 Eclipse is very usable on Wayland full time, barring a few smaller issues.
Alternatively, you can press Ctl+Alt+F3 etc.. to launch a virtual console. You login with your own user. Then run Gnome Wayland via:
gnome-session --session gnome-wayland
You may find sometimes that Wayland with GNOME becomes unresponsive. In this case, switch back to your original virtual terminal (using Ctlr + Alt + F[1,2,3,4...]).
Running the following command will give you the PID of the process that needs to be killed in order to end the GNOME Wayland session:
ps aux | grep `<TTY_NUMBER>` | grep "gnome-session --session gnome-wayland" | grep -v dbus | awk '{print $2}' # where `<TTY_NUMBER>` is the tty Wayland is running on (i.e. tty[1,2,3,4...])
You can then kill it using:
sudo kill PID # where PID is the PID of process found from the step above
To make this a bit easier I have written a script that does this all in one step.
export PID="$(ps aux | grep $1 | grep "gnome-session --session gnome-wayland" | grep -v dbus | awk '{print $2}')"
kill $PID
Simply run the script using:
kill_gnome_wayland `<TTY_NUMBER>` # where `<TTY_NUMBER>` is the tty Wayland is running on (i.e. tty[1,2,3,4...])
Note: to kill the process you may/may not need to use sudo.
Wayland has a notion of XWayland. This is so that you can run GTK2 apps on Wayland. Since Wayland and X applications look almost the same, it's tricky to tell them apart.
There are several ways to tell.
- Launch Gtk Inspector. Under "General" tab, look under "GDK Backend".
- Launch looking glass "lg", top left click on "Windows" Tab, then click on one of the applications in the list, inspect 'Gtype'. E.g
Gtype:MetaWindowX11 # X11
Gtype:MetaWindowWayland # Wayland
These are pages mostly for special interest.
- Useful tools/shortcuts within Eclipse to make SWT development easier Useful Eclipse Shortcuts
- SWT tagged posts on Leo's blog: CoffeeOrientedProgramming.com
- How to update Fedora Eclipse to from stable to rawhide Eclipse to Rawhide
- Introduction to bash scripting Bash for Beginners Guide