Questions tagged [glibmm]

glibmm is the official C++ interface for the popular cross-platform library Glib. It provides non-UI API that is not available in standard C++ and makes it possible for gtkmm to wrap GObject-based APIs.

Documentation: https://developer.gnome.org/glibmm/stable/

34 questions
0
votes
1 answer

Emit safely a signal from a thread and connect it to a widget

I'm using Gtkmm and multithreading. I have a class "NetworkWorker" doig stuffs with the network in a secondary thread. In this class i want to make many signals which will be handled by my class "MainWindow". The methods which handle these signals,…
RaphyTheGeek
  • 115
  • 1
  • 1
  • 9
0
votes
1 answer

Ustring error (during printing)

I want to parse UTF-8 file to ustring, I read this file in str. There is an error: terminate called after throwing an instance of 'Glib::ConvertError'. What should I do? char* cs = (char*) malloc(sizeof(char) * str.length()); strcpy(cs,…
user1635327
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
-2
votes
1 answer

Why next code does not compile?

How do i rewrite next sources properly? It is part of GLib-powered IRC-bot. Compiler crashes with the next error: src/irc.cpp:20:9: error: cannot call member function ‘Glib::ListHandle >…
handicraftsman
  • 181
  • 1
  • 13
1 2
3