mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Support change to enum definitions in gtkmm/glibmm/pangomm (#3801)
Newer versions (gtkmm 4 and its dependencies) of these libraries have switched from enums to enum classes. Wrap the names with macros to support both.
This commit is contained in:
@@ -136,13 +136,13 @@ void dbus_proxy_ready_callback(Glib::RefPtr<Gio::AsyncResult>& res)
|
||||
void gtr_notify_init()
|
||||
{
|
||||
Gio::DBus::Proxy::create_for_bus(
|
||||
Gio::DBus::BUS_TYPE_SESSION,
|
||||
TR_GIO_DBUS_BUS_TYPE(SESSION),
|
||||
NotificationsDbusName,
|
||||
NotificationsDbusCoreObject,
|
||||
NotificationsDbusCoreInterface,
|
||||
&dbus_proxy_ready_callback,
|
||||
{},
|
||||
Gio::DBus::PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES);
|
||||
TR_GIO_DBUS_PROXY_FLAGS(DO_NOT_LOAD_PROPERTIES));
|
||||
}
|
||||
|
||||
namespace
|
||||
@@ -172,7 +172,7 @@ void gtr_notify_torrent_completed(Glib::RefPtr<Session> const& core, tr_torrent_
|
||||
|
||||
try
|
||||
{
|
||||
Glib::spawn_async({}, argv, Glib::SPAWN_SEARCH_PATH);
|
||||
Glib::spawn_async({}, argv, TR_GLIB_SPAWN_FLAGS(SEARCH_PATH));
|
||||
}
|
||||
catch (Glib::SpawnError const&)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user