Questions tagged [gtkmm]

gtkmm is the official C++ interface for the GUI library GTK+.

is a GUI library written in C, gtkmm is its official binding to C++.

External links:

958 questions
0
votes
1 answer

Gtkmm can't open application window on OSX

I've installed gtkmm3 via homebrew. My project links and builds without errors but never opens a window. xQuartz/X11 fires up upon successful build as well. It just seems to hang during the Gtk::Application::create() call. I've included my code…
egregious
  • 121
  • 4
0
votes
1 answer

Can't execute built gtkmm program when it uses a glade file

When I build a gtkmm application that uses (loads) .glade file with Gtk::Builder, and then double clicking on the application (in file explorer) it won't show the UI, how ever when launching the same application from the shell is runs just fine and…
codekiddy
  • 5,897
  • 9
  • 50
  • 80
0
votes
1 answer

MessageDialog in separate thread

In my current project I need to perform some calculations when a specific button is pressed, and while I perform these calculations, I want to show a Gtk::MessageDialog that simply states that calculations are being performed. So, I initialize the…
user3617992
  • 359
  • 1
  • 8
0
votes
2 answers

Glade dialog button response ID grayed out

I have a preferences dialog with ok and cancel in the normal action area down the bottom. I also have a browse button which I don't want to put down the bottom of the dialog. So I have my browse button up the top but I can't set a response ID for…
0
votes
1 answer

How to add a V_Box to a tab - gtkmm 2

I am devoloping an app in gtkmm 2 and learning how to use tabs. Right now I have no idea whatsoever how to ad a frame or V_Box in the signature of the append-function that creates the actual tab. m_Notebook.append_page(m_Label1, "First"); Here is…
user2991252
  • 760
  • 2
  • 11
  • 28
0
votes
1 answer

Netbeans library manager

not sure if this is an appropriate question... Im using netbeans, and have started to play about with gtk-3.0. In Netbeans library manager I have added the path /usr/include/gtk-3.0. I have tried to compile a simple project which uses one of the gtk…
Dave0504
  • 1,057
  • 11
  • 30
0
votes
1 answer

How to spawn graphical program with gtkmm

I am trying to spawn process with gtkmm but am faced with a problem. Here is the specific snippet of my code: std::vector args,…
Nikita
  • 85
  • 6
0
votes
1 answer

How to syle a Gtk::ComboBox

I've been trying for two months now to find a way how to style a ComboBox, but unfortunately nothing works... The only thing I was able to do was to style the content of the ComboBox (the cell renderer), but not the ComboBox itself. Can you please…
0
votes
0 answers

Gtkmm : DrawingArea :- Moving mouse over the drawing area crashes the GUI

There is a drawing area at which we are showing live view of a camera connected. Following are the 2 cases, Case 1 : When we do not move mouse over the drawing area its working fine for hours without any crashes. Case 2 : When we move mouse over…
0
votes
1 answer

Gtkmm, call of overloaded 'Scale()" is ambiguous

According to Gtkmm docs Gtk::Scale::Scale is overloaded constructor and can take nothing or Gtk::Orientation. I created object: Gtk::Scale m_scale; And added it to Gtk::HBox hbox.pack_start(m_scale, false, 0); But it produces error: error: call…
Sekhmet
  • 523
  • 1
  • 7
  • 21
0
votes
1 answer

Is there any GTKmm version compilation flag?

I have a C++ application using GTKmm version 3. From one version of the library to another, some method definition change so I would like to handle them in order to allow my sources to compile with a previous and actual version of GTKmm. When I have…
ZedTuX
  • 2,859
  • 3
  • 28
  • 58
0
votes
0 answers

What's causing this code to increase memory usage

I have the following sample program (C++): #include #include #include using namespace std; Gtk::Window * window; Glib::Dispatcher dispatcher; void do_updates(); void load_layout(); int x; int main(int…
mycroes
  • 645
  • 8
  • 20
0
votes
1 answer

Gtk::Label update label speed

I have a program that tries to update a Gtk::Label at a very high frequency, and is exhibing very unstable behaviour. I get several of these errors: (gtkWindow:26559): Pango-CRITICAL **: pango_layout_copy: assertion 'PANGO_IS_LAYOUT (src)'…
joaocandre
  • 1,621
  • 4
  • 25
  • 42
0
votes
1 answer

Incompatible cv qualifiers in parent class method

I'm tinkering with C++ and gtkmm, trying to create a custom class that calls upon a .glade file to build a Gtk rather basic interface. This class is derived from Gtk::Window, however when I call the get_widget method on the class itself, I get the…
joaocandre
  • 1,621
  • 4
  • 25
  • 42
0
votes
1 answer

Gtkmm - "Gdk::Window::pointer_grab" troubles

I am programming an FPS (First Person Shooter) game using "Gtkmm" as a window manager and I would like to do the "mouse-look". Therefore, I have to "grab" the mouse pointer to redirect all the mouse motion events to my application window. There…
Petike
  • 707
  • 4
  • 13
  • 20