Skip to content

Commit 68d83a7

Browse files
author
Deren Vural
committed
Updated name of program
- gnome-nvidia-extension-rust -> gtk4-nvidia-monitor-rust - disabled json, shell, libappindicator crates in Cargo.toml as unused Signed-off-by: Deren Vural <[email protected]>
1 parent 4f29106 commit 68d83a7

File tree

10 files changed

+72
-29
lines changed

10 files changed

+72
-29
lines changed

Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
# SPDX-License-Identifier: GPL-3.0-or-later
33

44
[package]
5-
name = "gnome-nvidia-extension-rust"
5+
name = "gtk4-nvidia-monitor-rust"
66
version = "0.1.0"
77
edition = "2021"
88

99
[dependencies]
1010
adwaita = { version = "^0.1.1", package = "libadwaita" }
1111
gtk = { version = "^0.4.8", package = "gtk4" }
12-
shell = { version = "^0.4.4", package = "gtk-layer-shell" } #may not need
13-
serde = { version = "1.0", features = ["derive"] }
14-
serde_json = "1.0"
12+
gdk = { version = "^0.4.8", package = "gdk4" }
1513

14+
#shell = { version = "^0.4.4", package = "gtk-layer-shell" } #may not need
15+
#serde = { version = "1.0", features = ["derive"] }
16+
#serde_json = "1.0"
1617
#gobject = { version = "^0.15.10", package = "gobject-sys" }
17-
libappindicator = { version = "^0.7.1", package = "libappindicator" }
18+
#libappindicator = { version = "^0.7.1", package = "libappindicator" }
1819

1920
[build-dependencies]
2021
adwaita = { version = "^0.1.1", package = "libadwaita" }

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ fn main() {
4747
compile_resources(
4848
"src/resources",
4949
"src/resources/resources.gresource.xml",
50-
"nvidiaextensionrust.gresource",
50+
"nvidiamonitorrust.gresource",
5151
);
5252
}

install_schemas.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Variables
2424
SCHEMA_DIR="$HOME/.local/share/glib-2.0/schemas"
25-
SCHEMA_FILE="com.gtk_d.NvidiaExtensionRust.gschema.xml"
25+
SCHEMA_FILE="com.gtk_d.NvidiaMonitorRust.gschema.xml"
2626

2727
# Create schema directory if it doesn't exist
2828
if [[ -d "$SCHEMA_DIR" ]]; then

src/com.gtk_d.NvidiaExtensionRust.gschema.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
SPDX-FileCopyrightText: 2022 Deren Vural
4+
SPDX-License-Identifier: GPL-3.0-or-later
5+
-->
6+
<schemalist>
7+
<schema id="com.gtk_d.NvidiaMonitorRust" path="/com/gtk_d/NvidiaMonitorRust/">
8+
<key name="nvidia-settings-open" type="b">
9+
<default>false</default>
10+
<summary>Nvidia settings state</summary>
11+
<description>
12+
Nvidia settings open/closed
13+
</description>
14+
</key>
15+
<key name="app-settings-open" type="b">
16+
<default>false</default>
17+
<summary>App settings state</summary>
18+
<description>
19+
App settings window open/closed
20+
</description>
21+
</key>
22+
23+
<key name="refreshrate" type="i">
24+
<default>5</default>
25+
<summary>Refresh Interval (s)</summary>
26+
<description>
27+
The time between refreshes in seconds
28+
</description>
29+
</key>
30+
<key name="tempformat" type="i">
31+
<default>0</default>
32+
<summary>Temperature Unit</summary>
33+
<description>
34+
Set the temperature unit to be displayed in either Celcius (0) or Fahrenheit (1)
35+
</description>
36+
</key>
37+
<key name="provider" type="i">
38+
<default>0</default>
39+
<summary>Properties Provider</summary>
40+
<description>
41+
Select the properties provider to use, Nvidia Settings and Nvidia SMI (0), Nvidia Settings only (1), Nvidia SMI only (2), or Optimus (3)
42+
</description>
43+
</key>
44+
45+
<!-- Not entirely sure what these are for..-->
46+
<key name="settingsconfig" type="as">
47+
<default>[]</default>
48+
</key>
49+
<key name="smiconfig" type="as">
50+
<default>[]</default>
51+
</key>
52+
<key name="settingsandsmiconfig" type="as">
53+
<default>[]</default>
54+
</key>
55+
<key name="optimusconfig" type="as">
56+
<default>[]</default>
57+
</key>
58+
</schema>
59+
</schemalist>

src/custom_button/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct CustomButton;
2929
#[glib::object_subclass]
3030
impl ObjectSubclass for CustomButton {
3131
//Crate+Obj to avoid collisions
32-
const NAME: &'static str = "NvidiaExtensionRustCustomButton";
32+
const NAME: &'static str = "NvidiaMonitorRustCustomButton";
3333
// the actual GObject that will be created
3434
type Type = super::CustomButton;
3535
// Parent GObject we inherit from

src/formatter/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct Formatter;
3333
#[glib::object_subclass]
3434
impl ObjectSubclass for Formatter {
3535
//Crate+Obj to avoid collisions
36-
const NAME: &'static str = "NvidiaExtensionRustFormatter";
36+
const NAME: &'static str = "NvidiaMonitorRustFormatter";
3737
// the actual GObject that will be created
3838
type Type = super::Formatter;
3939
// Parent GObject we inherit from

src/processor/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub struct Processor {
3939
#[glib::object_subclass]
4040
impl ObjectSubclass for Processor {
4141
//Crate+Obj to avoid collisions
42-
const NAME: &'static str = "NvidiaExtensionRustProcessor";
42+
const NAME: &'static str = "NvidiaMonitorRustProcessor";
4343
// the actual GObject that will be created
4444
type Type = super::Processor;
4545
// Parent GObject we inherit from

src/property/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct Property {
4141
#[glib::object_subclass]
4242
impl ObjectSubclass for Property {
4343
//Crate+Obj to avoid collisions
44-
const NAME: &'static str = "NvidiaExtensionRustProperty";
44+
const NAME: &'static str = "NvidiaMonitorRustProperty";
4545
// the actual GObject that will be created
4646
type Type = super::Property;
4747
// Parent GObject we inherit from

src/provider/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct Provider {
4040
#[glib::object_subclass]
4141
impl ObjectSubclass for Provider {
4242
//Crate+Obj to avoid collisions
43-
const NAME: &'static str = "NvidiaExtensionRustProcessor";
43+
const NAME: &'static str = "NvidiaMonitorRustProcessor";
4444
// the actual GObject that will be created
4545
type Type = super::Provider;
4646
// Parent GObject we inherit from

0 commit comments

Comments
 (0)