Skip to content

Commit

Permalink
gnome-idle-monitor.c: Fix some dbus names Mutter->Muffin.
Browse files Browse the repository at this point in the history
The session manager uses this to get notifications about idle
state changes now - instead of its own idle-monitor code (which
only worked with x11), it now relies on muffin to notify on
changes from various sources (xorg, wayland, upower).
  • Loading branch information
mtwebster committed Jan 15, 2024
1 parent 9822c17 commit d0f8c74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions libcinnamon-desktop/gnome-idle-monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ G_DEFINE_TYPE_WITH_CODE (GnomeIdleMonitor, gnome_idle_monitor, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (G_TYPE_INITABLE,
gnome_idle_monitor_initable_iface_init))

#define IDLE_MONITOR_PATH "/org/gnome/Mutter/IdleMonitor/Core"
#define IDLE_MONITOR_PATH "/org/cinnamon/Muffin/IdleMonitor/Core"

static void
on_watch_fired (MetaDBusIdleMonitor *proxy,
Expand Down Expand Up @@ -256,7 +256,7 @@ on_name_appeared (GDBusConnection *connection,
meta_dbus_object_manager_client_new (connection,
G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE,
name_owner,
"/org/gnome/Mutter/IdleMonitor",
"/org/cinnamon/Muffin/IdleMonitor",
monitor->priv->cancellable,
on_object_manager_ready,
monitor);
Expand Down Expand Up @@ -296,7 +296,7 @@ gnome_idle_monitor_initable_init (GInitable *initable,
monitor = GNOME_IDLE_MONITOR (initable);

monitor->priv->name_watch_id = g_bus_watch_name (G_BUS_TYPE_SESSION,
"org.gnome.Mutter.IdleMonitor",
"org.cinnamon.Muffin.IdleMonitor",
G_BUS_NAME_WATCHER_FLAGS_NONE,
on_name_appeared,
on_name_vanished,
Expand Down
4 changes: 2 additions & 2 deletions libcinnamon-desktop/idle-monitor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
<node>
<!--
org.gnome.Mutter.IdleMonitor:
org.cinnamon.Muffin.IdleMonitor:
@short_description: idle monitor interface
This interface is used by gnome-desktop to implement
user activity monitoring.
-->

<interface name="org.gnome.Muffin.IdleMonitor">
<interface name="org.cinnamon.Muffin.IdleMonitor">
<method name="GetIdletime">
<arg name="idletime" direction="out" type="t"/>
</method>
Expand Down
2 changes: 1 addition & 1 deletion libcinnamon-desktop/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dbus_idle_built_sources = gnome.gdbus_codegen('meta-dbus-idle-monitor',
'idle-monitor.xml',
namespace: 'MetaDBus',
interface_prefix: 'org.gnome.Muffin',
interface_prefix: 'org.cinnamon.Muffin',
object_manager: true
)

Expand Down

0 comments on commit d0f8c74

Please sign in to comment.