Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
87 views

Glib::RefPtr< Gdk::Display > display = Gdk::Display::get_default() ; if( nullptr == display ) { return ; } Gdk::Rectangle geo ; Glib::RefPtr< Gio::ListModel > monitors = display->...
YUKI N's user avatar
  • 11
1 vote
0 answers
43 views

I am attempting to implement drag-and-drop following the example from the Gtkmm book here: https://gnome.pages.gitlab.gnome.org/gtkmm-documentation/sec-dnd-example.html In the DragSource's prepare ...
xBACP's user avatar
  • 611
0 votes
1 answer
38 views

I am trying to implement drag-n-drop with Gtkmm4. Inside DragSource's prepare signal callback I return a ContentProvider: // ... char* buffer; gsize length; file->load_contents(buffer, length); ...
xBACP's user avatar
  • 611
1 vote
2 answers
91 views

I'm trying to write a gtkmm frontend for a project; it's my first time working with GUI. It seems that reading floating point numbers from files is problematic: I either only get to read the integer ...
l1ivi1l's user avatar
0 votes
0 answers
32 views

I am using gtkmm 4 and need to make a subclass of ToggleButton look just like a tab of a Notebook. I have found out that most themes use the selector notebook > header > tabs > tab for those, ...
roundabout's user avatar
1 vote
0 answers
120 views

