Questions tagged [gtkmm4]

gtkmm is the official C++ interface for the popular GUI library GTK+. Use this tag for questions specifically targeted to version 4

gtkmm is the official C++ interface for the popular GUI library GTK+. Use this tag for questions specifically targeted to version 4

43 questions
0
votes
0 answers

Gtkmm columnview - cannot programatically activate

Want to programatically activate a gtkmm columnview but when I set up the handler and then call the activate() member it does not invoke the handler. I have modified a simple example of the columnview class as per the gtkmm examples. The header…
SRB
  • 1
  • 2
0
votes
0 answers

Resize widgets with clip in Gtkmm 4

In Qt widgets have property clip. If this property set to true then child widgets (or their parts) that placed out of bounds of parent widget invisible. Is Gtkmm 4 have same feature or i have to make child widgets invisible after resize manually? So…
Ullov
  • 1
  • 1
  • 3
0
votes
1 answer

How to get a method called when the Gtk::DropDown selected item has changed?

Using gtkmm-4.0, I defined a dropdown in my class SomeClass : auto some_dropdown = Gtk::DropDown(); auto some_model = Gtk::StringList::create({"a", "b"}); some_dropdown.set_model(some_model); I am able to set/get the selected item index using…
Alice Oualouest
  • 836
  • 12
  • 20
0
votes
1 answer

How to create trigger a function when key is pressed in gtkmm?

In the keyboard events section in GTKMM4 official docs there are examples on how to create a program that triggers when using only the enter button is pressed I did try to write my own but it works only if i press alt or ctrl and enter #include…
misha
  • 31
  • 5
0
votes
0 answers

why isn't GdkEventKey declared anywhere?

I am studying keyboard events from the docs and came across this method Updated Here is the simplified version of the code in a signle file with the same error but now it show extra errors /home/test/Desktop/not_working/main.cpp:15:52: error:…
misha
  • 31
  • 5
0
votes
0 answers

Compile error GTKMM-4.0 using CMakeLists.txt

I am trying to compile a project with GTKMM, but I get countless errors when I include the GTKMM_INCLUDE_DIRS directory into the project. The tree is... Top ⇾ CMakeLists.txt ⇾ src  ⇾ CMakeLists.txt  ⇾ main.cpp  ⇾ DAQ   ⇾ CMakeLists.txt   ⇾…
Ryan Lee
  • 37
  • 6
0
votes
1 answer

X windows, GTKMM, re-parent window, draws child window into parent

I am attempting to re-parent a child window Gtk::Window so that I can emulate the deprecated GTKMM 4 call to position the window in the centre of the parent (which was present in GTKMM 3). I have searched for XReparentWindow posts and the only…
BRS
  • 1
  • 2
0
votes
0 answers

How to convert Gio::Menu inherited class into Gtk::widget

I have the following code class XMenu: public Gio::Menu { public: XMenu(); }; class App : public Gtk::Window { public: App(); protected : Gtk::Button btn; XMenu menu; }; XMenu::XMenu() { …
misha
  • 31
  • 5
0
votes
0 answers

How can I resolve a compilation error in dbusmessage.h using mingw through MSYS2?

I developed a program on linux which uses the gtkmm library. The code compiles successfully on linux platforms. I am attempting to compile it on Windows 10 using MSYS2 to obtain gcc and the gtkmm library. During compilation, I receive errors while…
Andrew C
  • 137
  • 2
  • 10
0
votes
1 answer

GTKMM 4, dynamically created dialog, show on window not displaying any widgets

I have a 'mygtk' library that performs various functions to make writing my gtkmm applications easier. I have converted the library to gtkmm 4 and am having problems displaying a window from the application. The window is to be displayed upon an…
BRS
  • 1
  • 2
0
votes
0 answers

GTKMM - Error compiling the hello world example

I am trying to build the hello world gtkmm example from the docs using the command -DLIBDEFLATE_DLL -IC:/msys64/mingw64/include/gtkmm-4.0 -IC:/msys64/mingw64/lib/gtkmm-4.0/include -IC:/msys64/mingw64/include/gtk-4.0 \ …
loaded_dypper
  • 262
  • 3
  • 12
0
votes
1 answer

Make compiler warn about Gtkmm deprecations

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 for planning. One way to ease porting is to look…
BobMorane
  • 3,870
  • 3
  • 20
  • 42
0
votes
0 answers

GTKMM4 app is crashing on calling window hide()

In my ubuntu 20.04 and Windows 10, I installed GTKMM4 with VCPKG since the normal installation of GTKMM4 is not available. Then I downloaded this example from the gnome tutorial page and added this cmake. On clicking the close button, which calls…
Renju Ashokan
  • 428
  • 6
  • 18
0
votes
1 answer

How do I send text from TextView to 'Export to PDF'?

I'm new to GTK4, an open source toolkit for C++ binding. I want to send text from current TextView buffer (from a saved file) to a PDF file using GTK libraries (gtkmm4), but couldn't get anything printed out. This is the code I have started from…
Benson
  • 1
  • 2
0
votes
0 answers

What are the best practices for resolution independent / responsive UI design with GTK/gtkmm?

I understand that in GTK >= 3.x all metrics are in logical pixels which will be scaled by a given scale factor (e.g. env var GDK_SCALE), resulting in the actual physical pixel metrics. Unfortunately the scale factor is an integer and as such rather…
khaos
  • 632
  • 3
  • 11