Skip to content

Commit da17ac1

Browse files
committed
update naming again
This will be harder later
1 parent 98b78ee commit da17ac1

19 files changed

+103
-70
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "shutter-rust"
2+
name = "shutter"
33
version = "0.999.1"
44
edition = "2024"
55

data/icons/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
application_id = 'org.shutter-project.ShutterRust'
1+
application_id = 'org.shutter-project.Shutter'
22

33
scalable_dir = 'hicolor' / 'scalable' / 'apps'
44
install_data(

data/meson.build

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
desktop_file = i18n.merge_file(
2-
input: 'org.shutter-project.ShutterRust.desktop.in',
3-
output: 'org.shutter-project.ShutterRust.desktop',
2+
input: 'org.shutter-project.Shutter.desktop.in',
3+
output: 'org.shutter-project.Shutter.desktop',
44
type: 'desktop',
55
po_dir: '../po',
66
install: true,
@@ -13,8 +13,8 @@ if desktop_utils.found()
1313
endif
1414

1515
appstream_file = i18n.merge_file(
16-
input: 'org.shutter-project.ShutterRust.metainfo.xml.in',
17-
output: 'org.shutter-project.ShutterRust.metainfo.xml',
16+
input: 'org.shutter-project.Shutter.metainfo.xml.in',
17+
output: 'org.shutter-project.Shutter.metainfo.xml',
1818
po_dir: '../po',
1919
install: true,
2020
install_dir: get_option('datadir') / 'metainfo'
@@ -24,7 +24,7 @@ appstreamcli = find_program('appstreamcli', required: false, disabler: true)
2424
test('Validate appstream file', appstreamcli,
2525
args: ['validate', '--no-net', '--explain', appstream_file])
2626

27-
install_data('org.shutter-project.ShutterRust.gschema.xml',
27+
install_data('org.shutter-project.Shutter.gschema.xml',
2828
install_dir: get_option('datadir') / 'glib-2.0' / 'schemas'
2929
)
3030

data/org.shutter-project.ShutterRust.desktop.in renamed to data/org.shutter-project.Shutter.desktop.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
2-
Name=shutter-rust
3-
Exec=shutter-rust
4-
Icon=org.shutter-project.ShutterRust
2+
Name=shutter
3+
Exec=shutter
4+
Icon=org.shutter-project.Shutter
55
Terminal=false
66
Type=Application
77
Categories=GTK;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<schemalist gettext-domain="shutter-rust">
3-
<schema id="org.shutter-project.ShutterRust" path="/org/shutter-project/ShutterRust/">
3+
<schema id="org.shutter-project.Shutter" path="/org/shutter-project/Shutter/">
44
</schema>
55
</schemalist>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>org.shutter-project.Shutter</id>
4+
<name>Shutter</name>
5+
<summary>The feature-rich screenshot tool</summary>
6+
<launchable type="desktop-id">shutter.desktop</launchable>
7+
<metadata_license>CC0-1.0</metadata_license>
8+
<project_license>GPL-3.0+</project_license>
9+
<description>
10+
<p>
11+
Shutter is a feature-rich screenshot program. You can take a screenshot of a
12+
specific area, window, your whole screen, or even of a website - apply different
13+
effects to it, draw on it to highlight points, and then upload to an image
14+
hosting site, all within one window.
15+
</p>
16+
<p>
17+
Shutter allows you to capture nearly anything on your screen without losing
18+
control over your screenshots (tabbed interface).
19+
You don't need to open an external graphics editor like GIMP, because Shutter
20+
ships with its own built-in editor.
21+
</p>
22+
</description>
23+
<url type="homepage">https://shutter-project.org/</url>
24+
<url type="bugtracker">https://github.com/shutter-project/shutter/issues</url>
25+
<url type="contact">https://shutter-project.org/contact/</url>
26+
<screenshots>
27+
<screenshot type="default">
28+
<image>https://shutter-project.org/wp-content/uploads/key_feature_030.png</image>
29+
</screenshot>
30+
<screenshot>
31+
<image>https://shutter-project.org/wp-content/uploads/key_feature_042.png</image>
32+
</screenshot>
33+
<screenshot>
34+
<image>https://shutter-project.org/wp-content/uploads/key_feature_036.png</image>
35+
</screenshot>
36+
<screenshot>
37+
<image>https://shutter-project.org/wp-content/uploads/key_feature_073.png</image>
38+
</screenshot>
39+
</screenshots>
40+
</component>

data/org.shutter-project.ShutterRust.metainfo.xml.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project('shutter-rust', 'rust',
1+
project('shutter', 'rust',
22
version: '0.999.2',
33
meson_version: '>= 0.62.0',
44
default_options: [ 'warning_level=2', 'werror=false', ],

org.shutter-project.ShutterRust.json renamed to org.shutter-project.Shutter.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id" : "org.shutter-project.ShutterRust",
2+
"id" : "org.shutter-project.Shutter",
33
"runtime" : "org.gnome.Platform",
44
"runtime-version" : "master",
55
"sdk" : "org.gnome.Sdk",
@@ -37,7 +37,7 @@
3737
],
3838
"modules" : [
3939
{
40-
"name" : "shutter-rust",
40+
"name" : "shutter",
4141
"builddir" : true,
4242
"buildsystem" : "meson",
4343
"sources" : [

src/application.rs

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,28 @@
1818
* SPDX-License-Identifier: GPL-3.0-or-later
1919
*/
2020

21+
use adw::prelude::AdwDialogExt;
2122
use gtk::prelude::*;
2223
use adw::subclass::prelude::*;
2324
use gtk::{gio, glib};
2425

2526
use crate::config::VERSION;
26-
use crate::ShutterRustWindow;
27+
use crate::ShutterWindow;
2728

2829
mod imp {
2930
use super::*;
3031

3132
#[derive(Debug, Default)]
32-
pub struct ShutterRustApplication {}
33+
pub struct ShutterApplication {}
3334

3435
#[glib::object_subclass]
35-
impl ObjectSubclass for ShutterRustApplication {
36-
const NAME: &'static str = "ShutterRustApplication";
37-
type Type = super::ShutterRustApplication;
36+
impl ObjectSubclass for ShutterApplication {
37+
const NAME: &'static str = "ShutterApplication";
38+
type Type = super::ShutterApplication;
3839
type ParentType = adw::Application;
3940
}
4041

41-
impl ObjectImpl for ShutterRustApplication {
42+
impl ObjectImpl for ShutterApplication {
4243
fn constructed(&self) {
4344
self.parent_constructed();
4445
let obj = self.obj();
@@ -47,7 +48,7 @@ mod imp {
4748
}
4849
}
4950

50-
impl ApplicationImpl for ShutterRustApplication {
51+
impl ApplicationImpl for ShutterApplication {
5152
// We connect to the activate callback to create a window when the application
5253
// has been launched. Additionally, this callback notifies us when the user
5354
// tries to launch a "second instance" of the application. When they try
@@ -58,7 +59,7 @@ mod imp {
5859
let window = if let Some(window) = application.active_window() {
5960
window
6061
} else {
61-
let window = ShutterRustWindow::new(&*application);
62+
let window = ShutterWindow::new(&*application);
6263
window.upcast()
6364
};
6465

@@ -67,17 +68,17 @@ mod imp {
6768
}
6869
}
6970

70-
impl GtkApplicationImpl for ShutterRustApplication {}
71-
impl AdwApplicationImpl for ShutterRustApplication {}
71+
impl GtkApplicationImpl for ShutterApplication {}
72+
impl AdwApplicationImpl for ShutterApplication {}
7273
}
7374

7475
glib::wrapper! {
75-
pub struct ShutterRustApplication(ObjectSubclass<imp::ShutterRustApplication>)
76+
pub struct ShutterApplication(ObjectSubclass<imp::ShutterApplication>)
7677
@extends gio::Application, gtk::Application, adw::Application,
7778
@implements gio::ActionGroup, gio::ActionMap;
7879
}
7980

80-
impl ShutterRustApplication {
81+
impl ShutterApplication {
8182
pub fn new(application_id: &str, flags: &gio::ApplicationFlags) -> Self {
8283
glib::Object::builder()
8384
.property("application-id", application_id)
@@ -97,18 +98,19 @@ impl ShutterRustApplication {
9798

9899
fn show_about(&self) {
99100
let window = self.active_window().unwrap();
100-
let about = adw::AboutWindow::builder()
101-
.transient_for(&window)
101+
let about = adw::AboutDialog::builder()
102102
//.modal(true)
103-
.application_icon("shutter-rust")
104-
// TODO remove extra icon
105-
.application_icon("org.shutter-project.ShutterRust")
103+
.application_icon("shutter")
104+
// TODO remove extra icons
105+
.application_icon("org.shutter-project.Shutter")
106106
.application_icon("shutter")
107107
.version(VERSION)
108108
.developers(vec!["Unknown"])
109109
.copyright("© 2025 Unknown")
110+
.website("https://shutter-project.org")
111+
.issue_url("https://github.com/shutter-project/shutter/issues")
110112
.build();
111113

112-
about.present();
114+
about.present(Some(&window));
113115
}
114116
}

src/editorwindow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mod imp {
2222
use gtk::{glib, gio, CompositeTemplate};
2323

2424
#[derive(CompositeTemplate, Default)]
25-
#[template(resource = "/org/shutter-project/Shutter/Rust/editorwindow.ui")]
25+
#[template(resource = "/org/shutter-project/Shutter/editorwindow.ui")]
2626
pub struct EditorWindow {
2727
#[template_child]
2828
pub button: TemplateChild<gtk::Widget>,

src/gtk/menus.blp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ menu menubar {
99
action: "app.preferences";
1010
}
1111

12-
item {
13-
label: _("_Keyboard Shortcuts");
14-
action: "win.show-help-overlay";
15-
}
16-
1712
item {
1813
label: _("_About Shutter-Rust");
1914
action: "app.about";
2015
}
2116
}
2217

2318
submenu {
24-
label: _("Bbb");
19+
label: _("_Help");
20+
21+
item {
22+
label: _("_Keyboard Shortcuts");
23+
action: "win.show-help-overlay";
24+
}
2525

2626
item {
27-
label: _("Foo");
27+
label: _("_About");
2828
action: "app.about";
2929
}
3030
}

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ mod config;
2323
mod settings;
2424
mod window;
2525

26-
use self::application::ShutterRustApplication;
27-
use self::window::ShutterRustWindow;
26+
use self::application::ShutterApplication;
27+
use self::window::ShutterWindow;
2828

2929
use config::{GETTEXT_PACKAGE, LOCALEDIR, PKGDATADIR};
3030
use gettextrs::{bind_textdomain_codeset, bindtextdomain, textdomain};
@@ -39,14 +39,14 @@ fn main() -> glib::ExitCode {
3939
textdomain(GETTEXT_PACKAGE).expect("Unable to switch to the text domain");
4040

4141
// Load resources
42-
let resources = gio::Resource::load(PKGDATADIR.to_owned() + "/shutter-rust.gresource")
42+
let resources = gio::Resource::load(PKGDATADIR.to_owned() + "/shutter.gresource")
4343
.expect("Could not load resources");
4444
gio::resources_register(&resources);
4545

4646
// Create a new GtkApplication. The application manages our main loop,
4747
// application windows, integration with the window manager/compositor, and
4848
// desktop features such as file opening and single-instance applications.
49-
let app = ShutterRustApplication::new("org.shutter-project.ShutterRust", &gio::ApplicationFlags::empty());
49+
let app = ShutterApplication::new("org.shutter-project.Shutter", &gio::ApplicationFlags::empty());
5050

5151
// Run the application. This function will block until the application
5252
// exits. Upon return, we have our exit code to return to the shell. (This

src/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ blueprints = custom_target('blueprints',
1111
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
1212
)
1313

14-
gnome.compile_resources('shutter-rust',
15-
'shutter-rust.gresource.xml',
14+
gnome.compile_resources('shutter',
15+
'shutter.gresource.xml',
1616
gresource_bundle: true,
1717
install: true,
1818
install_dir: pkgdatadir,
@@ -21,7 +21,7 @@ gnome.compile_resources('shutter-rust',
2121

2222
conf = configuration_data()
2323
conf.set_quoted('VERSION', meson.project_version())
24-
conf.set_quoted('GETTEXT_PACKAGE', 'shutter-rust')
24+
conf.set_quoted('GETTEXT_PACKAGE', 'shutter')
2525
conf.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
2626
conf.set_quoted('PKGDATADIR', pkgdatadir)
2727

src/shutter-rust.gresource.xml renamed to src/shutter.gresource.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<gresources>
3-
<gresource prefix="/org/shutter-project/ShutterRust">
3+
<gresource prefix="/org/shutter-project/Shutter">
44
<file compressed="true" preprocess="xml-stripblanks">window.ui</file>
55
<file compressed="true" preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
66
<file compressed="true" preprocess="xml-stripblanks">gtk/menus.ui</file>

src/window.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Gtk 4.0;
22

3-
template $ShutterRustWindow: ApplicationWindow {
3+
template $ShutterWindow: ApplicationWindow {
44
default-width: 600;
55
default-height: 300;
66

src/window.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ mod imp {
2626
use super::*;
2727

2828
#[derive(Debug, Default, gtk::CompositeTemplate)]
29-
#[template(resource = "/org/shutter-project/ShutterRust/window.ui")]
30-
pub struct ShutterRustWindow {
29+
#[template(resource = "/org/shutter-project/Shutter/window.ui")]
30+
pub struct ShutterWindow {
3131
// Template widgets
3232
//#[template_child]
3333
//pub header_bar: TemplateChild<gtk::HeaderBar>,
@@ -36,9 +36,9 @@ mod imp {
3636
}
3737

3838
#[glib::object_subclass]
39-
impl ObjectSubclass for ShutterRustWindow {
40-
const NAME: &'static str = "ShutterRustWindow";
41-
type Type = super::ShutterRustWindow;
39+
impl ObjectSubclass for ShutterWindow {
40+
const NAME: &'static str = "ShutterWindow";
41+
type Type = super::ShutterWindow;
4242
type ParentType = gtk::ApplicationWindow;
4343

4444
fn class_init(klass: &mut Self::Class) {
@@ -50,19 +50,19 @@ mod imp {
5050
}
5151
}
5252

53-
impl ObjectImpl for ShutterRustWindow {}
54-
impl WidgetImpl for ShutterRustWindow {}
55-
impl WindowImpl for ShutterRustWindow {}
56-
impl ApplicationWindowImpl for ShutterRustWindow {}
53+
impl ObjectImpl for ShutterWindow {}
54+
impl WidgetImpl for ShutterWindow {}
55+
impl WindowImpl for ShutterWindow {}
56+
impl ApplicationWindowImpl for ShutterWindow {}
5757
}
5858

5959
glib::wrapper! {
60-
pub struct ShutterRustWindow(ObjectSubclass<imp::ShutterRustWindow>)
60+
pub struct ShutterWindow(ObjectSubclass<imp::ShutterWindow>)
6161
@extends gtk::Widget, gtk::Window, gtk::ApplicationWindow,
6262
@implements gio::ActionGroup, gio::ActionMap;
6363
}
6464

65-
impl ShutterRustWindow {
65+
impl ShutterWindow {
6666
pub fn new<P: glib::object::IsA<gtk::Application>>(application: &P) -> Self {
6767
glib::Object::builder()
6868
.property("application", application)

0 commit comments

Comments
 (0)