Skip to content

Commit

Permalink
Add Gio import and remove passing title to constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
sidevesh authored Oct 18, 2024
1 parent 1b1e88a commit e96ace7
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/service/plugins/findmyphone.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ const Dialog = GObject.registerClass({
_init(params) {
super._init({
application: Gio.Application.get_default(),
title: _('Ringing'),
buttons: Gtk.ButtonsType.CLOSE,
device: params.device,
image: new Gtk.Image({
Expand Down
1 change: 0 additions & 1 deletion src/service/ui/legacyMessaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const Dialog = GObject.registerClass({
_init(params) {
super._init({
application: Gio.Application.get_default(),
title: _('Send SMS'),
device: params.device,
plugin: params.plugin,
use_header_bar: true,
Expand Down
2 changes: 1 addition & 1 deletion src/service/ui/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later

import Gdk from 'gi://Gdk';
import Gio from 'gi://Gio';
import GLib from 'gi://GLib';
import GObject from 'gi://GObject';
import Gtk from 'gi://Gtk';
Expand Down Expand Up @@ -835,7 +836,6 @@ export const Window = GObject.registerClass({
_init(params) {
super._init(Object.assign({
application: Gio.Application.get_default(),
title: _('Messaging'),
}, params));
this.headerbar.subtitle = this.device.name;

Expand Down
2 changes: 1 addition & 1 deletion src/service/ui/mousepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//
// SPDX-License-Identifier: GPL-2.0-or-later

import Gio from 'gi://Gio';
import GLib from 'gi://GLib';
import Gdk from 'gi://Gdk';
import GObject from 'gi://GObject';
Expand Down Expand Up @@ -101,7 +102,6 @@ export const InputDialog = GObject.registerClass({
_init(params) {
super._init(Object.assign({
application: Gio.Application.get_default(),
title: _('Remote Input'),
use_header_bar: true,
}, params));

Expand Down
1 change: 0 additions & 1 deletion src/service/ui/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const ReplyDialog = GObject.registerClass({
_init(params) {
super._init({
application: Gio.Application.get_default(),
title: _('Reply'),
device: params.device,
plugin: params.plugin,
uuid: params.uuid,
Expand Down
1 change: 0 additions & 1 deletion src/service/ui/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const DeviceChooser = GObject.registerClass({
super._init({
use_header_bar: true,
application: Gio.Application.get_default(),
title: params.title,
});
this.set_keep_above(true);

Expand Down

0 comments on commit e96ace7

Please sign in to comment.