Category : gtkmm

I have just gotten started with gtkmm and I am trying to update a label at a predefined interval by letting a timeout method call my Update() method. However, when writing the following line in the constructor of my MainWindow class: Glib::signal_timeout().connect(sigc::mem_fun(*this, &MainWindow::Update), 1000); I get the following error: /usr/include/sigc++-2.0/sigc++/functors/slot.h:136:36: error: void value not ignored ..

Read more

My goal is to show a brief "Please Wait…" dialog with an animated gif (spinner) in a Gtk::Dialog. Here’s how I "insert" my gif programatically (after a button click) : … Gtk::Image *imageLoading = new Gtk::Image(); imageLoading->property_pixbuf_animation() = Gdk::PixbufAnimation::create_from_file("resources/loading.gif"); m_boxLoadingAnimation->pack_start(*imageLoading); … Now, my problem is that unless I use the Gtk:Dialog run() method, the gif ..

Read more

I have been recently been trying to get started with GTKmm on my MacBook, and I have installed lots of the dependencies using Homebrew. However, when I go to compile my program, I get this error: Undefined symbols for architecture x86_64: "HelloWorld::HelloWorld()", referenced from: _main in main-88dc5e.o "HelloWorld::~HelloWorld()", referenced from: _main in main-88dc5e.o "Gtk::Application::run(Gtk::Window&)", referenced ..

Read more

I have written a small application using Gtkmm for which I would like to provide documentation for users. For this, I would like to launch the Gnome help system from my application’s menu (For a working example, one can look at gedit). First, I wrote a minimal Mallard index.page file: <page xmlns="http://projectmallard.org/1.0/" type="guide" id="index"> <title>Example ..

Read more