Skip to content

Commit

Permalink
Merge pull request #17 from hhoao/feat_46_1.0.x_upgrade
Browse files Browse the repository at this point in the history
[feat] support gnome 46
  • Loading branch information
hhoao authored Aug 15, 2024
2 parents e62d8db + 3136229 commit be1a6c9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 22 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- test*
- release*
- main

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"url": "https://github.com/hhoao/app_tabs",
"uuid": "[email protected]",
"settings-schema": "org.gnome.shell.extensions.app_tabs",
"shell-version": ["45"]
"shell-version": ["45", "46"]
}
26 changes: 7 additions & 19 deletions package.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
#!/bin/bash
include_files=(
src
stylesheet.css
extension.js
metadata.json
prefs.js
LICENSE
schemas
ignore_files=(
'.git/*'
'.idea/*'
'./.gitignore'
'.github/*'
)

args=""
for include_file in "${include_files[@]}"; do
if [ -e "$include_file" ]; then
args="${args} ${include_file}"
fi
done

if [[ -n $1 ]]; then
if [ ! -z $1 ]; then
package_name=$1
else
package_name=$(date +'%Y%m%d%H%M%S')
fi

args="-r ${package_name}.zip ${args}"

zip ${args}
zip -x "${ignore_files[@]}" -r "${package_name}".zip .
2 changes: 1 addition & 1 deletion src/AppTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const AppTab = GObject.registerClass({
y_expand: false,
});
this._controls.add_style_class_name('app-tab-controller');
this.add_actor(this._controls);
this.add_child(this._controls);
}

_init_icon() {
Expand Down
2 changes: 1 addition & 1 deletion src/TabPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const TabPanel = GObject.registerClass({
this._scroll_view = this.get_horizontal_scroll_view();
this.set_panel_max_width(this._settings.get_int(SchemaKeyConstants.PANEL_MAX_WIDTH));
this._controls = new St.BoxLayout({style_class: 'app-tabs-box'})
this._scroll_view.add_actor(this._controls);
this._scroll_view.add_child(this._controls);
this.add_child(this._scroll_view)
this._init_pool_tabs();

Expand Down

0 comments on commit be1a6c9

Please sign in to comment.