Questions tagged [gtkmm]

gtkmm is the official C++ interface for the GUI library GTK+.

is a GUI library written in C, gtkmm is its official binding to C++.

External links:

958 questions
7
votes
1 answer

Gtk Move window beyond constraints

I am currently writing a gtk program that uses a custom title bar (i.e., it is not being decorated by the window manager). But since using a custom title bar also disables support of dragging the window around, I wrote my custom drag function which…
tagelicht
  • 467
  • 3
  • 14
7
votes
0 answers

How to use Qt widgets in a plugin for a Gtkmm based application?

I develop a Gtkmm based application, which can be extended through a plugin mecanism. Each plugin must define a show() method void MyExtension::show() { // here the code of the extension } I am trying to develop a plugin that uses Qt widgets. I…
7
votes
4 answers

is GTK 3.x a real cross-platform solution?

I have tasted both Qt 4.x/5.x and GTKmm 3.x and I really like GTKmm over Qt. Now I have just discovered that GTKmm 3.x doesn't offer a Windows porting, they also do not offer a Mac porting, basically I can't find nothing but…
user1824407
  • 4,401
  • 4
  • 15
  • 20
7
votes
3 answers

gtkmm/c++ first hello world example leaking memory

I'm trying to learn gtkmm, and decided to try gtkmm 2.4 for the time being since it seems to be pretty hard to get 3.0 working on Debian. Anyway, the example I'm trying is the one here:…
lfxgroove
  • 3,778
  • 2
  • 23
  • 33
7
votes
2 answers

Destructing Glib::RefPtr causes failed assertions in the GTK 3 core

The guys from Gtkmm are comparing Glib::RefPtr with std::auto_ptr<>: Glib::RefPtr is a smartpointer. Specifically, it is a reference-counting smartpointer. You might be familiar with std::auto_ptr<>, which is also a smartpointer, but Glib::RefPtr<>…
glitto
  • 166
  • 7
6
votes
1 answer

Implementing a GObject interface in C++

I try to implement a GType interface in C++ using Glibmm (part of Gtkmm). The object will be passed to an API in C. Unfortunately, the documentation for gtkmm does not cover many details of how it wraps the GObject system. What I have so far: class…
Meinersbur
  • 7,881
  • 1
  • 27
  • 29
6
votes
0 answers

How to develop GTK app with Vulkan for Linux?

I'd like to develop an application targeting modern popular Linux distributions that uses GTK for its UI, but also the Vulkan API to render a 3D model. Ideally I'd like to use the gtkmm C++ wrapper for GTK, and the Vulkan C++ API. What ways do I…
Filipp
  • 1,843
  • 12
  • 26
6
votes
1 answer

GtkOverlay not passing through input events

The GtkOverlay widget has a special set_overlay_pass_through method to pass inputs through to underlying overlays. I want to use this feature to overlay a GtkDrawingArea over the UI to add drawings. Unfortunately, it does not work for me, no input…
tly
  • 1,202
  • 14
  • 17
6
votes
1 answer

gtkmm 3 windows 64 bit

I don't suppose anyone has managed to build gtkmm 3 for windows 64 bit, or knows of a good build? There are around 3-4 links on google where people have tried that, but for various reasons I can't get any of them working. Either the pkg-config…
badger5000
  • 650
  • 7
  • 17
5
votes
1 answer

How to build a tree in GTK4 (>= 4.10)

As the document said, TreeView in GTK4 has been deprecated since 4.10. The recommended replacement for it is ColumnView. However, I can't find clear documentation or example about how to build a treeView-like widget in GTK4 by ColumnView. I found…
Dorbmon
  • 115
  • 1
  • 5
5
votes
4 answers

Any way to speed up/reduce CPU usage when drawing with Cairo?

I wrote an app that uses Cairo to draw things on screen (on a Gtk::DrawingArea, to be exact). It needs to redraw everything frequently. It turns out, that despite the draphics drawn are very simple, the X server uses LOTS of CPU when redrawing, and…
rafalcieslak
  • 915
  • 1
  • 12
  • 25
5
votes
3 answers

Detect click on Gtk::Image?

I've been trying to detect click on a Gtk::Image with gtkmm for over 2 hours, but I couldn't get it to work. It does compile and execute fine, but the event is never triggered. Some stuff I tried, that compiles, does not crash, but doesn't…
pictuga
  • 143
  • 2
  • 8
5
votes
0 answers

How to make a draggable GTK widget that will drop a file in other programs

I want to make a GTK widget, when dragged and dropped in another program, will act as if a file was dropped (behaving the same way as dragging a file from Nautilus). I have tried 3 different ways of setting the drag data in the callback, but nothing…
Tyilo
  • 28,998
  • 40
  • 113
  • 198
5
votes
1 answer

Unable to get height/width of a widget - gtkmm

I'm writing an application using gtkmm. I wrote a simple widget class, that I want to display in the application's main window only in some cases. Otherwise, I would like a Label "disabled" to be visible. To achieve that I packed both the widget…
rafalcieslak
  • 915
  • 1
  • 12
  • 25
5
votes
1 answer

GLib-GObject-CRITICAL ... assertion 'quark > 0' failed

I'm fairly new to Gtk programming. I'm using the Gtkmm library to write a simple GUI for my application. The GUI is part of a larger application, which actually compiles to two separate executables, however I don't believe this is relevant since…
Jacob Garby
  • 773
  • 7
  • 22
1
2
3
63 64