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
5
votes
2 answers

Use autotools installation prefix

I am writing a C++ program using gtkmm as the window library and autotools as my build system. In my Makefile.am, I install the icon as follows: icondir = $(datadir)/icons/hicolor/scalable/apps icon_DATA = $(top_srcdir)/appname.svg EDIT: changed…
Nathan Vance
  • 605
  • 1
  • 5
  • 21
5
votes
1 answer

gtkmm: Simple example fails to compile: gtkmm.h: No such file or directory

I am working through the gtkmm documentation. I have started by trying to compile the "Simple Example". Here is the code. It can also be found here. /// SimpleExample.cpp #include int main(int argc, char *argv[]) { auto app = …
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225
5
votes
1 answer

How to configure Clion to compile gtkmm project

I have copied a sample project from GTK #include int main(int argc, char *argv[]) { auto app = Gtk::Application::create(argc, argv, "org.gtkmm.examples.base"); Gtk::Window window; window.set_default_size(200, 200); …
sukovanej
  • 658
  • 2
  • 8
  • 18
5
votes
1 answer

Gtk Progress bar height

I'm developing a Gtk application in c++. (Gtk 3.0). My problem is that I can't change ProgressBar height! (https://developer.gnome.org/gtk3/stable/GtkProgressBar.html) The picture below will show what I need. In general I would like to have a…
Humpt
  • 51
  • 1
  • 4
5
votes
0 answers

GTK - Custom shaped window

I'm looking for a way to create custom shaped window with a hole like for example like the one of BS-Player: The area between the gray and the blue part is both transparent and click-through. I seek to implement similar functionality, for example…
user_4685247
  • 2,878
  • 2
  • 17
  • 43
5
votes
1 answer

Installing gtk3 and gtkmm on mac

I have been trying to install gtk+3 and gtkmm on my Macbook for GUI development. I have tried using homebrew and mac install script on gnome website(here). I'm not sure what else to do other than download all of the source code and compiling that. I…
Andrew B.
  • 167
  • 2
  • 10
5
votes
2 answers

How to combat "Fatal IO error 11 (Resource temporarily unavailable) on X server" in multithreaded gtkmm application?

I am attempting to write a gtkmm application that uses C++11 multithreading. However, i keep running into Fatal IO error 11 (Resource temporarily unavailable) on X server error. I have several Gtk::Image objects on my window. Each one is in its own…
v010dya
  • 5,296
  • 7
  • 28
  • 48
5
votes
1 answer

How do I get the giomm-2.4 package?

I am trying to build a GTK application (c++) using NetBeans. After including the gtkmm.h file I had to use the pkg-config tool to determine what it's dependencies where. I then added them to the included folders. Netbean complains that it cannot…
Nick
  • 19,198
  • 51
  • 185
  • 312
5
votes
1 answer

What would be gtkmm's version of g_signal_emit or g_signal_emit_by_name?

I'm running a timeout function in my program background and I'm trying to emit a delete-event signal from Gtk::Button, this is the code snippet in my constructor: // Glib::SignalProxy1 m_deleteSlot; // m_deleteSlot…
Joel
  • 1,805
  • 1
  • 22
  • 22
5
votes
2 answers

Auto-connection signals with GtkBuilder but on GTKmm

In C, I can autoconnect signals with this code: gtk_builder_connect_signals (builder, NULL) How to do this in C++ with GTKmm?
drmgc
  • 171
  • 3
  • 9
5
votes
2 answers

Connecting key accelerators in Gtk+ (gtkmm)

I've been writing a Gtk+ application using gtkmm, and I'm trying to add a global keyboard shortcut which calls a callback. Unfortunately, the connect() method of Gtk::AccelGroup isn't available in gtkmm, apparently intentionally because you can make…
Kazade
  • 1,297
  • 2
  • 15
  • 25
5
votes
1 answer

Get data from selected row of gtk treeview - gtkmm, c++

I have a GTK application that has a window with a treeview and a button. When the button is clicked I need to get the data from the first (and only) column of the selected row in the treeview. This is the class for the columns: class ModelColumns:…
5
votes
2 answers

Example of using webkitgtk with gtkmm 3.0

I've searched a lot, but I wasn't able to find a good example explaining how to use webkitgtk with gtkmm 3.0. Anyone knows about it? Is there some good tutorial, or sample code? Thanks in advance!
Mithenks
  • 333
  • 1
  • 3
  • 11
5
votes
0 answers

Cross compiling gtkmm on Linux for Windows gives error "unrecognized option ‘-pthread’"

I am trying to compile simple "Hello World!" gtkmm source code provided in gtkmm tutorial with mingw on Linux in order to make a Windows executable file. I can execute complied source code by the following command line: g++ main.cpp -o bin…
westellsfi
  • 51
  • 2
5
votes
2 answers

Force numeric input in a Gtk::Entry widget

I'm searching for a possible method to only allow numeric input in a Gtk::Entry widget, without relying on SpinButtons. The matter is, I found a template for this (link), but it just won't work. I can compile it along my other code, but if I want to…
AcMNPV
  • 53
  • 1
  • 3
1 2
3
63 64