Skip to content

Commit f692ab5

Browse files
committed
Initial Commit
The initial commit of gnome-image-viewer. Things are in an MVP state, with image viewing and opening from the desktop functional. We also can open images externally, print them, and set them as backgrounds.
0 parents commit f692ab5

38 files changed

+3807
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/config.rs

.gitlab-ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
2+
3+
stages:
4+
- check
5+
- test
6+
- deploy
7+
8+
variables:
9+
BUNDLE: "org.gnome.ImageViewer.Devel.flatpak"
10+
MANIFEST_PATH: "build-aux/flatpak/org.gnome.ImageViewer.Devel.json"
11+
FLATPAK_MODULE: "gnome-image-viewer"
12+
FLATPAK_IMAGE: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
13+
14+
.flatpak_cache_template: &flatpak_cache
15+
cache:
16+
key: "flatpak"
17+
paths:
18+
- .flatpak-builder/cache/
19+
- _build/target/
20+
21+
check:
22+
image: "registry.gitlab.com/alatiera/rustfmt-oci-image/rustfmt:stable"
23+
stage: "check"
24+
script:
25+
# Create blank versions of our configured files
26+
# so rustfmt does not yell about non-existent files or completely empty files
27+
- echo -e "" >> src/config.rs
28+
- rustc -Vv && cargo -Vv
29+
- cargo --version
30+
- cargo fmt --all -- --check
31+
32+
flatpak:
33+
extends: '.flatpak'
34+
image: "$FLATPAK_IMAGE"
35+
variables:
36+
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
37+
APP_ID: "org.gnome.ImageViewer.Devel"
38+
39+
# nightly:
40+
# extends: '.publish_nightly'
41+
# dependencies: ['flatpak']
42+
# needs: ['flatpak']

