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

C++ CodeBlocks compile two source files

I have tried to compile those files by CodeBlocks which i have downloaded from here: https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/frame?h=master When i try to compile it with Code Blocks i get that…
Bahaa Zahika
  • 117
  • 2
  • 11
0
votes
1 answer

gtkmm treeview set_activate_on_single_click does not compile

Iam currently developping a unix application in c++ using gtkmm as my gui package. In this gui there is a nice treeview. I want to set the activation of the rows in the treeview only on double click. There is a function for that…
hasdrubal
  • 1,024
  • 14
  • 30
0
votes
2 answers

How to read libgtkmm-3.0-doc

I am learning to use gtkmm and I've downloaded libgtkmm-3.0-doc using apt-get install libgtkmm-3.0-doc. Where do I find this doc so I could read it?
AturSams
  • 7,568
  • 18
  • 64
  • 98
0
votes
2 answers

c++ constructor undefined error for gtkmm button

I am starting to make a GUI in gtkmm. This is the simplified header: #include #include class MainWindow : public Gtk::Window { public: MainWindow(); virtual ~MainWindow(); protected: Gtk::Button…
hasdrubal
  • 1,024
  • 14
  • 30
0
votes
1 answer

How to resolve 'path is wrong' compile error include GTKmm 3.0

I have changed the command line pattern in the GCC C++ compiler to ${COMMAND} 'pkg-config --cflags --libs gtkmm-3.0' ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} As well as the Command line pattern in the GCC C++ Linker. I then…
hasdrubal
  • 1,024
  • 14
  • 30
0
votes
1 answer

Makefile and gktmm-3 with .o error

I am having error with makefile, when im trying to compile executable with .o files Error list: g++ -g -Wall -o main main.o `pkg-config --cflags --libs gtkmm-3.0` main.o: In function `_start': (.text+0x0): multiple definition of…
TileHalo
  • 1
  • 1
0
votes
3 answers

GTK+ libgio-2.0.so.0 not installed on the target machine

I have an application which uses gtkmm. The client's machine does not have this library installed. When he runs my application on his Red Hat Linux he gets the error: libgio-2.0.so.0: cannot open share d object file: No such file or directory How…
ace
  • 2,141
  • 7
  • 29
  • 39
0
votes
2 answers

Gtk::MessageDialog Run throws a segmentation fault

Hi I'm trying to show an error mesaage using a dialogbox. However when I run the code I get segmentation fault. Here's the function: void ShowErrorMessage(string message) { Gtk::MessageDialog…
ace
  • 2,141
  • 7
  • 29
  • 39
0
votes
1 answer

Why does gtkmm automatically create a second thread sometimes?

If I compile and run the code as-is, the process will run with 1 thread. If I uncomment the commented out section and then compile and run it, it runs with 2 threads. I am compiling the code with this command: g++ pkg-config gtkmm-2.4 --cflags…
Vern
  • 3
  • 2
0
votes
1 answer

Is there a way to catch the "cannot open display $DISPLAY" exception?

I'm creating a gtk app like this: Glib::RefPtr app; try { app = Gtk::Application::create(argc, argv, "loocal.testgtk", Gio::APPLICATION_HANDLES_COMMAND_LINE); } catch (...) { .... } If the X server isn't there…
Zrin
  • 919
  • 15
  • 25
0
votes
2 answers

Gtkmm-3.0 compiled code throwing Gtk+2 symbol error

I'm on Ubuntu 13.10 using gtkmm 3.0 dev package, compiling the following code: #include #include #include "opencv2/opencv.hpp" #include #include #include //GASP! global vars! std::mutex…
Adam
  • 3,668
  • 6
  • 30
  • 55
0
votes
1 answer

gtkmm goocanvas how get the size of rendered text

I want to have a goocanvas with a rect item which contains a text. How to build a group with a rect to add the text as a child is known. But I want to know the size of the text to give the box ( rect ) enough space to display the complete text. …
Klaus
  • 24,205
  • 7
  • 58
  • 113
0
votes
1 answer

goocanvasmm text item set anchor

I want to set the text anchor for a goocanvasmm text item. But I can't get the examples to run Goocanvas::Text::create("Any Text", 0, 0, -1, Goocanvas::ANCHOR_NORTH); error: 'ANCHOR_NORTH' is not a member of 'Goocanvas' Goocanvas::Text::create("Any…
Klaus
  • 24,205
  • 7
  • 58
  • 113
0
votes
1 answer

goocanvas how to switch of antialiasing

Can give me someone an idea how I can switch of the antialiasing for all items in a goocanvasmm? I tried to get the root item model but this did not contain the antialiasing property. I could not really find any valid documentation for goocanvasmm.…
Klaus
  • 24,205
  • 7
  • 58
  • 113
0
votes
0 answers

gtkmm menu bar not being displayed

Hello am trying to write a program using gtkmm and ran into some problem, the was following the online tutorial on the gnome website. Although my program compiles and executes the menu bar is not being displayed, also shortcut key doesn’t work. But…
tejas
  • 1,795
  • 1
  • 16
  • 34