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

Show Window with Shortcut Keybinder and Focus to TextBox GTK4

I'm building a project like uLauncher where I can pop out a window and focus on the textbox right away. I was able to get the window out using libkeybinder for the shortcut and get the window out with win->show(), but the problem is that the…
0
votes
1 answer

Continuously render Gtk::GLArea in gtkmm

I've followed a gtkmm4 + opengl example, the window loads and displays without any errors and renders one frame but then seems to ignore my queue_render() and queue_draw() calls as evidenced by the print statements in the console. I've set auto…
seraph
  • 65
  • 1
  • 3
  • 12
0
votes
1 answer

GdkEventButton when migrating from gtkmm-3.0 to gtkmm-4.0

I'm trying to get the cursor's coordinates and what type of click occurred when clicking on a button in gtkmm 4.0. In gtkmm 3.0, I could use GdkEventButton, as in this example from the docs: bool on_button_press(GdkEventButton* event); Gtk::Button…
0
votes
0 answers

Gtkmm: Derived widgets destructor not called while destruction of Top-window

I am new to gtkmm (and c++). I was trying to split the window (UI) according to different functionalities by making a main window (with separate UI file made with Glade) with Gtk::Box's in it. What I have done is to make a derived Gtk::Box class…
0
votes
1 answer

GTKmm popover menu items not highlighting when used with treeview

Good afternoon, I'm trying to integrate a popover context menu to a treeview widget in GTKmm 4. I've been successful in getting the menu to be displayed and for the respective actions to be called when clicking on the context menu options, however,…
NiMux
  • 826
  • 7
  • 16
0
votes
1 answer

How do I close this Gtk::MessageDialog before it's parent window is destructed?

I'm currently trying to create a simple Gtkmm program that has a button which spawns a dialog box. I'm currently having issues, however, as the destructor for the AppWindow class causes a segfault closing the dialog box. I check if the unique_ptr is…
dylanweber
  • 580
  • 7
  • 19
0
votes
1 answer

How to change theme in GTK4.0 on windows?

I'm new to development using GTK. I installed gtkmm4.0 on windows using mingw64, but i noticed that the applications generated follow the default theme(adwaita); however i want to change that and use the windows 10 native theme. Where is the…
Goemon0992
  • 17
  • 6
0
votes
1 answer

gtkmm4: Gtk::Button click signal doesn't fire when in Gtk::HeaderBar

I'm using gtkmm4. I have a Gtk::Window, Gtk::Button, and Gtk::HeaderBar. I've packed the Button to the end of the HeaderBar and then set the Window's titlebar to the headerbar. My code looks something like this: class Window: public…
NintendoZaedus
  • 653
  • 3
  • 8
  • 22
0
votes
1 answer

Build error on connection of signal_response of gtkmm4 FileChooserNative to the function

I need to connect signal_response of FileChooserNative to the function, but I got an error when I try to use code from example from Programming with gtkmm 4 book. When I try to compile this (g++, XCLT, macOS Big Sur): void…
0
votes
0 answers

gtkmm 4.0 header build errors when compiling own project

I recently updated my gtkmm framework to version 4.0.0 and updated code to be compatible with the framework. I'm using msys2 in JetBrains CLion on Windows. However when I'm compiling project I got wall of warnings and errors in various framework…
Maxi King
  • 65
  • 7
-1
votes
1 answer

Increase the font size of a TextView in gtkmm-4.0

Assume that We have this simple application, a Gtk::TextView inside a window. I use gtkmm-4.0 mainwindow.h #pragma once #include class mainwindow : public Gtk::Window { public: mainwindow(); protected: Gtk::TextView…
Ali
  • 7
  • 5
-1
votes
1 answer

How to change the entry's font size in gtkmm

I am trying to make an application, and i put an entry in it, when i write something in the entry, its font is small and not compatible with the entry's size, Is there any way to change its size
MAMO GRAG
  • 9
  • 3
-1
votes
1 answer

How to embed opencascade V3d_View in gtkmm widget

I'm trying to port the code from https://github.com/eryar/occQt to gtkmm, by creating a custom widget and overriding the Gtk::widget::on_realize() method like void OccView::on_realize() { // Create Aspect_DisplayConnection …
Andy Ef
  • 155
  • 1
  • 8
1 2
3