Skip to content

Commit c05433c

Browse files
committed
Remove unused GUI stuff
1 parent 18e332c commit c05433c

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

credentialsd-ui/data/resources/ui/window.ui

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,11 @@
1010
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
1111
<attribute name="action">win.show-help-overlay</attribute>
1212
</item>
13-
<item>
14-
<attribute name="label" translatable="yes">_About Credential Manager</attribute>
15-
<attribute name="action">app.about</attribute>
16-
</item>
1713
</section>
1814
</menu>
1915
<template class="CredentialsUiWindow" parent="GtkApplicationWindow">
2016
<child type="titlebar">
2117
<object class="GtkHeaderBar" id="headerbar">
22-
<child type="end">
23-
<object class="GtkMenuButton" id="appmenu_button">
24-
<property name="icon-name">open-menu-symbolic</property>
25-
<property name="menu-model">primary_menu</property>
26-
<property name="primary">True</property>
27-
<property name="tooltip-text" translatable="yes">Main Menu</property>
28-
</object>
29-
</child>
3018
</object>
3119
</child>
3220
<child>

credentialsd-ui/src/gui/view_model/gtk/application.rs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use async_std::channel::{Receiver, Sender};
2-
use gettextrs::gettext;
32
use tracing::{debug, info};
43

54
use gtk::prelude::*;
@@ -128,13 +127,7 @@ impl CredentialsUi {
128127
})
129128
.build();
130129

131-
// About
132-
let action_about = gio::ActionEntry::builder("about")
133-
.activate(|app: &Self, _, _| {
134-
app.show_about_dialog();
135-
})
136-
.build();
137-
self.add_action_entries([action_quit, action_about]);
130+
self.add_action_entries([action_quit]);
138131
}
139132

140133
// Sets up keyboard shortcuts
@@ -155,21 +148,6 @@ impl CredentialsUi {
155148
}
156149
}
157150

158-
fn show_about_dialog(&self) {
159-
let dialog = gtk::AboutDialog::builder()
160-
.logo_icon_name(APP_ID)
161-
.license_type(gtk::License::Lgpl30Only)
162-
.website("https://github.com/linux-credentials/linux-webauthn-portal-api")
163-
.version(VERSION)
164-
.transient_for(&self.main_window())
165-
.translator_credits(gettext("translator-credits"))
166-
.modal(true)
167-
.authors(vec!["Isaiah Inuwa <[email protected]>"])
168-
.build();
169-
170-
dialog.present();
171-
}
172-
173151
pub fn run(&self) -> glib::ExitCode {
174152
info!("Credentials UI ({})", APP_ID);
175153
info!("Version: {} ({})", VERSION, PROFILE);

0 commit comments

Comments
 (0)