This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from ppvan/dev
Using precomit and update some code formating
- Loading branch information
Showing
70 changed files
with
6,042 additions
and
4,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fail_fast: false | ||
repos: | ||
- repo: https://github.com/ppvan/pre-commit-hooks | ||
rev: 2ce5a35bba2a6031563657dd4421250d644dd914 | ||
hooks: | ||
- id: uncrustify | ||
args: [--no-diff, -l, VALA, -c, uncrustify.cfg, --replace, --no-backup] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template $PsequelEditRowDialog: Adw.Dialog { | ||
follows-content-size: true; | ||
title: _("Edit"); | ||
presentation-mode: floating; | ||
|
||
styles [ | ||
"backup-dialog" | ||
] | ||
|
||
child: Adw.ToolbarView { | ||
[top] | ||
Adw.HeaderBar {} | ||
|
||
width-request: 640; | ||
|
||
content: ScrolledWindow { | ||
vexpand: true; | ||
hexpand: true; | ||
max-content-height: 960; | ||
min-content-height: 400; | ||
valign: center; | ||
hscrollbar-policy: never; | ||
|
||
Grid grid { | ||
margin-bottom: 16; | ||
margin-top: 16; | ||
margin-start: 16; | ||
margin-end: 16; | ||
row-spacing: 10; | ||
column-spacing: 8; | ||
column-homogeneous: true; | ||
} | ||
}; | ||
|
||
[bottom] | ||
Box { | ||
orientation: vertical; | ||
Separator { | ||
|
||
} | ||
Box { | ||
halign: end; | ||
margin-bottom: 16; | ||
margin-top: 16; | ||
margin-start: 16; | ||
margin-end: 16; | ||
spacing: 16; | ||
|
||
Button { | ||
label: "Cancel"; | ||
clicked => $cancel_update(); | ||
} | ||
|
||
Button { | ||
label: "Update"; | ||
clicked => $update_row(); | ||
sensitive: bind template.has_changed; | ||
|
||
styles [ | ||
"suggested-action" | ||
] | ||
} | ||
} | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/bash | ||
# git diff --name-only --diff-filter=ACM | ||
|
||
for i in $(git diff --name-only --diff-filter=ACM|grep .vala$); | ||
for i in $(git diff --name-only --staged --diff-filter=ACM|grep .vala$); | ||
do | ||
uncrustify -l VALA -c uncrustify.cfg --replace --no-backup $i; | ||
uncrustify -l VALA -c uncrustify.cfg --replace --no-backup $i; | ||
done |
Oops, something went wrong.