Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
pitivi
Commits
6db06472
Commit
6db06472
authored
Aug 04, 2018
by
HarishFulara07
Committed by
Alexandru Băluț
Aug 07, 2018
Browse files
greeter: Select project on right click
parent
70921e83
Pipeline
#23740
passed with stages
in 16 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pitivi/greeterperspective.py
View file @
6db06472
...
...
@@ -134,6 +134,8 @@ class GreeterPerspective(Perspective):
self
.
__recent_projects_listbox
.
set_selection_mode
(
Gtk
.
SelectionMode
.
NONE
)
self
.
__recent_projects_listbox
.
connect
(
"row_activated"
,
self
.
__projects_row_activated_cb
)
self
.
__recent_projects_listbox
.
connect
(
"button-press-event"
,
self
.
__projects_button_press_cb
)
self
.
__infobar
=
builder
.
get_object
(
"infobar"
)
fix_infobar
(
self
.
__infobar
)
...
...
@@ -344,6 +346,13 @@ class GreeterPerspective(Perspective):
else
:
self
.
app
.
project_manager
.
loadProject
(
row
.
uri
)
def
__projects_button_press_cb
(
self
,
listbox
,
event
):
if
event
.
button
==
3
:
self
.
__start_selection_mode
()
row
=
listbox
.
get_row_at_y
(
event
.
y
)
if
row
:
row
.
select_button
.
set_active
(
True
)
def
__search_changed_cb
(
self
,
search_entry
):
search_hit
=
False
search_text
=
search_entry
.
get_text
().
lower
()
...
...
@@ -358,6 +367,12 @@ class GreeterPerspective(Perspective):
self
.
__recent_projects_listbox
.
set_visible
(
search_hit
)
def
__selection_clicked_cb
(
self
,
unused_button
):
self
.
__start_selection_mode
()
def
__start_selection_mode
(
self
):
if
self
.
__actionbar
.
get_visible
():
return
self
.
__update_headerbar
(
selection
=
True
)
self
.
__search_entry
.
hide
()
self
.
__actionbar
.
show
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment