I have a small program in C++ using gtkmm and webkit which allows me to open a remote URL inside a native application. My application has an alert feature which automatically plays a local audio file but I found out that webkitgtk does not allow audio autoplay without DOM interaction(similar to chrome). I went through ..
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 ..
Hi i have a Gtk::SpinButton and I want to format it’s display output to something like 1.111.111,11 (currency format in my country). I create a subclass and override the method on_output(), it works when I type the value, but when I try to use the +- i get an wrong value, does anyone have an ..
Below are two functionally identical procedures. Given the exact same data set, the Gtk+3 procedure written in C runs in 0.03 seconds. The gtkmm 3 procedure written in C++ runs in 30 seconds. Gtk+ uses "GtkListStore *store" and gtkmm uses "Glib::RefPtrGtk::ListStore m_refListStore;". So, the question is, is gtkmm just plain slower by literally 1000 times? ..
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 error: terminate called after throwing an instance of ‘Gtk::BuilderError’ ..
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 ..
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 progress bar and if you press that button the ..
This is driving me insane. For some time I was learning C++ and I was looking for some crossplatform, easy to use gui and my choice was gtkmm. I’ve made my first app using GTKMM under linux for my company. It was smooth experience using glade. Under linux everything worked fine, but when I started ..
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 ..
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 ..