Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar GTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar GTK
Merge requests
!7
Add main menu entry "About Briar GTK"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add main menu entry "About Briar GTK"
15-about-page
into
master
Overview
0
Commits
3
Pipelines
4
Changes
17
Merged
Nico
requested to merge
15-about-page
into
master
5 years ago
Overview
0
Commits
3
Pipelines
4
Changes
17
Expand
Closes
#15 (closed)
.
Edited
5 years ago
by
Nico
0
0
Merge request reports
Compare
master
version 3
c2fc0803
5 years ago
version 2
a35c13a4
5 years ago
version 1
44239f12
5 years ago
master (base)
and
latest version
latest version
0b38b56b
3 commits,
5 years ago
version 3
c2fc0803
3 commits,
5 years ago
version 2
a35c13a4
3 commits,
5 years ago
version 1
44239f12
1 commit,
5 years ago
17 files
+
195
−
38
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
17
Search (e.g. *.vue) (Ctrl+P)
briar-gtk/briar_gtk/actions/window.py
+
11
−
2
Options
@@ -8,7 +8,7 @@
from
gi.repository
import
Gio
,
GLib
from
briar_gtk.containers.main
import
MainContainer
from
briar_gtk.containers.main
_window
import
Main
Window
Container
from
briar_gtk.define
import
APP
@@ -31,6 +31,11 @@ class WindowActions:
open_add_contact_action
.
connect
(
"
activate
"
,
self
.
_open_add_contact
)
self
.
add_action
(
open_add_contact_action
)
open_about_page_action
=
Gio
.
SimpleAction
.
new
(
"
open-about-page
"
,
None
)
open_about_page_action
.
connect
(
"
activate
"
,
self
.
_open_about_page
)
self
.
add_action
(
open_about_page_action
)
open_private_chat_action
=
Gio
.
SimpleAction
.
new
(
"
open-private-chat
"
,
GLib
.
VariantType
.
new
(
"
i
"
))
open_private_chat_action
.
connect
(
"
activate
"
,
self
.
_open_private_chat
)
@@ -38,9 +43,13 @@ class WindowActions:
# pylint: disable=unused-argument
def
_back_to_sidebar
(
self
,
action
,
parameter
):
if
isinstance
(
self
.
current_container
,
MainContainer
):
if
isinstance
(
self
.
current_container
,
Main
Window
Container
):
self
.
current_container
.
show_sidebar
()
# pylint: disable=unused-argument
def
_open_about_page
(
self
,
action
,
parameter
):
self
.
current_container
.
open_about_page
()
# pylint: disable=unused-argument
def
_open_add_contact
(
self
,
action
,
parameter
):
self
.
show_add_contact_container
()
Loading