Skip to content

Commit

Permalink
Merge branch 'justperfection-gnome-shell-40'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tudmotu committed Apr 15, 2021
2 parents 55f8934 + ff844ad commit 9bc2307
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion extension.js
Expand Up @@ -90,7 +90,7 @@ const ClipboardIndicator = Lang.Class({
hbox.add_child(this._buttonText);
this._downArrow = PopupMenu.arrowIcon(St.Side.BOTTOM);
hbox.add(this._downArrow);
this.actor.add_child(hbox);
this.add_child(hbox);

this._createHistoryLabel();
this._loadSettings();
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
@@ -1,6 +1,6 @@
{
"shell-version": [
"3.38"
"40"
],
"uuid": "clipboard-indicator@tudmotu.com",
"name": "Clipboard Indicator",
Expand Down
13 changes: 7 additions & 6 deletions prefs.js
Expand Up @@ -48,7 +48,10 @@ const App = new Lang.Class({
Name: 'ClipboardIndicator.App',
_init: function() {
this.main = new Gtk.Grid({
margin: 10,
margin_top: 10,
margin_bottom: 10,
margin_start: 10,
margin_end: 10,
row_spacing: 12,
column_spacing: 18,
column_homogeneous: false,
Expand Down Expand Up @@ -183,8 +186,8 @@ const App = new Lang.Class({
let inputWidget = input;

if (input instanceof Gtk.Switch) {
inputWidget = new Gtk.HBox();
inputWidget.pack_end(input, false, false, 0);
inputWidget = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL,});
inputWidget.append(input);
}

if (label) {
Expand Down Expand Up @@ -225,8 +228,6 @@ const App = new Lang.Class({
SettingsSchema.bind(Fields.TOPBAR_PREVIEW_SIZE, this.field_topbar_preview_size, 'value', Gio.SettingsBindFlags.DEFAULT);
SettingsSchema.bind(Fields.STRIP_TEXT, this.field_strip_text, 'active', Gio.SettingsBindFlags.DEFAULT);
SettingsSchema.bind(Fields.ENABLE_KEYBINDING, this.field_keybinding_activation, 'active', Gio.SettingsBindFlags.DEFAULT);

this.main.show_all();
},
_create_display_mode_options : function(){
let options = [{ name: _("Icon") },
Expand Down Expand Up @@ -264,7 +265,7 @@ function addKeybinding(model, settings, id, description) {
if (accelerator == null)
[key, mods] = [0, 0];
else
[key, mods] = Gtk.accelerator_parse(settings.get_strv(id)[0]);
[,key, mods] = Gtk.accelerator_parse(settings.get_strv(id)[0]);

// Add a row for the keybinding.
let row = model.insert(100); // Erm...
Expand Down
Expand Up @@ -31,7 +31,7 @@
</key>

<key name="disable-down-arrow" type="b">
<default>false</default>
<default>true</default>
<summary>Remove down arrow in top bar</summary>
</key>

Expand Down

0 comments on commit 9bc2307

Please sign in to comment.