mirror of
https://github.com/elementary/gala.git
synced 2024-11-25 03:06:14 +01:00
RDNN dbus
This commit is contained in:
parent
4ab797332f
commit
2e08305427
@ -3,7 +3,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
[DBus (name = "org.pantheon.gala")]
|
||||
[DBus (name = "io.elementary.gala")]
|
||||
public interface Gala.WMDBus : GLib.Object {
|
||||
public abstract void perform_action (Gala.ActionType type) throws DBusError, IOError;
|
||||
}
|
||||
@ -17,13 +17,13 @@ public struct Gala.Daemon.MonitorLabelInfo {
|
||||
public int y;
|
||||
}
|
||||
|
||||
[DBus (name = "org.pantheon.gala.daemon")]
|
||||
[DBus (name = "io.elementary.gala.daemon")]
|
||||
public class Gala.Daemon.DBus : GLib.Object {
|
||||
private const string DBUS_NAME = "org.pantheon.gala";
|
||||
private const string DBUS_OBJECT_PATH = "/org/pantheon/gala";
|
||||
private const string DBUS_NAME = "io.elementary.gala";
|
||||
private const string DBUS_OBJECT_PATH = "/io/elementary/gala";
|
||||
|
||||
private const string DAEMON_DBUS_NAME = "org.pantheon.gala.daemon";
|
||||
private const string DAEMON_DBUS_OBJECT_PATH = "/org/pantheon/gala/daemon";
|
||||
private const string DAEMON_DBUS_NAME = "io.elementary.gala.daemon";
|
||||
private const string DAEMON_DBUS_OBJECT_PATH = "/io/elementary/gala/daemon";
|
||||
|
||||
private WMDBus? wm_proxy = null;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
public class Gala.Daemon.Application : Gtk.Application {
|
||||
public Application () {
|
||||
Object (application_id: "org.pantheon.gala.daemon");
|
||||
Object (application_id: "io.elementary.gala.daemon");
|
||||
}
|
||||
|
||||
public override void startup () {
|
||||
|
@ -39,7 +39,7 @@ public enum Gala.WindowFlags {
|
||||
IS_TILED
|
||||
}
|
||||
|
||||
[DBus (name = "org.pantheon.gala")]
|
||||
[DBus (name = "io.elementary.gala")]
|
||||
public interface Gala.WMDBus : GLib.Object {
|
||||
public abstract void perform_action (Gala.ActionType type) throws DBusError, IOError;
|
||||
}
|
||||
@ -53,13 +53,13 @@ public struct Gala.Daemon.MonitorLabelInfo {
|
||||
public int y;
|
||||
}
|
||||
|
||||
[DBus (name = "org.pantheon.gala.daemon")]
|
||||
[DBus (name = "io.elementary.gala.daemon")]
|
||||
public class Gala.Daemon.DBus : GLib.Object {
|
||||
private const string DBUS_NAME = "org.pantheon.gala";
|
||||
private const string DBUS_OBJECT_PATH = "/org/pantheon/gala";
|
||||
private const string DBUS_NAME = "io.elementary.gala";
|
||||
private const string DBUS_OBJECT_PATH = "/io/elementary/gala";
|
||||
|
||||
private const string DAEMON_DBUS_NAME = "org.pantheon.gala.daemon";
|
||||
private const string DAEMON_DBUS_OBJECT_PATH = "/org/pantheon/gala/daemon";
|
||||
private const string DAEMON_DBUS_NAME = "io.elementary.gala.daemon";
|
||||
private const string DAEMON_DBUS_OBJECT_PATH = "/io/elementary/gala/daemon";
|
||||
|
||||
private const string BG_MENU_ACTION_GROUP_PREFIX = "background-menu";
|
||||
private const string BG_MENU_ACTION_PREFIX = BG_MENU_ACTION_GROUP_PREFIX + ".";
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
public class Gala.Daemon.Application : Gtk.Application {
|
||||
public Application () {
|
||||
Object (application_id: "org.pantheon.gala.daemon");
|
||||
Object (application_id: "io.elementary.gala.daemon");
|
||||
}
|
||||
|
||||
public override void startup () {
|
||||
|
@ -6,6 +6,6 @@ GenericName=Multitasking View
|
||||
Icon=preferences-desktop-workspaces
|
||||
Terminal=false
|
||||
Categories=GNOME;GTK;System;
|
||||
Exec=dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:1
|
||||
Exec=dbus-send --session --dest=io.elementary.gala --print-reply /io/elementary/gala io.elementary.gala.PerformAction int32:1
|
||||
X-AppStream-Ignore=true
|
||||
OnlyShowIn=Pantheon;
|
||||
|
@ -5,7 +5,7 @@
|
||||
* 2012-2014 Jacob Parker
|
||||
*/
|
||||
|
||||
[DBus (name="org.pantheon.gala")]
|
||||
[DBus (name="io.elementary.gala")]
|
||||
public class Gala.DBus {
|
||||
private static DBus? instance;
|
||||
private static WindowManagerGala wm;
|
||||
@ -14,21 +14,21 @@ public class Gala.DBus {
|
||||
public static void init (WindowManagerGala _wm) {
|
||||
wm = _wm;
|
||||
|
||||
Bus.own_name (BusType.SESSION, "org.pantheon.gala", BusNameOwnerFlags.NONE,
|
||||
Bus.own_name (BusType.SESSION, "io.elementary.gala", BusNameOwnerFlags.NONE,
|
||||
(connection) => {
|
||||
if (instance == null)
|
||||
instance = new DBus ();
|
||||
|
||||
try {
|
||||
connection.register_object ("/org/pantheon/gala", instance);
|
||||
connection.register_object ("/io/elementary/gala", instance);
|
||||
} catch (Error e) { warning (e.message); }
|
||||
|
||||
try {
|
||||
connection.register_object ("/org/pantheon/gala/DesktopInterface", new DesktopIntegration (wm));
|
||||
connection.register_object ("/io/elementary/gala/DesktopInterface", new DesktopIntegration (wm));
|
||||
} catch (Error e) { warning (e.message); }
|
||||
},
|
||||
() => {},
|
||||
() => warning ("Could not acquire name\n") );
|
||||
() => warning ("Could not acquire name") );
|
||||
|
||||
Bus.own_name (BusType.SESSION, "org.gnome.Shell", BusNameOwnerFlags.NONE,
|
||||
(connection) => {
|
||||
|
@ -6,11 +6,11 @@
|
||||
*/
|
||||
|
||||
public class Gala.DaemonManager : GLib.Object {
|
||||
private const string DAEMON_DBUS_NAME = "org.pantheon.gala.daemon";
|
||||
private const string DAEMON_DBUS_OBJECT_PATH = "/org/pantheon/gala/daemon";
|
||||
private const string DAEMON_DBUS_NAME = "io.elementary.gala.daemon";
|
||||
private const string DAEMON_DBUS_OBJECT_PATH = "/io/elementary/gala/daemon";
|
||||
private const int SPACING = 12;
|
||||
|
||||
[DBus (name = "org.pantheon.gala.daemon")]
|
||||
[DBus (name = "io.elementary.gala.daemon")]
|
||||
public interface Daemon: GLib.Object {
|
||||
public abstract async void show_window_menu (WindowFlags flags, int width, int height, int x, int y) throws Error;
|
||||
public abstract async void show_desktop_menu (int display_width, int display_height, int x, int y) throws Error;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
[DBus (name="org.pantheon.gala.DesktopIntegration")]
|
||||
[DBus (name="io.elementary.gala.DesktopIntegration")]
|
||||
public class Gala.DesktopIntegration : GLib.Object {
|
||||
public struct RunningApplication {
|
||||
string app_id;
|
||||
|
@ -23,7 +23,7 @@ namespace Gala {
|
||||
*/
|
||||
public class MultitaskingView : Clutter.Actor, ActivatableComponent {
|
||||
public const int ANIMATION_DURATION = 250;
|
||||
private const string OPEN_MULTITASKING_VIEW = "dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:1";
|
||||
private const string OPEN_MULTITASKING_VIEW = "dbus-send --session --dest=io.elementary.gala --print-reply /io/elementary/gala io.elementary.gala.PerformAction int32:1";
|
||||
|
||||
private GestureTracker multitasking_gesture_tracker;
|
||||
private GestureTracker workspace_gesture_tracker;
|
||||
|
Loading…
Reference in New Issue
Block a user