Skip to content

Commit 937be4d

Browse files
authored
gnome 46 compatiblity (#21)
1 parent c94b760 commit 937be4d

File tree

10 files changed

+20
-9
lines changed

10 files changed

+20
-9
lines changed

[email protected]/components/cards/commitCard.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const CommitCard = GObject.registerClass({}, class CommitCard extends St.
5555
const commitInfoBin = new St.Bin({
5656
style_class: 'commit-info-bin',
5757
x_expand: true,
58+
x_align: Clutter.ActorAlign.START,
5859
child: new St.Label({
5960
style_class: 'commit-info-label',
6061
text: `${this.cardItem.author_name} - ${this.cardItem.short_id}`
@@ -110,6 +111,7 @@ export const CommitCard = GObject.registerClass({}, class CommitCard extends St.
110111
const commitTitleBin = new St.Bin({
111112
style_class: 'commit-title-bin',
112113
x_expand: true,
114+
x_align: Clutter.ActorAlign.START,
113115
child: new St.Label({
114116
style_class: 'commit-title-label',
115117
text: this.cardItem.title

[email protected]/components/cards/pipelineCard.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const PipelineCard = GObject.registerClass({}, class PipelineCard extends
5454
const pipelineInfoBin = new St.Bin({
5555
style_class: 'commit-info-bin',
5656
x_expand: true,
57+
x_align: Clutter.ActorAlign.START,
5758
child: new St.Label({
5859
style_class: 'commit-info-label',
5960
text: `${this.cardItem.ref} - ${this.cardItem.commit.short_id || this.cardItem.sha.substring(0, 8)}`
@@ -109,6 +110,7 @@ export const PipelineCard = GObject.registerClass({}, class PipelineCard extends
109110
const commitTitleBin = new St.Bin({
110111
style_class: 'commit-title-bin',
111112
x_expand: true,
113+
x_align: Clutter.ActorAlign.START,
112114
child: new St.Label({
113115
style_class: 'commit-title-label',
114116
text: this.cardItem.commit.title || this.cardItem.sha

[email protected]/components/cards/projectCard.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const ProjectCard = GObject.registerClass({}, class ProjectCard extends S
5454
const projectPathBin = new St.Bin({
5555
style_class: 'project-path-bin',
5656
x_expand: true,
57+
x_align: Clutter.ActorAlign.START,
5758
child: new St.Label({ style_class: 'project-path-label', text: this.cardItem.path_with_namespace.replace(/\//g, ' / ') })
5859
})
5960

@@ -108,6 +109,7 @@ export const ProjectCard = GObject.registerClass({}, class ProjectCard extends S
108109
const projectNameBin = new St.Bin({
109110
style_class: 'project-name-bin',
110111
x_expand: true,
112+
x_align: Clutter.ActorAlign.START,
111113
child: new St.Label({ style_class: 'project-name-label', text: this.cardItem.name })
112114
})
113115

[email protected]/components/flatList/flatList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const FlatList = GObject.registerClass({
3434
y_expand: true
3535
})
3636

37-
this.add_actor(this._content)
37+
this.add_child(this._content)
3838
}
3939

4040
get items () {

[email protected]/components/screens/projectDetailsScreen/projectDetailsScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const ProjectDetailsScreen = GObject.registerClass({}, class ProjectDetai
100100
// vertical: false
101101
// })
102102
//
103-
// this.scroll.add_actor(this.box, { expand: false, x_fill: false, x_align: Clutter.ActorAlign.LEFT })
103+
// this.scroll.add_child(this.box, { expand: false, x_fill: false, x_align: Clutter.ActorAlign.LEFT })
104104
// }
105105

106106
_extract_filterable_search_text (commit, pipeline) {

[email protected]/components/searchBar/searchBar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export const SearchBar = GObject.registerClass({
3535
_createSearchArea () {
3636
let searchInputBox = new St.BoxLayout({
3737
style_class: 'search-area-box',
38-
x_expand: true
38+
x_expand: true,
39+
x_align: Clutter.ActorAlign.START
3940
})
4041

4142
if (this.back_screen_name) {

[email protected]/extension.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const GitLabPanelMenuButton = GObject.registerClass(
6363
child: panelMenuIcon
6464
})
6565

66-
this.add_actor(gitlabPanelIconBin)
66+
this.add_child(gitlabPanelIconBin)
6767
this.add_style_class_name('gitlab-extension')
6868

6969
let bin = new St.Widget({ style_class: 'gitlab-extension' })
@@ -72,7 +72,7 @@ export const GitLabPanelMenuButton = GObject.registerClass(
7272
this.menu.box.add_child(bin)
7373

7474
this._screenWrapper = new ScreenWrapper(this._mainEventHandler)
75-
bin.add_actor(this._screenWrapper)
75+
bin.add_child(this._screenWrapper)
7676

7777
this._settingsChangedId = this._settings.connect('changed', () => this._sync())
7878
this.menu.connect('destroy', this._destroyExtension.bind(this))
@@ -93,7 +93,7 @@ export const GitLabPanelMenuButton = GObject.registerClass(
9393
return
9494
}
9595

96-
parent.remove_actor(container)
96+
parent.remove_child(container)
9797

9898
let children = null
9999

[email protected]/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"settings-schema": "org.gnome.shell.extensions.gitlab",
66
"gettext-domain": "gnome-shell-extension-gitlab",
77
"shell-version": [
8-
"45"
8+
"46"
99
],
1010
"url": "https://github.com/cinatic/gitlab-extension",
1111
"uuid": "[email protected]",
12-
"version": 11
12+
"version": 9999
1313
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: gnome-shell-extension-gitlab-extension\n"
1010
"Report-Msgid-Bugs-To: [email protected]\n"
11-
"POT-Creation-Date: 2023-10-22 12:57+0200\n"
11+
"POT-Creation-Date: 2024-04-05 23:02+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"

[email protected]/stylesheet.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
padding: 5px 10px;
1212
}
1313

14+
.gitlab-extension .search-bar .search-area-box StEntry {
15+
width: 400px;
16+
}
17+
1418
.gitlab-extension .search-bar .search-area-box .navigate-back-icon-button {
1519
margin-right: 15px;
1620
}

0 commit comments

Comments
 (0)