code looks good, but the juggling with m_connection looks a bit brittle.
How about initializing m_connection in the constructor with g_bus_get_sync(), unreffing it in the destructor and using g_bus_watch_name_on_connection() for name watching?
« Back to merge proposal
code looks good, but the juggling with m_connection looks a bit brittle.
How about initializing m_connection in the constructor with g_bus_get_sync(), unreffing it in the destructor and using g_bus_watch_ name_on_ connection( ) for name watching?