Questions tagged [gtkmm3]

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

187 questions
2
votes
1 answer

Gtk::Notebook not showing

I have a window with a vertical box layout. Within the layout, I've placed three widgets: a menu bar, a notebook and a status bar. The menu bar and the status bar work properly. But the notebook doesn't work as expected: no matter how many tabs I…
azteca1998
  • 152
  • 3
  • 10
2
votes
0 answers

GTKmm + cairo app for real-time graphics freezes often

I'm writing a C++ application whose main window needs to receive real-time data from a server and draw plots and histograms in realtime based on this data. I'm using GTK3 (actually its C++ binding gtkmm) and Cairo. In particular, data is received…
user6052717
2
votes
1 answer

Is it possible to instruct a `Gtk::TreeView` to display a custom type?

There is something I don't understand how to do with Gtkmm 3. I have a custom business type that I have declared like this: enum class Eurocents : int {}; I would like to render this type into a Gtk::TreeView which has a Gtk::ListStore as model. So…
Laurent LA RIZZA
  • 2,905
  • 1
  • 23
  • 41
1
vote
1 answer

How to hide an image in a Gtk::Button

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{ m_Test_Button.set_image(m_Image_not_OK); …
Pedro Gimeno
  • 2,837
  • 1
  • 25
  • 33
1
vote
1 answer

gtkmm catch widget destruction event

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 using C API? Note : I use gtkmm 3.24.5.
SVA522
  • 57
  • 3
1
vote
0 answers

GtkExpander expand other widgets outside window

Essentially I have the following parent/child structure: GtkWindow - Set values for width_request and height_request GtkFixed GtkViewport - Set values for width_request and height_request that are smaller than those set for the parent…
halexh
  • 3,021
  • 3
  • 19
  • 19
1
vote
1 answer

How do I pack a Gtk::Entry into a Gtk::HeaderBar so the entry completely fills the header bar?

I'm making a program in gtkmm-3.0 which has a Gtk::HeaderBar as the title bar. I'm trying to pack a Gtk::Entry into it using this code: Gtk::HeaderBar headerBar; Gtk::Entry…
1
vote
1 answer

Signal_delete_event doesn't change page in notebook with set_current_page

I'd like to change to a certain page in a notebook when deleting the window and do some work before effectively deleting the window. The code below gives 1 for get_current_page, but the page isn't effectively changed to 1. What should be the…
Nico Verrijdt
  • 55
  • 2
  • 9
1
vote
1 answer

How to inject an event like button press programmatically in gtkmm C++?

I am very new to C++ gtkmm (Linux) programming. I developing a program where I need a button to be clicked in the callback function of another button on the gui. I have tried button.activate() But it only animates the button click but the callback…
Ritu Lahkar
  • 407
  • 1
  • 8
1
vote
0 answers

Windows: fatal error: gtkmm.h: No such file or directory

I'm complety despairing compiling my C++ program using Gtkmm3.. I read about 30 different Stackoverflow, Microsoft and other forum entries but nothing works. The problems were: Using vcpkg doesn't work since I need Gtkmm3 not 4. Using VS Studio…
1
vote
1 answer

Gtk::StatusIcon system tray alignment issues

I'm creating a Gtk::StatusIcon object from a PNG file but the system tray icon displays in the center of the system tray. How can I get this system tray icon alignment over to the right side by default. I've looked at the GTK::StatusIcon API but did…
anshah
  • 105
  • 9
1
vote
1 answer

Animated gif image isn't being animated in my modeless Gtk::Dialog

My goal is to show a brief "Please Wait..." dialog with an animated gif (spinner) in a Gtk::Dialog. My problem is that when I do not use Gtk:Dialog::run(), the gif won't be animated, and when I do use the Gtk:Dialog::run() method it completely…
1
vote
0 answers

How to find floating devices in gtkmm

I am unable to find a list of floating devices in gtkmm. I can find all the seats associated with a display, but these only contain slaves and master devices. Is there a master list that enumerates all devices (including floating devices)? I've also…
1
vote
1 answer

Scrolling to the bottom of the TextView in gtkmm

The layout is the following: There is a Gtk::ScrollWindow and inside of it is Gtk::TextView, the latter is of a derived class called TextArea. As a test, there is a button that adds some texgt to the TextView one line at the time and attempts to…
v010dya
  • 5,296
  • 7
  • 28
  • 48
1
vote
2 answers

How to disconnect a signal

I made a program to calculate the area and volume of shapes from a window. Everything works, except one thing regarding the use of Gtk::Entry::signal_activate(). In the following code: sigc::connection c =…
kramer
  • 177
  • 1
  • 4
  • 15
1 2
3
12 13