Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Black Fennec
Extensions
Base
Commits
3a17d3ab
Commit
3a17d3ab
authored
2 years ago
by
Caspar Martens
Browse files
Options
Downloads
Patches
Plain Diff
Make file and image path and MIME type uneditable
parent
ba638648
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
base/file/file_view.blp
+2
-1
2 additions, 1 deletion
base/file/file_view.blp
base/file/file_view.ui
+2
-1
2 additions, 1 deletion
base/file/file_view.ui
base/image/image_view.blp
+1
-1
1 addition, 1 deletion
base/image/image_view.blp
base/image/image_view.ui
+1
-1
1 addition, 1 deletion
base/image/image_view.ui
with
6 additions
and
4 deletions
base/file/file_view.blp
+
2
−
1
View file @
3a17d3ab
...
...
@@ -10,7 +10,7 @@ template FileView : Adw.PreferencesGroup {
Adw.EntryRow _file_path {
title: _("Path");
editable:
tru
e;
editable:
fals
e;
Button _file_chooser {
icon-name: "folder-open-symbolic";
...
...
@@ -24,5 +24,6 @@ template FileView : Adw.PreferencesGroup {
Adw.EntryRow _mime_type {
title: _("MIME Type");
editable: false;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
base/file/file_view.ui
+
2
−
1
View file @
3a17d3ab
...
...
@@ -10,7 +10,7 @@
<child>
<object
class=
"AdwEntryRow"
id=
"_file_path"
>
<property
name=
"title"
translatable=
"true"
>
Path
</property>
<property
name=
"editable"
>
tru
e
</property>
<property
name=
"editable"
>
fals
e
</property>
<child>
<object
class=
"GtkButton"
id=
"_file_chooser"
>
<property
name=
"icon-name"
>
folder-open-symbolic
</property>
...
...
@@ -26,6 +26,7 @@
<child>
<object
class=
"AdwEntryRow"
id=
"_mime_type"
>
<property
name=
"title"
translatable=
"true"
>
MIME Type
</property>
<property
name=
"editable"
>
false
</property>
</object>
</child>
</template>
...
...
This diff is collapsed.
Click to expand it.
base/image/image_view.blp
+
1
−
1
View file @
3a17d3ab
...
...
@@ -20,7 +20,7 @@ template ImageView : Adw.PreferencesGroup {
Adw.EntryRow _file_path {
title: _("Path");
editable:
tru
e;
editable:
fals
e;
Button _file_chooser {
icon-name: "folder-open-symbolic";
...
...
This diff is collapsed.
Click to expand it.
base/image/image_view.ui
+
1
−
1
View file @
3a17d3ab
...
...
@@ -23,7 +23,7 @@
<child>
<object
class=
"AdwEntryRow"
id=
"_file_path"
>
<property
name=
"title"
translatable=
"true"
>
Path
</property>
<property
name=
"editable"
>
tru
e
</property>
<property
name=
"editable"
>
fals
e
</property>
<child>
<object
class=
"GtkButton"
id=
"_file_chooser"
>
<property
name=
"icon-name"
>
folder-open-symbolic
</property>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment