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
1
vote
1 answer

Conflicting declarations in gtkmm headers

I'm beginning to think I need to scrap everything and redo it from scratch. I've been manually adding libraries from GTK and gtkmm in the codeblocks compiler settings, when I finally see something else than missing header, I get this. ||===…
user2283330
1
vote
1 answer

g_list_append gives a error when i try to complie

OS = linux (Fuduntu 2013.2) i am trying to use GList in my program but when i call the g_list_append i get this error error: invalid conversion from ‘const void*’ to ‘gpointer {aka void*}’ [-fpermissive] In file included from…
lasvig
  • 181
  • 4
  • 13
0
votes
0 answers

gcc - ISO C++17 does not allow dynamic exception specifications

Trying to compile a program written in c++17 and depending on gtk and glibmm and I get the following error on compilation: /usr/include/glibmm-2.4/glibmm/variant.h:498:1: error: ISO C++17 does not allow dynamic exception specifications 498 |…
no more sigsegv
  • 468
  • 5
  • 17
0
votes
0 answers

Dispatched lambda not reading the correct addresses?

For some context, I'm trying to build a GUI application, and at some point I need to build a widget and retrieve some data (in another thread, but for now I'm doing it in the main thread), this data will be stored in an object wrapped by a…
0
votes
0 answers

GTKMM4 app is crashing on calling window hide()

In my ubuntu 20.04 and Windows 10, I installed GTKMM4 with VCPKG since the normal installation of GTKMM4 is not available. Then I downloaded this example from the gnome tutorial page and added this cmake. On clicking the close button, which calls…
Renju Ashokan
  • 428
  • 6
  • 18
0
votes
1 answer

why glibmm is not showing correct time intervals?

I am getting very large values on the interface and where I am using Glib::DateTime::difference(), that function produces negative numbers initializer of controller class: UI_Controller::UI_Controller(Gtk::Builder * refference, Gtk::Application *…
0
votes
1 answer

How do I obtain GDBus interface name with Giomm?

I am trying to detect added Bluetooth devices/adapters using Bluez D-Bus API and GDBus. However, I am unable to check the name of the added D-Bus interface. I already tried accessing the interface name using the underlying GDBusInterfaceInfo C…
SSYSS
  • 31
  • 5
0
votes
1 answer

Can't Make GtkApplication run a Glib::Ref given by GTK::Builder

I'm trying to run an simple Gtkmm program but I'm failing to get the content to the GlibRef. Here's a sample code: #include int main(int argc, char** argv) { Glib::RefPtr app = Gtk::Application::create…
0
votes
1 answer

Why is my DBus call giving an UnknownMethod DBus error?

I'm trying to wrap my head around managing a systemd service using DBus calls. However, I can't seem to figure out the correct way to make a method call, since whatever I do it throws a DBus error // Create connection auto connection =…
Ben
  • 394
  • 7
  • 13
0
votes
1 answer

How to draw a cairo_surface_t in a Gtkmm DrawingArea

I am trying to draw a cairo_surface_t in Gtkmm DrawingArea. Can the cairo_surface_t * be used to initialize a Glib::RefPtr which can be passed to the Cairo::Context::set_source? #include class CDrawingArea : Gtk::DrawingArea { public: …
rur2641
  • 691
  • 1
  • 10
  • 26
0
votes
1 answer

Why does signal connection invalidate the SocketClient object?

I am trying to make a TCP / TLS connection with the SocketClient class from Gio via giomm. Everything was fine, until I connected to the SocketClient::event_signal () signal with sigc::ptr_fun (). Here is a trimmed down example code that…
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
0
votes
1 answer

Write Glib::ustring async to file with Glibmm (Gio::File)

I just could not find any example code to asynchronously write a Glib::ustring (or simply a string for that matter) to a file using glibmm (Gio::File). Can any one provide an example or link to one?
user1965150
0
votes
1 answer

glibmm/gtkmm custom property explanation/example request

i'm trying to reimplement a set of GLIB classes in C++ using GLIBMM. Most of them are buggy and need to be expanded a lot and since the entire project is done in C++ i preferred to port the code before correcting it. Unfortunately i'm not a GLIB…
Gianks
  • 63
  • 1
  • 15
0
votes
0 answers

Modify Binary Without Causing Segmentation Fault

I am new to patching binaries, but I would really like to get a package working on my system. I am trying to modify a binary package to fix an old link. The binary is trying to find the symbol _ZN4Glib23spawn_command_line_syncERKSsPSsS2_Pi however…
carloabelli
  • 4,289
  • 3
  • 43
  • 70
0
votes
1 answer

Glibmm Application Catch Operating System Signals

I'm trying to write my first application using Glibmm and I'm confused as to how you can connect to and handle operating system signals such as SIGINT. I assume it's possible since Glib seems to have a way to do this. Do I need to write my own C++…
Cadyyan
  • 311
  • 1
  • 3
  • 10