Skip to content

Commit

Permalink
Rename GResources paths and DBus prefixes to /io/elementary
Browse files Browse the repository at this point in the history
  • Loading branch information
stsdc committed Oct 14, 2024
1 parent f969aa2 commit 17866ce
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion data/css.gresource.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/github/stsdc/monitor">
<gresource prefix="/io/elementary/monitor">
<file alias="monitor-light.css" compressed="true">monitor-light.css</file>
<file alias="monitor-dark.css" compressed="true">monitor-dark.css</file>
</gresource>
Expand Down
2 changes: 1 addition & 1 deletion data/icons/icons.indicator.gresource.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/github/stsdc/monitor/icons">
<gresource prefix="/io/elementary/monitor/icons">
<file compressed="true" preprocess="xml-stripblanks">cpu-symbolic.svg</file>
<file compressed="true" preprocess="xml-stripblanks">gpu-symbolic.svg</file>
<file compressed="true" preprocess="xml-stripblanks">ram-symbolic.svg</file>
Expand Down
2 changes: 1 addition & 1 deletion data/io.elementary.monitor.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<value value="0" nick="normal"/>
<value value="1" nick="maximized"/>
</enum>
<schema path="/com/github/stsdc/monitor/settings/" id="io.elementary.monitor.settings">
<schema path="/io/elementary/monitor/settings/" id="io.elementary.monitor.settings">
<key type='b' name="is-maximized">
<default>false</default>
<summary>Is window maximized or not</summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Indicator/Indicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class Monitor.Indicator : Wingpanel.Indicator {
private DBusClient dbusclient;

construct {
Gtk.IconTheme.get_default ().add_resource_path ("/com/github/stsdc/monitor/icons");
Gtk.IconTheme.get_default ().add_resource_path ("/io/elementary/monitor/icons");
settings = new Settings ("io.elementary.monitor.settings");
this.visible = false;
display_widget = new Widgets.DisplayWidget ();
Expand Down
2 changes: 1 addition & 1 deletion src/Indicator/Services/DBusClient.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Monitor.DBusClient : Object {
interface = Bus.get_proxy_sync (
BusType.SESSION,
"io.elementary.monitor",
"/com/github/stsdc/monitor"
"/io/elementary/monitor"
);

Bus.watch_name (
Expand Down
8 changes: 4 additions & 4 deletions src/Services/Appearance.vala
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public class Monitor.Appearance : Object {
var provider = new Gtk.CssProvider ();

if (is_dark) {
provider.load_from_resource ("/com/github/stsdc/monitor/monitor-dark.css");
provider.load_from_resource ("/io/elementary/monitor/monitor-dark.css");
} else {
provider.load_from_resource ("/com/github/stsdc/monitor/monitor-light.css");
provider.load_from_resource ("/io/elementary/monitor/monitor-light.css");
}

Gtk.StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
Expand All @@ -23,9 +23,9 @@ public class Monitor.Appearance : Object {
gtk_settings.gtk_application_prefer_dark_theme = is_dark;

if (is_dark) {
provider.load_from_resource ("/com/github/stsdc/monitor/monitor-dark.css");
provider.load_from_resource ("/com/github/elementary/monitor/monitor-dark.css");
} else {
provider.load_from_resource ("/com/github/stsdc/monitor/monitor-light.css");
provider.load_from_resource ("/com/github/elementary/monitor/monitor-light.css");
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/Services/DBusServer.vala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DBus (name = "io.elementary.monitor")]
public class Monitor.DBusServer : Object {
private const string DBUS_NAME = "io.elementary.monitor";
private const string DBUS_PATH = "/com/github/stsdc/monitor";
private const string DBUS_PATH = "/io/elementary/monitor";

private static GLib.Once<DBusServer> instance;

Expand Down Expand Up @@ -45,7 +45,7 @@ public class Monitor.DBusServer : Object {
private void on_bus_aquired (DBusConnection conn) {
try {
debug ("DBus registered!");
conn.register_object ("/com/github/stsdc/monitor", get_default ());
conn.register_object ("/io/elementary/monitor", get_default ());
} catch (Error e) {
error (e.message);
}
Expand Down

0 comments on commit 17866ce

Please sign in to comment.