about: Change app name to Loupe and update devs

- Rename to Loupe to avoid confusion during incubation
  and potentially allow for release on Flathub
- Replace GNOME as developer since it violates software policy
- Put a more useful copyright statement
- Add me as developer
This commit is contained in:
Sophie Herold 2022-11-23 21:13:51 +01:00
parent aa781d3864
commit 3876f55b4c
4 changed files with 13 additions and 12 deletions

View file

@ -51,7 +51,7 @@
<attribute name="action">win.show-help-overlay</attribute> <attribute name="action">win.show-help-overlay</attribute>
</item> </item>
<item> <item>
<attribute name="label" translatable="yes">_About Image Viewer</attribute> <attribute name="label" translatable="yes">_About Loupe</attribute>
<attribute name="action">app.about</attribute> <attribute name="action">app.about</attribute>
</item> </item>
</section> </section>
@ -60,7 +60,7 @@
<property name="default-width">600</property> <property name="default-width">600</property>
<property name="default-height">498</property> <property name="default-height">498</property>
<property name="width-request">360</property> <property name="width-request">360</property>
<property name="title" translatable="yes">Image Viewer</property> <property name="title" translatable="yes">Loupe</property>
<binding name="title"> <binding name="title">
<closure type="gchararray" function="window_title"> <closure type="gchararray" function="window_title">
<lookup type="LpImageView" name="active-file">image_view</lookup> <lookup type="LpImageView" name="active-file">image_view</lookup>
@ -144,7 +144,7 @@
<property name="vexpand">True</property> <property name="vexpand">True</property>
<child> <child>
<object class="AdwStatusPage" id="status_page"> <object class="AdwStatusPage" id="status_page">
<property name="title" translatable="yes">Image Viewer</property> <property name="title" translatable="yes">Loupe</property>
<property name="description" translatable="yes">Click “Open File…” or drag an image here.</property> <property name="description" translatable="yes">Click “Open File…” or drag an image here.</property>
<child> <child>
<object class="GtkButton"> <object class="GtkButton">

View file

@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
Name=Image Viewer Name=Loupe
Exec=loupe %U Exec=loupe %U
Icon=@APP_ID@ Icon=@APP_ID@
DBusActivatable=true DBusActivatable=true
@ -7,5 +7,5 @@ Terminal=false
Type=Application Type=Application
Categories=GNOME;GTK;Graphics;2DGraphics;RasterGraphics;Viewer; Categories=GNOME;GTK;Graphics;2DGraphics;RasterGraphics;Viewer;
MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-gray;image/x-icb;image/x-ico;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-pcx;image/svg+xml;image/svg+xml-compressed;image/vnd.wap.wbmp;image/x-icns; MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-gray;image/x-icb;image/x-ico;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-pcx;image/svg+xml;image/svg+xml-compressed;image/vnd.wap.wbmp;image/x-icns;
Keywords=Picture;Slideshow;Graphics;Loupe; Keywords=Picture;Slideshow;Graphics;Image Viewer;
StartupNotify=true StartupNotify=true

View file

@ -148,21 +148,22 @@ impl LpApplication {
// an object and set all relevant properties very // an object and set all relevant properties very
// easily in a way that's idiomatic to Rust. // easily in a way that's idiomatic to Rust.
let about = adw::AboutWindow::builder() let about = adw::AboutWindow::builder()
.application_name(&i18n("Image Viewer")) .application_name(&i18n("Loupe"))
.application_icon(config::APP_ID) .application_icon(config::APP_ID)
.version(config::VERSION) .version(config::VERSION)
.developer_name(&i18n("The GNOME Project")) .developer_name(&i18n("Christopher Davis"))
.website("https://gitlab.gnome.org/BrainBlasted/loupe") .website("https://gitlab.gnome.org/BrainBlasted/loupe")
.issue_url("https://gitlab.gnome.org/BrainBlasted/loupe/-/issues/new") .issue_url("https://gitlab.gnome.org/BrainBlasted/loupe/-/issues/new")
.developers(vec![String::from( .developers(vec![
"Christopher Davis <christopherdavis@gnome.org>", String::from("Christopher Davis <christopherdavis@gnome.org>"),
)]) String::from("Sophie Herold <sophieherold@gnome.org>"),
])
.designers(vec![ .designers(vec![
String::from("Allan Day"), String::from("Allan Day"),
String::from("Jakub Steiner"), String::from("Jakub Steiner"),
String::from("Tobias Bernard"), String::from("Tobias Bernard"),
]) ])
.copyright(&i18n("© 2022 The GNOME Project")) .copyright(&i18n("Copyright © 2020–2022 Christopher Davis et al."))
.license_type(gtk::License::Gpl30) .license_type(gtk::License::Gpl30)
.build(); .build();

View file

@ -450,7 +450,7 @@ impl LpWindow {
#[template_callback] #[template_callback]
fn window_title(&self, file: Option<gio::File>) -> String { fn window_title(&self, file: Option<gio::File>) -> String {
file.and_then(|f| util::get_file_display_name(&f)) // If the file exists, get display name file.and_then(|f| util::get_file_display_name(&f)) // If the file exists, get display name
.unwrap_or_else(|| i18n("Image Viewer")) // Return that or the default if there's nothing .unwrap_or_else(|| i18n("Loupe")) // Return that or the default if there's nothing
} }
// We also have a closure that returns `adw::FlapFoldPolicy`. // We also have a closure that returns `adw::FlapFoldPolicy`.