[gnome-sound-recorder/ebassi/experiments: 5/7] Remove unnecessary help-overlay creation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/ebassi/experiments: 5/7] Remove unnecessary help-overlay creation
- Date: Wed, 7 Sep 2022 16:14:56 +0000 (UTC)
commit 3d9a5aab50823f3b6b64c8dd253abc43261d5e6b
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Aug 15 17:51:16 2022 +0100
Remove unnecessary help-overlay creation
GtkApplicationWindow will handle the help overlay automatically if one
is found at the right place in the UI definition file.
src/window.js | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 8d2d054..f09e4d1 100644
--- a/src/window.js
+++ b/src/window.js
@@ -18,7 +18,7 @@
*
*/
-const { Adw, Gio, GLib, GObject, Gst, GstPlayer, Gtk } = imports.gi;
+const { Adw, Gio, GLib, GObject, Gst, GstPlayer } = imports.gi;
const { Recorder } = imports.recorder;
const { RecordingList } = imports.recordingList;
@@ -69,10 +69,6 @@ var Window = GObject.registerClass({
this.sendNotification(_('"%s" deleted').format(recording.name), recording, index);
});
- const builder = Gtk.Builder.new_from_resource('/org/gnome/SoundRecorder/gtk/help-overlay.ui');
- const dialog = builder.get_object('help_overlay');
- this.set_help_overlay(dialog);
-
this.toastUndo = false;
this.undoSignalID = null;
this.undoAction = new Gio.SimpleAction({ name: 'undo' });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]