CODE_OF_CONDUCT.md

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# GNOME Code of Conduct
2+
3+
Thank you for being a part of the GNOME project. We value your participation and want everyone to have an enjoyable and fulfilling experience. Accordingly, all participants are expected to follow this Code of Conduct, and to show respect, understanding, and consideration to one another. Thank you for helping make this a welcoming, friendly community for everyone.
4+
5+
## Scope
6+
7+
This Code of Conduct applies to all online GNOME community spaces, including, but not limited to:
8+
9+
* Issue tracking systems - bugzilla.gnome.org
10+
* Documentation and tutorials - developer.gnome.org
11+
* Code repositories - git.gnome.org and gitlab.gnome.org
12+
* Mailing lists - mail.gnome.org
13+
* Wikis - wiki.gnome.org
14+
* Chat and forums - irc.gnome.org, discourse.gnome.org, GNOME Telegram channels, and GNOME groups and channels on Matrix.org (including bridges to GNOME IRC channels)
15+
* Community spaces hosted on gnome.org infrastructure
16+
* Any other channels or groups which exist in order to discuss GNOME project activities
17+
18+
Communication channels and private conversations that are normally out of scope may be considered in scope if a GNOME participant is being stalked or harassed. Social media conversations may be considered in-scope if the incident occurred under a GNOME event hashtag, or when an official GNOME account on social media is tagged, or within any other discussion about GNOME. The GNOME Foundation reserves the right to take actions against behaviors that happen in any context, if they are deemed to be relevant to the GNOME project and its participants.
19+
20+
All participants in GNOME online community spaces are subject to the Code of Conduct. This includes GNOME Foundation board members, corporate sponsors, and paid employees. This also includes volunteers, maintainers, leaders, contributors, contribution reviewers, issue reporters, GNOME users, and anyone participating in discussion in GNOME online spaces.
21+
22+
## Reporting an Incident
23+
24+
If you believe that someone is violating the Code of Conduct, or have
25+
any other concerns, please [contact the Code of Conduct committee](https://wiki.gnome.org/Foundation/CodeOfConduct/ReporterGuide).
26+
27+
## Our Standards
28+
29+
The GNOME online community is dedicated to providing a positive experience for everyone, regardless of:
30+
31+
* age
32+
* body size
33+
* caste
34+
* citizenship
35+
* disability
36+
* education
37+
* ethnicity
38+
* familial status
39+
* gender expression
40+
* gender identity
41+
* genetic information
42+
* immigration status
43+
* level of experience
44+
* nationality
45+
* personal appearance
46+
* pregnancy
47+
* race
48+
* religion
49+
* sex characteristics
50+
* sexual orientation
51+
* sexual identity
52+
* socio-economic status
53+
* tribe
54+
* veteran status
55+
56+
### Community Guidelines
57+
58+
Examples of behavior that contributes to creating a positive environment include:
59+
60+
***Be friendly.** Use welcoming and inclusive language.
61+
***Be empathetic.** Be respectful of differing viewpoints and experiences.
62+
***Be respectful.** When we disagree, we do so in a polite and constructive manner.
63+
***Be considerate.** Remember that decisions are often a difficult choice between competing priorities. Focus on what is best for the community. Keep discussions around technology choices constructive and respectful.
64+
***Be patient and generous.** If someone asks for help it is because they need it. When documentation is available that answers the question, politely point them to it. If the question is off-topic, suggest a more appropriate online space to seek help.
65+
***Try to be concise.** Read the discussion before commenting in order to not repeat a point that has been made.
66+
67+
### Inappropriate Behavior
68+
69+
Community members asked to stop any inappropriate behavior are expected to comply immediately.
70+
71+
We want all participants in the GNOME community have the best possible experience they can. In order to be clear what that means, we've provided a list of examples of behaviors that are inappropriate for GNOME community spaces:
72+
73+
***Deliberate intimidation, stalking, or following.**
74+
***Sustained disruption of online discussion, talks, or other events.** Sustained disruption of events, online discussions, or meetings, including talks and presentations, will not be tolerated. This includes 'Talking over' or 'heckling' event speakers or influencing crowd actions that cause hostility in event sessions. Sustained disruption also includes drinking alcohol to excess or using recreational drugs to excess, or pushing others to do so.
75+
***Harassment of people who don't drink alcohol.** We do not tolerate derogatory comments about those who abstain from alcohol or other substances. We do not tolerate pushing people to drink, talking about their abstinence or preferences to others, or pressuring them to drink - physically or through jeering.
76+
***Sexist, racist, homophobic, transphobic, ableist language or otherwise exclusionary language.** This includes deliberately referring to someone by a gender that they do not identify with, and/or questioning the legitimacy of an individual's gender identity. If you're unsure if a word is derogatory, don't use it. This also includes repeated subtle and/or indirect discrimination.
77+
***Unwelcome sexual attention or behavior that contributes to a sexualized environment.** This includes sexualized comments, jokes or imagery in interactions, communications or presentation materials, as well as inappropriate touching, groping, or sexual advances. Sponsors should not use sexualized images, activities, or other material. Meetup organizing staff and other volunteer organizers should not use sexualized clothing/uniforms/costumes, or otherwise create a sexualized environment.
78+
***Unwelcome physical contact.** This includes touching a person without permission, including sensitive areas such as their hair, pregnant stomach, mobility device (wheelchair, scooter, etc) or tattoos. This also includes physically blocking or intimidating another person. Physical contact or simulated physical contact (such as emojis like "kiss") without affirmative consent is not acceptable. This includes sharing or distribution of sexualized images or text.
79+
***Violence or threats of violence.** Violence and threats of violence are not acceptable - online or offline. This includes incitement of violence toward any individual, including encouraging a person to commit self-harm. This also includes posting or threatening to post other people's personally identifying information ("doxxing") online.
80+
***Influencing or encouraging inappropriate behavior.** If you influence or encourage another person to violate the Code of Conduct, you may face the same consequences as if you had violated the Code of Conduct.
81+
***Possession of an offensive weapon at a GNOME event.** This includes anything deemed to be a weapon by the event organizers.
82+
83+
The GNOME community prioritizes marginalized people's safety over privileged people's comfort. The committee will not act on complaints regarding:
84+
85+
* "Reverse"-isms, including "reverse racism," "reverse sexism," and "cisphobia"
86+
* Reasonable communication of boundaries, such as "leave me alone," "go away," or "I'm not discussing this with you."
87+
* Criticizing racist, sexist, cissexist, or otherwise oppressive behavior or assumptions
88+
* Communicating boundaries or criticizing oppressive behavior in a "tone" you don't find congenial
89+
90+
The examples listed above are not against the Code of Conduct. If you have questions about the above statements, please [read this document](https://github.com/sagesharp/code-of-conduct-template/blob/master/code-of-conduct/example-reversisms.md#supporting-diversity).
91+
92+
If a participant engages in behavior that violates this code of conduct, the GNOME Code of Conduct committee may take any action they deem appropriate. Examples of consequences are outlined in the [Committee Procedures Guide](https://wiki.gnome.org/Foundation/CodeOfConduct/CommitteeProcedures).
93+
94+
## Procedure for Handling Incidents
95+
96+
*[Reporter Guide](https://wiki.gnome.org/Foundation/CodeOfConduct/ReporterGuide)
97+
98+
*[Moderator Procedures](https://wiki.gnome.org/Foundation/CodeOfConduct/ModeratorProcedures)
99+
100+
*[Committee Procedures Guide](https://wiki.gnome.org/Foundation/CodeOfConduct/CommitteeProcedures)
101+
102+
## License
103+
104+
The GNOME Online Code of Conduct is licensed under a [Creative Commons Attribution Share-Alike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/)
105+
106+
![Creative Commons License](http://i.creativecommons.org/l/by-sa/3.0/88x31.png)
107+
108+
## Attribution
109+
110+
The GNOME Online Code of Conduct was forked from the example policy from the [Geek Feminism wiki, created by the Ada Initiative and other volunteers](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy), which is under a Creative Commons Zero license.
111+
112+
Additional language was incorporated and modified from the following Codes of Conduct:
113+
114+
*[Citizen Code of Conduct](http://citizencodeofconduct.org/) is licensed [Creative Commons Attribution Share-Alike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/).
115+
*[Code of Conduct template](https://github.com/sagesharp/code-of-conduct-template/) is licensed [Creative Commons Attribution Share-Alike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/) by [Otter Tech](https://otter.technology/code-of-conduct-training)
116+
*[Contributor Covenant version 1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct) (licensed [CC BY 4.0](https://github.com/ContributorCovenant/contributor_covenant/blob/master/LICENSE.md))
117+
*[Data Carpentry Code of Conduct](https://docs.carpentries.org/topic_folders/policies/index_coc.html) is licensed [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/)
118+
*[Django Project Code of Conduct](https://www.djangoproject.com/conduct/) is licensed under a [Creative Commons Attribution 3.0 Unported License](http://creativecommons.org/licenses/by/3.0/)
119+
*[Fedora Code of Conduct](http://fedoraproject.org/code-of-conduct)
120+
*[Geek Feminism Anti-harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy) which is under a [Creative Commons Zero license](https://creativecommons.org/publicdomain/zero/1.0/)
121+
*[Previous GNOME Foundation Code of Conduct](https://wiki.gnome.org/action/recall/Foundation/CodeOfConduct/Old)
122+
*[LGBTQ in Technology Slack Code of Conduct](https://lgbtq.technology/coc.html) licensed [Creative Commons Zero](https://creativecommons.org/publicdomain/zero/1.0/)
123+
*[Mozilla Community Participation Guidelines](https://www.mozilla.org/en-US/about/governance/policies/participation/) is licensed [Creative Commons Attribution-ShareAlike 3.0 Unported License](https://creativecommons.org/licenses/by-sa/3.0/).
124+
*[Python Mentors Code of Conduct](http://pythonmentors.com/)
125+
*[Speak Up! Community Code of Conduct](http://web.archive.org/web/20141109123859/http://speakup.io/coc.html), licensed under a [Creative Commons Attribution 3.0 Unported License](http://creativecommons.org/licenses/by/3.0/)
126+

0 commit comments

Comments
 (0)
close