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

Implementing a custom gtkmm treemodel

I am trying to implement a custom tree mode in gtkmm (reason for doing this is to show rows from a database using some pageination). I habe implemented all vfunc-methods, but i still get following errors: glibmm-CRITICAL **:…
Philipp H.
  • 1,513
  • 3
  • 17
  • 31
0
votes
1 answer

Gtkmm3: Getting a signal when clicking on a row in TreeView

I have this code: Glib::RefPtr clSelection = treeview.get_selection(); clSelection.signal_changed().connect( sigc::mem_fun(*this, &MyClass::treeview_clicked) ); And get this error on compile with g++: ‘class…
idlackage
  • 2,715
  • 8
  • 31
  • 52
0
votes
1 answer

fink doesn't list gtkmm2.4

I'm trying to get started with gtkmm, and I'm using a mac. So I tried using fink to get it installed. Looking online, it seems to be up to date, but when I check on the command line fink list gtkmm It only lists gtkmm2. I went ahead and tried that,…
Russell Leggett
  • 8,795
  • 3
  • 31
  • 45
0
votes
1 answer

Gtkmm click signal for image widget

In Gtkmm how to respond to a click event on an image widget?I mean image widget does not support signal_clicked function like button widget .
Alex_ban
  • 221
  • 2
  • 11
0
votes
1 answer

Blank window with gtkmm derived widget

I'm currently programming a little Desktop application in c++ and it's the first time, that I use gtkmm for it. I followed the tutorials from here but all I get is a blank window. It worked before refacturing the MainWindow to its own…
mw88
  • 489
  • 2
  • 7
  • 17
0
votes
4 answers

using a canvas in gtkmm application

I am starting to try out some gui libs with c++ interface. Actually I try some examples with gtkmm. Simple examples work, but now I search for a canvas. I found libgnomecanvasmm with seems to be part of libgnomemm with seems to be usable under gtkmm…
Klaus
  • 24,205
  • 7
  • 58
  • 113
0
votes
2 answers

How is libsigc included in gtkmm projects?

In the gtkmm tutorial hello world example the libsigc++ library is used inside the helloword.cc file: #include "helloworld.h" #include HelloWorld::HelloWorld() : m_button("Hello World") // creates a new button with label "Hello…
Tiddo
  • 6,331
  • 6
  • 52
  • 85
0
votes
1 answer

Gtk(mm) Grid Layout Control

Does Gtk(mm) contain anything similar to WPF's XAML Grid? The reason being is that I want to make an app that is capable of running on Linux, Windows, etc. The only plausible solution is Gtk or Qt, but those don't have layout documents like WPF does…
Cole Tobin
  • 9,206
  • 15
  • 49
  • 74
0
votes
1 answer

Gtk::TreeModelColumn / GType in C++ (gtkmm3)

(All this In perspective of implementation of own TreeModel, not usage of existing one) How do i make any use of Gtk::TreeModelColumn in C++ implementation of own TreeModel? As far i understood, it serves the purpose of uniquely identifying types…
Alexander Tumin
  • 1,561
  • 4
  • 22
  • 33
0
votes
1 answer

Gtk::TreeModel::iterator usage when implementing TreeModel

I am trying to implement own TreeModel for use in TreeView. I have subclassed Gtk::TreeModel and currently trying to override virtual methods with my own implementation. But i have a problem with very basics of it. Say, we have virtual bool…
Alexander Tumin
  • 1,561
  • 4
  • 22
  • 33
0
votes
0 answers

Trouble with Gtk+ info bar

I'm trying to add an info bar to a dialog when my program is not connected to the databse. The info bar shows, however, if I close the dialog and open it again, every time there is a new button. Here's my code: Window.hpp class Window: public…
Adri C.S.
  • 2,909
  • 5
  • 36
  • 63
0
votes
1 answer

Conversion or cast of Glib::RefPtr to Gtk::Widget& needed

I have trouble to convert a Glib::RefPtr into a GtkWidget, with T derived from Widget: #include #include #include #include class MyPic : public Gtk::DrawingArea…
Jörg Beyer
  • 3,631
  • 21
  • 35
0
votes
1 answer

Adding a Gtk::Grid repeatedly to a Gtk::Box

I have a Window object which contains only a grid. I want to use Gtk::Builder to get a pointer to the grid, and then use some Gtk::Box's Gtk::Box->pack_end() to add the grid to it many times (with manipulated contents each time). Though each time…
Haix64
  • 806
  • 1
  • 13
  • 21
0
votes
2 answers

How to put Gtk:Grid in Gtk:Window with gtkmm

How can I put Gtk:Grid in Gtk:Window using gtkmm. It says "no known conversion for argument 1 from «Gtk::Grid()» to «Gtk::Widget&»" when I'm trying to call main_win.add(grid); This works but it's too ugly: ... int main (int argc, char…
user28667
  • 1,073
  • 10
  • 9
0
votes
1 answer

Cannot catch signal_motion_notify_event in gtkmm

I used following code to catch motion notify events on a Gtk::TreeView. // This is the Gtk::Builder from which i read my tree view. builder_ptr->get_widget("treeview", m_treeview_ptr); // Connecting that…
Philipp H.
  • 1,513
  • 3
  • 17
  • 31