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
1
vote
2 answers
Gtk Window with two side panels
I am trying to implement a window with two resize-able side panels and an area in between in GTK3. Examples of what I am trying to achieve are RawTherapee and Glade.
Placing two GtkPaned in a GtkWindow does not work.
Any pointer/tip on how to…

Borealis
- 51
- 4
1
vote
1 answer
How can I embed a Gtk::Plug in a Gtk Socket?
I have I window. In this window I want two buttons. One will be a plug and the other is just normal.
I do the following
plug.cc
#include
#include
class PlugButton : public Gtk::Plug{
public:
…

Tapiwa Chimurenga
- 11
- 2
1
vote
1 answer
gtk(mm) 3 text view anchored in text view cannot get cursor inside
The problem happens only building for GTK3; building the same code for GTK2 works fine.
In the code below I'm having a text view anchored into another text view. The problem is that even if I mouse click, I cannot have the cursor move inside the…

giuspen
- 1,365
- 3
- 20
- 33
1
vote
1 answer
How to create std::map of Gdk::Pixbuf instances and use it in Gdk::Cairo
I guess one may found it trivial, but I ask it here since I could not find a straightforward answer.
Let's dive into the problem:
Having a resource of multiple images along with cairo context that is using these images incessantly. Naturally, I can…

Davood Falahati
- 1,474
- 16
- 34
1
vote
0 answers
GTK 3 Eclipse error while loading shared libraries: libgtk-3.so.0
I'm currently using Eclipse IDE for C/C++ Developers Version: 2018-09 (4.9.0) to build a simple GTK 3 app. But after I build and then run the app, in Eclipse, I get the following error:
Debug/Test: error while loading shared libraries:…

Luke
- 20,878
- 35
- 119
- 178
1
vote
0 answers
Can Tags in Gtk::TextBuffer be styled with CSS
Using GTK-3 through Gtkmm 3.22, I am about to build a custom widget, which uses a Gtk::TextView to display various entries or messages. According to the GTKmm-Tutorial, Gtk::TextBuffer::Tag shall be used to style parts of the text differently.…

Ichthyo
- 8,038
- 2
- 26
- 32
1
vote
1 answer
Gtk - How to set box size?
I have the following window on my project:
And this is basically the code that configure the main boxes:
add(main_box);
// Add boxes
main_box.pack_start(function_box, Gtk::PACK_SHRINK, 10);
main_box.pack_start(viewport_box);
I would to like to…

olegario
- 711
- 2
- 16
- 35
1
vote
1 answer
Gtkmm: create a Gtk::ComboBox which lists Gtk::DrawingArea
I am trying to create a Gtk::ComboBox listing Gtk::DrawingArea widgets. I have followed this tutorial. So far, here is a minimal working example (i.e. which can be used to reproduce the issue) with Gtkmm3:
#include
class NewPlayerRow :…

BobMorane
- 3,870
- 3
- 20
- 42
1
vote
2 answers
What is the difference between Gtk::Main and Gtk::Application::create?
Both create Gtk windows but I can't really understand what is going behind the scenes. I tried binding a signal to a button to quit the window but the program got a SIGSEGV when using Gtk::Application::create. When I changed the program to follow…

Compro Prasad
- 162
- 1
- 14
1
vote
1 answer
gtkmm: stack together elements in the container widget (Box)
I want to create some kind of toolbar, consisting of buttons. I used ButtonBox, and put inside some toggle buttons, color button and one regular button.
I want to accomplish two things:
Make buttons stick together despite window width, without…

SuperPrower
- 111
- 1
- 12
1
vote
2 answers
Preserve DrawingArea 'image' on draw signal
I am trying to make simple square where you could paint with mouse. Problem is, whenever draw signal is happens, cairo surface seems to be cleared entirely. I understand this because after first queue_draw() white background is gone and I see my GTK…

SuperPrower
- 111
- 1
- 12
1
vote
0 answers
GTK+3.0 compatible c++ wrapper version of gtkmm
I have to migrate a very large application developed in GTK 2.4 version to GTK 3.0. The current application uses Gtkmm version 2.4 in Ubuntu.
As GTKMM is the c++ wrapper of GTK+ , could someone tell me , whether and which version of Gtkmm will…

abhishek kumar
- 11
- 2
1
vote
1 answer
CMake error with GTKmm - No package 'gtkmm-3.0' found
This may be related to my previous question.
I copied the code from the "Simple Example" here.
I copied the cmake instructions from here.
The error I am getting is:
-- Checking for module 'gtkmm-3.0'
-- No package 'gtkmm-3.0' found
CMake Warning…

FreelanceConsultant
- 13,167
- 27
- 115
- 225
1
vote
1 answer
Gtkmm3 TreeView ListStore.Clear or TreeSelection.unselectAll causes error
I'm trying to use TreeView to list the contents of a directory then choose a filename by selecting it in the list. I don't want to use the file chooser dialog as I want to limit the users access to one directory and don't want them to navigate…

JohnMy
- 11
- 3
1
vote
1 answer
Gtkmm Build Error
OS: Debian 9.1
Compiler: gcc (Debian 6.3.0-18)
GTK+ Version: 3.22.11-1
Gtkmm Version: 3.22.0-1
Hello all, I've been dealing with a pesky issue with Gtkmm 3.22.0-1 build the simple application given on the tutorial. I'm building the project using…

Sam Gallagher
- 125
- 5