Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
P
pardus-flatpak-gui
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Pardus
ondokuz
pardus-flatpak-gui
Commits
d6b4d60f
Verified
Kaydet (Commit)
d6b4d60f
authored
May 04, 2020
tarafından
Erdem Ersoy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Popup menu when right click instead of left click
üst
8aed28b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
20 deletions
+32
-20
mainwindow.py
pardusflatpakgui/mainwindow.py
+15
-3
mainwindow.glade
ui/mainwindow.glade
+17
-17
No files found.
pardusflatpakgui/mainwindow.py
Dosyayı görüntüle @
d6b4d60f
...
...
@@ -44,7 +44,8 @@ class MainWindow(object):
self
.
Application
=
application
try
:
main_gui_file
=
"/usr/share/pardus/pardus-flatpak-gui/ui/mainwindow.glade"
main_gui_file
=
"ui/mainwindow.glade"
# main_gui_file = "/usr/share/pardus/pardus-flatpak-gui/ui/mainwindow.glade"
main_builder
=
Gtk
.
Builder
.
new_from_file
(
main_gui_file
)
main_builder
.
connect_signals
(
self
)
except
GLib
.
GError
:
...
...
@@ -201,6 +202,8 @@ class MainWindow(object):
self
.
TreeViewMain
=
main_builder
.
get_object
(
"TreeViewMain"
)
self
.
TreeSelectionMain
=
main_builder
.
get_object
(
"TreeSelectionMain"
)
self
.
SearchEntryMain
=
main_builder
.
get_object
(
"SearchEntryMain"
)
self
.
SearchEntryMain
.
set_placeholder_text
(
_
(
"Click here for search"
))
...
...
@@ -348,8 +351,17 @@ class MainWindow(object):
def
on_press_show_button
(
self
,
toggle_button
):
self
.
SearchFilter
.
refilter
()
def
on_show_actions_menu
(
self
,
tree_view
,
path
,
column
):
self
.
ActionsMenu
.
popup_at_pointer
(
None
)
def
on_show_actions_menu
(
self
,
widget
,
event
):
if
event
.
button
==
3
:
# 3 == Right mouse button
x
=
event
.
x
y
=
event
.
y
path_info
=
self
.
TreeViewMain
.
get_path_at_pos
(
x
,
y
)
if
path_info
!=
None
:
path
=
path_info
[
0
]
self
.
TreeSelectionMain
.
select_path
(
path
)
self
.
ActionsMenu
.
popup_at_pointer
(
None
)
else
:
pass
def
on_run
(
self
,
menu_item
):
selection
=
self
.
TreeViewMain
.
get_selection
()
...
...
ui/mainwindow.glade
Dosyayı görüntüle @
d6b4d60f
...
...
@@ -214,6 +214,22 @@ Author: Erdem Ersoy
<property
name=
"can_focus"
>
False
</property>
<property
name=
"row_homogeneous"
>
True
</property>
<property
name=
"column_homogeneous"
>
True
</property>
<child>
<object
class=
"GtkSearchEntry"
id=
"SearchEntryMain"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"caps_lock_warning"
>
False
</property>
<property
name=
"primary_icon_name"
>
edit-find-symbolic
</property>
<property
name=
"primary_icon_activatable"
>
False
</property>
<property
name=
"primary_icon_sensitive"
>
False
</property>
<property
name=
"placeholder_text"
translatable=
"yes"
>
Click for search
</property>
<signal
name=
"search-changed"
handler=
"on_search_changed"
swapped=
"no"
/>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkScrolledWindow"
id=
"ScrolledWindowMain"
>
<property
name=
"visible"
>
True
</property>
...
...
@@ -226,8 +242,8 @@ Author: Erdem Ersoy
<property
name=
"model"
>
SortModel
</property>
<property
name=
"search_column"
>
0
</property>
<property
name=
"activate_on_single_click"
>
True
</property>
<signal
name=
"button-release-event"
handler=
"on_show_actions_menu"
swapped=
"no"
/>
<signal
name=
"columns-changed"
handler=
"on_columns_changed"
swapped=
"no"
/>
<signal
name=
"row-activated"
handler=
"on_show_actions_menu"
swapped=
"no"
/>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"TreeSelectionMain"
>
<signal
name=
"changed"
handler=
"on_selection_changed"
swapped=
"no"
/>
...
...
@@ -350,22 +366,6 @@ Author: Erdem Ersoy
<property
name=
"height"
>
11
</property>
</packing>
</child>
<child>
<object
class=
"GtkSearchEntry"
id=
"SearchEntryMain"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"caps_lock_warning"
>
False
</property>
<property
name=
"primary_icon_name"
>
edit-find-symbolic
</property>
<property
name=
"primary_icon_activatable"
>
False
</property>
<property
name=
"primary_icon_sensitive"
>
False
</property>
<property
name=
"placeholder_text"
translatable=
"yes"
>
Click for search
</property>
<signal
name=
"search-changed"
handler=
"on_search_changed"
swapped=
"no"
/>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
</packing>
</child>
</object>
</child>
</object>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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