When I run cmake .. in ./build, I get the output: `-- Checking for module 'gtkmm3' -- Package 'gtkmm3', required by 'virtual:world', not found CMake Error at /nix/store/...
Eris's user avatar
  • 11
0 votes
1 answer
127 views

I am learning C++, and how to use gtkmm (I am using gtkmm version 3.24). I have created a simple window, with few widgets, but I am not able to connect a simple event with a simple function. The ...
Fabio's user avatar
  • 1,234
-1 votes
1 answer
205 views

I am working on a simple example of a GUI application written in C++ using gtkmm (version 3.24) and an external XML file. Thanks to the answer to this other question I managed to create an empty ...
Fabio's user avatar
  • 1,234
1 vote
1 answer
68 views

More than 10 years ago I started an application with a canvas widget (goocanvas) in gtkmm3. My last question about this topic was: using a canvas in gtkmm application Now I have to learn that gtkmm3 ...
Klaus's user avatar
  • 26k
0 votes
1 answer
721 views

I have learned how to create a simple GTK application using C++ and gtkmm-3.0. So far I have learned two possible approaches, and I would like a third approach, which would be the merging of those two....
Fabio's user avatar
  • 1,234
1 vote
1 answer
82 views

I am working on an embedded Linux project using gtk/gtkmm 3. I use Glade builder files to define the UI and load them during program runtime. That works fine. Now I need a custom circular progress ...
KBO's user avatar
  • 675
0 votes
2 answers
195 views

I have the following example, where I create a simple window with a scrollbar and a scroll event controller that connects the onScroll member function to handle the events: #include <iostream> #...
mltm's user avatar
  • 605
1 vote
1 answer
158 views

I'm working on a speed-optimized fractal generator using Glade and C++ and I'm having some trouble getting my head around some gtkmm subtleties. I'm trying to catch a click event from a Gtk::...
AlgebraicsAnonymous's user avatar
0 votes
0 answers
174 views

I'm using a column view in GTK4 (gtkmm4). One of the columns is a C++ class inheriting from a Gtk::Grid and packs a couple of buttons. The buttons are set to have some standard icons to make the UI ...
Daniel's user avatar
  • 391
0 votes
1 answer
139 views

I'm trying to learn how to use gtk3. Using C, the gtk_widget_add_tick_callback function is very straightforward, and the gtk documentation is very easy to understand. I cannot for the life of me ...
livphi's user avatar
  • 1
0 votes
1 answer
130 views

Is there a way to embed the contents of po files and bind the text domain (~ bindtextdomain(GETTEXT_PACKAGE,...)) to that embedded data? The background is that I'm building a GTK application with ...
Kagetsuki's user avatar
  • 382
3 votes
0 answers
57 views

I want to build a music player using gtkmm and sfml but i am encountering stuttering with my music stream. I tried using a separate thread for the music but i couldn't understand how to use Glib::...
Bogdan Valentin's user avatar
0 votes
1 answer
160 views

I am trying to make a wrapper for a Gtk click signal to hook into my event system. The Gtk way to handle click events would be like this: auto button = new Gtk::Button(); button->signal_clicked()....
Get Off My Lawn's user avatar
1 vote
0 answers
83 views

I have a simple main window which contains a scrolled window and a canvas widget inside. If the size of the canvas is bigger than the scrolled window, the scroll bar appears and the canvas can be ...
Klaus's user avatar
  • 26k
2 votes
0 answers
1k views

I'm trying to install Cadabra on Windows. Following the instructions, I inevitably get stuck near the very end, after cloning the repository and whilst using cmake. The error I am met with is: CMake ...
Kandrax's user avatar
  • 21
0 votes
1 answer
126 views

I want to use gtkmm-4.0 in a C++ project. I installed it using msys. Now the gtmm-4.0.h file is saved at "C:\msys64\mingw64\include\gtkmm-4.0". And i have the following CMakeLists.txt file. ...
schiss3000's user avatar
1 vote
0 answers
197 views

In a project, I have decided to try to hide all the widget toolkit details behind an abstract factory pattern. The concrete widget toolkit is gtkmm. Here is simple diagram showing the architecture I ...
BobMorane's user avatar
  • 4,340
0 votes
1 answer
69 views

I'm writing a test task on c++ for a team where everything is written in gtk. I used to write purely under Qt and never gtk/gtkmm. The program has widgets whose operation I seem to have figured out, ...
rkc137's user avatar
  • 33
0 votes
1 answer
259 views

I am trying to programatically scroll to a particular row and column within a Gtk::ColumnView which is contained in a scrolled window. The below code does fetch and set the adjustments correctly (I ...
SRB's user avatar
  • 18
0 votes
0 answers
62 views

I have added a simple ComboBoxText widget to my programm, but I am unable to select any of the drop-down options with my mouse by clicking on the drop-down. I can however use my keyboard arrows and ...
Alberto García's user avatar
2 votes
0 answers
147 views

I want to get number of rows and columns of Gtk::Grid. But Gtk::Grid has no member function for it so I can't it. How to get number of rows and columns?
user avatar
1 vote
1 answer
117 views

I've inherited a code that does this: if (ok){ m_Test_Button.set_image(m_Image_OK); m_Test_Button.set_image_position(Gtk::POS_RIGHT); m_Test_Button.set_always_show_image(true); }else{ ...
Pedro Gimeno's user avatar
  • 3,121
1 vote
0 answers
21 views

I was trying to install gtkmm-4.0 and since my distro only ships gtkmm-3.0 I decided to build myself. Installed all the dependencies from the official gtkmm installation website and gave it a go. ...
Tony's user avatar
  • 110
1 vote
1 answer
137 views

I am old to GTK+ (C) but new to GTKMM and adapted a very simple example app from some example code. #include <gtkmm/button.h> #include <gtkmm/window.h> #include <gtkmm/application.h> ...
CPlus's user avatar
  • 5,110
1 vote
1 answer
180 views

I'm working on a GTKmm application(a simple text editor, as an exercise), in which I have a notebook to which I want to add a tab. The notebook shows, but the newly added tab doesn't. I'm doing it in ...
M.R.'s user avatar
  • 72
1 vote
1 answer
1k views

Using gtkmm 3.0 with c++, in a Gtk::Window, I have a Gtk::Label named "bezeichnung" showing text. How can I change the font of this label? There seems to be no function to set the font for a ...
bejo's user avatar
  • 67
1 vote
0 answers
124 views

I would like a gtkmm drag and drop destination to make decisions based on data from the source before the drop occurs. Is it possible to request the data from the "drag motion" callback? I ...
rur2641's user avatar
  • 701
1 vote
1 answer
187 views

Currently tried adapting gtkmm and gstreamermm test code throws run time error to a video instead of a sound and my program is saying a linking failed between m_source and m_sink. My understanding is ...
Meiseg 's user avatar
1 vote
1 answer
1k views

I am trying to follow the tutorial but I can't figure out why my build_debug and build_release are empty and nothing is compiled when I run the cmake -DCMAKE_BUILD_TYPE=Debug ../ followed by make and ...
binary_psychic's user avatar
1 vote
0 answers
175 views

I am trying to set up a vector of a varying amount of Gtk::ToggleButtons in a Gtk::Box of the main Gtk::Window, the amount of which would be determined by a value at the beginning of the program. I ...
Cheetaiean's user avatar
0 votes
1 answer
145 views

I have been trying several ways to get this done, but I am stuck, I can access the model, but I cannot access the view part to set the option disabled with set_sensitive I cannot find any example or ...
Patricio Rossi's user avatar
0 votes
0 answers
68 views

In a Gtk::DrawingArea I have a pixbuf showing the layout of my house. I draw the measured room temperatures on it. I also would like to draw the state of my shutters on it with some lines. When and ...
bejo's user avatar
  • 67
0 votes
1 answer
58 views

I starting to look into porting my application from Gtkmm 3.24 to Gtkmm 4.x (not sure which version yet). For now, I am only trying to understand what exactly is deprecated and how much work is needed ...
BobMorane's user avatar
  • 4,340
0 votes
1 answer
140 views

I am trying to debug my GTK3 application with the gdb command, but I can't seem to get it to work. When I run the command gdb ./myapp, it loads all the debug symbols successfully. However, when I then ...
Enter Display Name Here's user avatar
0 votes
1 answer
380 views

I'm writing an application using GTK3 and gtkmm. I'm adding a menu button to the header bar. So far, I got items to show up, but I can't add a separator. Here's where I create the menu: auto main_menu ...
Joseph .M 101's user avatar
1 vote
1 answer
98 views

I would like to add a sigc callback to the destruction of a widget. How can I connect so that when the widget is destroyed, my callback is called? There is no such signal on Gtk::Widget. Can I do it ...
SVA522's user avatar
  • 77
1 vote
1 answer
297 views

I am trying to open a Gtkmm::FileChooserDialog to choose multiple files and print their paths along with filenames to a label. I can open the dialog and choose the files but I am having a hard time ...
user19095524's user avatar
8 votes
1 answer
2k views

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 ...
Dorbmon's user avatar
  • 145
1 vote
0 answers
219 views

I have created a Bazel project (C++) and have tried to include the gtkmm library in my project. I get the below error, that header files are missing, e.g.: Showing Recent Messages ../mediapipe/...
Maverick's user avatar
1 vote
1 answer
379 views

In VS Code trying to use gtkmm and finding myself in a never ending loop of compile, find location of header file that wasn't found, then adding the library path to task.json args. Is this going to ...
Make a Difference's user avatar
1 vote
1 answer
474 views

When I add a widget to container, then I remove it. Widget is leaked, why ? I used a "MyWidget" to spy widget deletion but I get same result from a classic Gtk::Label. Code below have been ...
SVA522's user avatar
  • 77
0 votes
1 answer
148 views

As seen in the Gtk documentation here there is a method to set the visual of the Widget which seems to be missing from gtkmm (C++ wrapper). While trying to port a Gtk application from C to C++ using ...
Nikos Papachatzakis's user avatar
1 vote
0 answers
1k views

Using gtkmm in a cpp project in vscode, everything can build normally even though I have this error. [{ "resource": "/d:/Dossiers/Repos/Cpp/Motion/src/main.cpp", "...
Edorion's user avatar
  • 23
0 votes
0 answers
67 views

I am working on a project to list items of a file in a gtkmm combo box. //I declared the signal handler as void on_combo_changed(); //And the widget Gtk::ComboBoxText m_Combo; //All void ABC::...
user avatar
-1 votes
2 answers
1k views

Gtk is licensed under GPL and Gtkmm is under LGPL, but Gtkmm links with Gtk. am I allowed to relese my app without opensourcing it when I use Gtkmm only?
DeanSinaean's user avatar
  • 2,367

1
2 3 4 5
20