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
4
votes
1 answer

Poor look of a gtkmm program

I'am writing with my friends a simple photo viewer in C++ using gtkmm. Everything goes quite well, except that our app is looking very poor and completely diffrent from any other GTK+ application on ours Linux desktops. If anyone could give us some…
mc.suchecki
  • 1,898
  • 4
  • 23
  • 44
4
votes
0 answers

GTKMM - `WIDGET_REALIZED_FOR_EVENT (widget, event)'

We are working on a gtkmm24 application. There's a long standing bug that if a user clicks too quickly on a Gtk::CellRendererCombo in a Gtk::TreeView the whole application locks up with a GTK Assert: Gtk-CRITICAL **: IA__gtk_widget_event: assertion…
Mark
  • 106,305
  • 20
  • 172
  • 230
4
votes
1 answer

Repeated window invalidation in GTK+: failure after several steps

I have a timer which calls a method (perform_step) every second. perform_step does some computation and invalidates my window. This works well initially but after a small number of iterations the on_expose_event of the window isn't triggered. From…
4
votes
3 answers

How to load image BACK from OpenGL?

I have succeed in loading an image to OpenGL as a texture (I use Gdk::Pixbuf from GTKmm library), but I have no idea how to get modified image from OpenGL and load it to Gdk::Pixbuf... I want to modify images in OpenGL and the save them on hard…
Marco
  • 582
  • 1
  • 6
  • 17
4
votes
1 answer

Draw background image in gtk - none of my attempts work

I've been trying to set a background image on a gtk widget without success, even after trying 4 different approaches. The following program contains 3 approaches (the 4th approach involves no code). I compiled it using MinGW (g++ 4.5.0) and gtkmm…
Jong Bor Lee
  • 3,805
  • 1
  • 24
  • 27
4
votes
3 answers

Embed a web browser in a cross platform Gtk application

I need to embed a very simple browser ( can parse HTML, and JS Ext ) in a Gtk Widget hopefully in gtkmm. I looked into gtkmozembed, but the c++ wrapper is very out dated, so I tried to just write it in C, but I'm already committed to Gtk+ 3.0, and…
paullj1
  • 127
  • 2
  • 12
4
votes
2 answers

How do we add "Spacer"s in GTKmm?

In Qt if you want widgets in a single layout to be separated physically, you add a spacer in between, do we have something like that in GTKmm? Here the label (Gtk::Label m_label;) and the buttons (Gtk::Button m_open_button, m_delete_button;) are in…
Aykhan Hagverdili
  • 28,141
  • 6
  • 41
  • 93
4
votes
3 answers

Why do I get the compile error, "make_managed" is not a member of 'Gtk'?

I'm trying to reproduce the example at - https://developer.gnome.org/gtkmm-tutorial/stable/sec-treeview-examples.html.en#treeview-dnd-example Compile time error: "make_managed" is not a member of 'Gtk' in the file treeview_withpopup.cc at the…
PBNeves
  • 41
  • 4
4
votes
2 answers

Using gtkmm with Eclipse CDT

I'm trying to compile the gtkmm Simple Example using Eclipse CDT, but it's not working for some reason I'm compiling this on Mandriva Linux and GCC 4.4.3 I get this error, which I think is a linking error : Building target: Test Invoking: GCC C++…
Mahmoud Hanafy
  • 7,958
  • 12
  • 47
  • 62
4
votes
1 answer

Gtk / Gtkmm Kinetic Scrolling

I am designing a GUI that requires kinetic scrolling for my application and I am using GTK (coming from Qt) and I have the following code: Gtk::Window * wnd = new Gtk::Window(); Gtk::ScrolledWindow * scr = new Gtk::ScrolledWindow(); …
marko
  • 327
  • 2
  • 12
4
votes
1 answer

How to use images in GTK Stack Switcher

I'm writing an application using C++ and gtkmm. I made a Gtk stack in it. Now I want to add images instead of text on stackswitcher's buttons. I assume that it's possible because something like this is made in gtk3-demo: Unfortunatelly the example…
P.B.
  • 190
  • 3
  • 17
4
votes
8 answers

display opencv cv::Mat image in gtkmm

I want to display a cv::Mat in a Gui written by gtkmm. So I have done a test. I have a widget Gtk::Image image, and I want to set the image with the following two methods: // first method, display from file void displayImage1() { …
Summer Fang
  • 286
  • 3
  • 14
4
votes
2 answers

GTKMM/C++11: How to create a custom composite widget out of other widgets?

I want to derive my own widget class and add standard widgets to this class to create a composite widget. Does anybody have an examples or suggesions on how to do this? For example, Suppose I want to create custom composite widget of 4 buttons.…
Bimo
  • 5,987
  • 2
  • 39
  • 61
4
votes
0 answers

Crash in windows XP with very simple gtk+cairo program

I am developing a Gtk application using gtkmm on Windows Vista with Visual Studio 2005. The application works fine on the development machine but I have received crash reports after it has been run on Windows XP machines (both Service Pack 2 and 3).…
Jong Bor
  • 43
  • 3
4
votes
0 answers

C++ gtkmm vertical menu bar

I am trying to make a vertical menu bar with multiple different tabs (Each tab contains multiple sub-childs and each sub-child may contain another sub-sub child) for my application which should look something like this. However, I couldn't find a…
Piiinkyy
  • 367
  • 1
  • 3
  • 14