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

Segfault when calling Gtkmm textBuffer->insert

I'm just learning about gtkmm for c++. I'm having trouble getting a simple TextBuffer to add a new line of text. I have a class called OutputBox which is an HBox with a TextViewer (called messages) and a TextBuffer (called textBuffer) in it. Here is…
Everett
  • 1,077
  • 5
  • 23
  • 42
0
votes
2 answers

GTK default File->Quit behavior

I've written an event event handler for my window's File->Quit button: void on_file_quit() { int err = pthread_cancel( work ); if (err) { std::cerr << "no thread to cancel\n"; } else { pthread_join( work, NULL ); …
tweaksp
  • 601
  • 5
  • 14
0
votes
1 answer

gtkmm x events are not working

I am trying to handle x events for a drawing area widget so the user can pan around and draw on it. Press event and release event handlers are called but not the motion notify event. I added Gdk::POINTER_MOTION_MASK and overrode…
Sam Bickley
  • 127
  • 4
0
votes
1 answer

gtkmm and gstreamermm test code throws run time error

I am testing the following code on Ubuntu 10.04/12.04. I am receiving an error #include #include #include using namespace std; class Sound { public: Sound(); void start_playing(double…
enthusiasticgeek
  • 2,640
  • 46
  • 53
0
votes
0 answers

How to improve text rendering performance on. Custom text view on Gdk::Drawable

I'm trying to write a hex-editor-like thingie using Gtkmm and Gdk::Drawable. Just a hex-view to be precise. At first I tried using Cairo which was awful. I guess I shouldn't get near anywhere Pango either. Right now I'm using something like this:…
Ivarpoiss
  • 1,025
  • 1
  • 10
  • 18
0
votes
1 answer

Gtkmm: Adding Window at later time

Because I´m writting a "generic" application behaving completely different when facing other configurations, I´m forced to show gtk windows even if I dont yet know them at startup. There might also be the requirement that multiple windows need to be…
Sebastian Hoffmann
  • 11,127
  • 7
  • 49
  • 77
0
votes
1 answer

Why won't Gtk's button_press_event receive single left clicks?

I am trying to set up an add-tab button in a Gtk::Notebook (gtkmm). I am doing this by drawing a pixmap to a calculated position -- that works just fine. However, when trying to receive events for it, I cannot pick up a single left click. Single…
c4757p
  • 1,728
  • 4
  • 18
  • 25
0
votes
2 answers

Are there any native gtkmm classes to Queue commands/data from the signal handler functions of the widgets?

I have constructed a Gtkmm GUI with miscellaneous widgets. On invoking the signal, each widget is intended to construct a "string" using user input data that is sent over the network. Thus I think, the commands have to pass through a single queuing…
enthusiasticgeek
  • 2,640
  • 46
  • 53
0
votes
1 answer

List the contents of a vector in Gtk+

I'm practicing a bit with Gtk+. I've been abel to create a window, with a working menu. I can create test objects(basically, a square, asking the user to input the side length) and store them in a vector, but I can't list them. What I want is to…
Adri C.S.
  • 2,909
  • 5
  • 36
  • 63
0
votes
2 answers

GTK 3 transparent label with text placed over image

i need to create GTK GUI with image and transparent label (darker) that is placed over the image. The first problem is overlapping. I tried Gtk::Table and Gtk::Fixed container but it behaves strangely. The second problem is transparency. I would…
Tom
  • 1
  • 1
-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
votes
1 answer

How to create a desktop icon on User's computer to run C++ program which contains Gtkmm and Opencv libraries?

I'm using Windows 10 OS and Code::blocks IDE. I want to provide an executable of my 'cpp' program to user, by double clicking on it the program should run. I got .exe file from code::blocks project. When I run .exe on User's pc it shows following…
-1
votes
1 answer

Gtkmm Custom Widget throws error when building from Glade file

I have made a custom widget and have struggled all afternoon due to the lack of documentation to get a custom object that extends Gtk::Entry to work. I have gotten to the point where I can add the widget in Glade. I am now getting an…
Kylelem62
  • 569
  • 4
  • 17
-1
votes
2 answers

How to run a function in another thread in gtkmm?

I want to make a useful application with gtkmm/glade and I need to pass a simple Button-signal to another thread. But unfortunately, I don't know how to do this. I made a small piece of software for a better demonstration. which is a button and a…
Ali
  • 7
  • 5
1 2 3
63
64