Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package 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
postmarketOS
pmbootstrap
Commits
cd9baf40
Commit
cd9baf40
authored
7 years ago
by
Ben Iofel
Committed by
Oliver Smith
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
postmarketos-demos: Add shutdown button (#516)
parent
c8e96d70
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aports/main/postmarketos-demos/APKBUILD
+2
-2
2 additions, 2 deletions
aports/main/postmarketos-demos/APKBUILD
aports/main/postmarketos-demos/main.c
+4
-2
4 additions, 2 deletions
aports/main/postmarketos-demos/main.c
with
6 additions
and
4 deletions
aports/main/postmarketos-demos/APKBUILD
+
2
−
2
View file @
cd9baf40
pkgname
=
postmarketos-demos
pkgver
=
4
pkgrel
=
3
pkgrel
=
4
pkgdesc
=
"Simple touch menu for a few demo programs"
url
=
"https://github.com/postmarketOS"
arch
=
"all"
...
...
@@ -20,5 +20,5 @@ package() {
install
-D
-m755
"
$srcdir
"
/postmarketos-demos
\
"
$pkgdir
"
/usr/bin/postmarketos-demos
||
return
1
}
sha512sums
=
"
7cb25e4d6a0224800703
d0
e
e1
38edbf1b4ab71120190445d1fa57bec0835a9ab0b37fb343a4f6e01de3e3c7ffc2fc5c0c9bbcb15f9e867a9f9014ed682a10275
main.c
sha512sums
=
"
ae51469e6105df
d0
7
e1
ffb2ab3b6e2261239ca80b6e897951e7223cc8dd8fcb7c98f06f2e3870203a2f840ce4b5d425b4943ae0091631bbf48ae283d3cf1f86a
main.c
83d8a95e9e1e95dffa8661e547444e83e72e572dcd0c637376f678bbd20a351c4b971a315311edefeb58a4cca14fd3e586fb581a262b2d217e25092459539b98 Makefile"
This diff is collapsed.
Click to expand it.
aports/main/postmarketos-demos/main.c
+
4
−
2
View file @
cd9baf40
...
...
@@ -31,7 +31,9 @@ static void activate(GtkApplication *app, gpointer user_data)
"GTK3 Demo"
,
"gtk3-demo &"
,
"Restart Weston"
,
"killall weston &"
"killall weston &"
,
"Shutdown"
,
"poweroff &"
};
for
(
int
i
=
0
;
i
<
(
sizeof
(
programs
)
/
sizeof
(
const
char
*
));
i
+=
2
)
...
...
@@ -40,7 +42,7 @@ static void activate(GtkApplication *app, gpointer user_data)
const
char
*
command
=
programs
[
i
+
1
];
GtkWidget
*
button
=
gtk_button_new_with_label
(
title
);
gtk_widget_set_size_request
(
button
,
200
,
8
0
);
gtk_widget_set_size_request
(
button
,
200
,
7
0
);
g_signal_connect
(
button
,
"clicked"
,
G_CALLBACK
(
onclick
),
(
void
*
)
command
);
gtk_container_add
(
GTK_CONTAINER
(
button_box
),
button
);
...
...
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