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
3
votes
0 answers

How can I create a GTK combobox with no relief?

I know you can remove a button's relief with button.set_relief(Gtk::RELIEF_NONE); // gtkmm Or gtk_button_set_relief(button, GTK_RELIEF_NONE); // gtk But there's no corresponding method for a combobox. What's the easiest way to accomplish…
ergosys
  • 47,835
  • 5
  • 49
  • 70
3
votes
2 answers

Eclipse CDT & gtkmm: "... could not be resolved.", but compiles and runs

I'm coding in Eclipse CDT in C++ with gtkmm. I have managed to set up Eclipse so it compiles the code correctly, by adding pkg-config gtkmm-3.0 --cflags --libs to the compiler options. So it runs, and works. But in the editor is everything gtk…
Daniel Jonsson
  • 3,261
  • 5
  • 45
  • 66
3
votes
2 answers

gtkmm drawing single pixels

Refering to the example on the Documentation for Gtkmms GdkRGB: #include #define IMAGE_WIDTH 256 #define IMAGE_HEIGHT 256 guchar rgbbuf[IMAGE_WIDTH * IMAGE_HEIGHT * 3]; gboolean on_darea_expose (GtkWidget *widget, …
Atmocreations
  • 9,923
  • 15
  • 67
  • 102
3
votes
1 answer

gtkmm builder from glade file doesn't work

My gtkmm program won't show any windows. Compile works fine. These are the messages I get when running: (process:2312): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject /gtype.c:2706: You forgot to call…
Guido Tarsia
  • 1,962
  • 4
  • 27
  • 45
3
votes
1 answer

Trouble getting gtkmm-4.0 to work on macOS Monterey

I'm having trouble getting gtkmm-4.0 to work on Mac OS Monterey. Here is a simple C++ application that uses gtkmm4. // helloworld.cpp #include class MyWindow : public Gtk::Window { public: MyWindow(); }; MyWindow::MyWindow() { …
ktm5124
  • 11,861
  • 21
  • 74
  • 119
3
votes
1 answer

GTKMM - Error drawing image for some widths

I'm trying to draw on a window with Gtkmm for C++, cairo::context, gdk::pixbuf. I've noticed that for some widths (in my example 298), instead of my image, I get some horizontal black lines (alternated with white stripes). For other widths (in my…
crillion
  • 338
  • 3
  • 10
3
votes
1 answer

Problem with Gtk::TextView::modify_font when moving from GTKMM 2.4 to GTK3.0

I have an application that uses gtkmm 2.4 which has worked fine until I recently changed over to gtkmm 3.0. I am having a problem with g++ (version 4.6.1) where it keeps spitting out the error "error: ‘class Gtk::TextView’ has no member named…
Jeff Geisperger
  • 583
  • 4
  • 17
3
votes
1 answer

How to disable focus grabbing for GTK+ tool button

GTK+ Button widget has focus_on_click property that controls grabbing of focus. But I use MenuToolButton that has no such a property. I don't want the focus on click. How to get rid of it? Thanks!
lzap
  • 16,417
  • 12
  • 71
  • 108
3
votes
1 answer

Example of gtkmm 4 FileChooserNative code

I can't find code examples using Gtk::FileChooserNative to help me understand how to work with this class. Documentation from here isn't that helpful. My goal is to create a function which opens a native file chooser dialog and after the user…
3
votes
1 answer

Move the position of a Gtk::Widget inside the Gtk::Grid

I want to move the location of two widgets inside a grid. How can I do it? What I have got so far: pWidget1->unparent(); pWidget2->unparent(); pGrid->attach(*(pWidget1), 0, 5); pGrid->attach(*(pWidget2), 0, 7); …
Muh Mah
  • 35
  • 5
3
votes
2 answers

Where can I find good documentation for Gtkmm?

It seems to be very difficult to find quality documentation on the topic of Gtkmm. Is there good documentation for Gtkmm? If so, where can I find it?
BobMorane
  • 3,870
  • 3
  • 20
  • 42
3
votes
3 answers

Gtkmm compiling error

OS: Windows 7 Compiler: MinGW IDE: Code::Blocks I just installed Gtkmm on my computer in the folder C:/gtkmm/ and set up an example program. When I compiled it, it gave the error "gtkmm.h: No such file or directory" I tried setting the PATH variable…
ConsciousCode
  • 563
  • 4
  • 18
3
votes
1 answer

How to move my Gtk::Window to a specific position on screen in gtkmm 4

I subclassed Gtk::Window and i want to move it to a position on the screen, but i cannot find any method to do this. Was Gtk::Window::move removed in Gtk4 ? If yes, how can i move my window ? I currently have this in the constructor of my window…
TheEagle
  • 5,808
  • 3
  • 11
  • 39
3
votes
2 answers

Problem with makefile and gtkmm

I am currently trying to write a simple program with gtkmm, but I am running into issues when I try to compile it. I have a few simple files: main.cc which only contains the main function, test.cc and test.h which define a class based Gtk::Window…
javadpup
  • 31
  • 1
  • 3
3
votes
1 answer

How to write the letter ñ in textbuffer gtkmmTextView?

When I try to insert the ñ in textbuffer TextView the CMD displays the following error: (textEditor.exe:696): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion g_utf8_validate (text, len, NULL)' failed Source example (c++ and…
rChavz
  • 235
  • 3
  • 16