gtkmm is the official C++ interface for the popular GUI library GTK+. Use this tag for questions specifically targeted to version 3
Questions tagged [gtkmm3]
187 questions
3
votes
2 answers
GtKGLArea unable to create OpenGL 2.1 context
i'm currently working on a simple editor for my game engine project, while the project seems to run just fine on my main workstation ( GTX 650Ti with OpenGL 3.3+ support ) , but it'seems to be broken when im test it on my testing desktop ( GMA4500…

Rizkie Yudha Pratama
- 41
- 4
2
votes
1 answer
Where are stockId gtk image stored?
Where are stockId gtk image stored ?
I use gtkmm 3.24.5.
In gtkmm I display them as :
// Note: This code is deprecated Gtk::Image image(Gtk:Stock::Yes.id, ICON_SIZE_BUTTON);
I want to kown where image is stored on disk.

SVA522
- 57
- 3
2
votes
0 answers
Box include file unknown problem on gtkmm
I'm working on a gtkmm3.0 app on Ubuntu and OSX.
I tried to make my project in three different enviroments:
OSx Big Sur
Ubuntu 16.04.7 LTS
Ubuntu 20.04.2 LTS
On the first and last one, my project is building well with no warnings and no errors,…

João Lucas Gouveia
- 254
- 1
- 11
2
votes
2 answers
How to show shortcuts in ShortcutsWindow?
I would need a simple working example (using Gtkmm 3) of a ShortcutsWindow with just one ShortcutsShortcut that does not use a Gtk::Builder.
I have not been able to find such an example online. I am able to show window however shortcuts do not show.

Slawek
- 88
- 1
- 7
2
votes
1 answer
Using sigc::mem_fun by accesing parent of container
I'm trying to make a simple software with Gtkmm3.
I want to have a window with a grid inside. At a click on a button inside that grid, a method of the window should be triggered to delete the current grid and replace it with another one.
I'm able to…

dantarno
- 92
- 1
- 6
2
votes
2 answers
Is HelloWindow object deleted?
I created a sample GTKMM project on GNOME Builder. The great thing was that a sample hello world code was automatically generated for my sample project. Since C++ source files are organized into three parts:
Header file
Implementation file
Main…

Keyikedalube Ndang
- 331
- 2
- 13
2
votes
0 answers
Extremely bad Cairo performance when drawing many rectangles (C++, gtkmm)
I have created a CellGrid class for my cellular automaton, and I want to draw that grid using Cairo. The cell_grid.cpp code snippet below is my implementation of the on_draw() function override.
For this example, I have set width_ = height_ = 50 and…

darwin schuppan
- 33
- 5
2
votes
1 answer
Compile gtkmm program with command line?
I'm trying to run a gtkmm program in windows 10, I get errors when I compile even though I followed exactly the steps provided by the link attached below.
I installed MSYS2, I run all the commands and installed all the required packages using the…

maths soso
- 49
- 9
2
votes
1 answer
Initialize a Gtk::Window derived class with a Gtk::Builder
I have a Glade layout compiled into a gresource that I'm setting to a Gtk::Window object manually in my constructor. A simplified version of the code I'm using now would be:
MyClass::MyClass()
{
Gtk::Window *window;
…

Kagetsuki
- 309
- 2
- 18
2
votes
1 answer
How can I connect a Gtkmm signal to a fuction in another class?
I am new to c++ and Gtkmm3. I need to set signal in another class, how would I do that with out loading the class with the function in the class with the widget.
I dont want to reload the whole of FixedLayout in ButtonBox
in class ButtonBox I dont…

Trap Scream
- 33
- 3
2
votes
1 answer
Which Gtk container signal detects that a mouse pointer is on top of the widget?
I have a Grid container with 4 buttons. I need to catch a signal that can recognize that a mouse pointer is hovering on top of a Button. I don't want to click a button yet. I just want to detect pointer presence.

Devab LLC
- 115
- 1
- 8
2
votes
0 answers
How can I stop a GestureDrag from resetting coordinates?
I am trying to move a Gtk::Button in Gtk::Fixed like a Gtk::Window would on a window manager.I have Gtk::GestureDrag around the button. So far I can move the Button around.
If I move the Button to a new position and click on the button there, the…

Devab LLC
- 115
- 1
- 8
2
votes
2 answers
What is the preferred approach to display a Magick++ Image in a GTK+3 application?
I'm working on an C++ image viewer for Linux which is created using GTK+3 (gtkmm) for the GUI and Magick++ for image handling. My goal is to support as many image file formats as possible, including animated GIFs.
What is the best approach to take a…

Max
- 189
- 7
2
votes
0 answers
Building Gktmm 3.91 from source using gcc 7
OS : Ubuntu 16.04 LTS
Compiler : Gcc7.2
I want to add Gtkmm3.9 as a third party dependency for one of my project and I try to compile from the source. I'm not familiar with autoconf or automake toolset.
Going through the documentation…

Janakiraman Kannan
- 46
- 5
2
votes
1 answer
Cannot embed gnuplot x11 window into Gtk3 socket
I'm creating Gtk::Socket in my Gtk3 (actually, gtkmm) application and trying to embed gnuplot's window into it. But it does not work: the socket remains to stay as a black rectangle, while gnuplot window appears standalone elsewhere.
Meanwhile,…

Dima Litvinov
- 121
- 7