Skip to content

Commit

Permalink
[gpaste@feuerfuchs] Fix label on dialog
Browse files Browse the repository at this point in the history
Label in the "GPaste is not installed" dialog wasn't fully shown before
  • Loading branch information
benmpl committed Jan 15, 2025
1 parent e2cabd6 commit d5f46d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const ModalDialog = imports.ui.modalDialog;
const St = imports.gi.St;
const GObject = imports.gi.GObject;
const Pango = imports.gi.Pango;

const _ = require('./__init__')._;

Expand All @@ -10,7 +11,11 @@ var GPasteNotInstalledDialog = GObject.registerClass(
_init(callback) {
super._init({ styleClass: 'gpaste__not-found-dialog', destroyOnClose: false });

this.contentLayout.add(new St.Label({ text: _("GPaste is not installed. Please install the necessary packages and then restart Cinnamon for this applet to start working.") }));
this.label = new St.Label({ text: _("GPaste is not installed. Please install the necessary packages and then restart Cinnamon for this applet to start working.") });
this.label.clutter_text.line_wrap = true;
this.label.clutter_text.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR);

this.contentLayout.add(this.label);
this.contentLayout.add_style_class_name('gpaste__not-found-dialog__content');

this.setButtons([
Expand Down
2 changes: 1 addition & 1 deletion [email protected]/files/[email protected]/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"uuid": "[email protected]",
"max-instances": -1,
"description": "Instantly access and manage your clipboard history.",
"version": "2.7",
"version": "2.7.1",
"multiversion": "true",
"name": "GPaste Reloaded"
}

0 comments on commit d5f46d1

Please sign in to comment.