How to use debug libraries on ubuntu

TL;DR: Install libwebkitgtk-3.0-0-dbg , then you have the necessary debug symbols. ##For debug symbols, you don’t usually have to install from source. As you know, to get debug symbols for software you’re building yourself, you can run GCC with -g. For software installed through your operating system’s package manager (which includes libwebkitgtk-3.0-0, here), at least … Read more

Memory Leaks in GTK hello_world program

This answer is compiled from answers to the same question (on the now defunct www.gtkforums.com). GTK+ is pretty lazy when it comes to allocating and deallocating internal buffers needed for the life time of the application. For example it may allocate an area of memory for a lookup table during initialisation which is needed for … Read more

Where can I download precompiled GTK+ 3 binaries or windows installer? [closed]

2020-03-19 update: GTK+ dropped the + and their website has been rewritten. So the install instructions for GTK on Windows are now at https://www.gtk.org/docs/installations/windows/ 2017-04-07 update: To make it clear, since 2017-06-23, the GTK+ project doesn’t provide binary bundles for Windows. These are now provided by the MSYS2 project, with the blessing of the GTK+ … Read more

How to make Gtk+ window background transparent?

I changed the alphademo example to draw a button instead of the red circle. This application draws the button on a 400×400 transparent window. When you click on the window the application shows/hides the title bar. #include <gtk/gtk.h> #include <gdk/gdkscreen.h> #include <cairo.h> static void screen_changed(GtkWidget *widget, GdkScreen *old_screen, gpointer user_data); static gboolean expose(GtkWidget *widget, GdkEventExpose … Read more