From a973f8e636e6dc8c72d3f98409c1b9b87e87f459 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Fri, 8 Jul 2022 21:59:35 +0300 Subject: [PATCH] added popup menu for recordings tab --- app/ui/recordings.glade | 16 ++++++++++++++++ app/ui/recordings.py | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/app/ui/recordings.glade b/app/ui/recordings.glade index 583a43cb..b9b2afe3 100644 --- a/app/ui/recordings.glade +++ b/app/ui/recordings.glade @@ -34,6 +34,21 @@ Author: Dmitriy Yefremov + + True + False + + + gtk-remove + True + False + True + True + + + + + @@ -263,6 +278,7 @@ Author: Dmitriy Yefremov recordings_sort_model both 5 + diff --git a/app/ui/recordings.py b/app/ui/recordings.py index 733592a0..5089abfd 100644 --- a/app/ui/recordings.py +++ b/app/ui/recordings.py @@ -32,7 +32,7 @@ from ftplib import all_errors from urllib.parse import quote from .dialogs import get_builder, show_dialog, DialogType -from .main_helper import get_base_paths, get_base_model +from .main_helper import get_base_paths, get_base_model, on_popup_menu from .uicommons import Gtk, Gdk, GLib, UI_RESOURCES_PATH, Column, KeyboardKey from ..commons import run_task, run_idle, log from ..connections import UtfFTP, HttpAPI @@ -63,7 +63,8 @@ class RecordingsTool(Gtk.Box): "on_recordings_model_changed": self.on_recordings_model_changed, "on_recordings_filter_changed": self.on_recordings_filter_changed, "on_recordings_filter_toggled": self.on_recordings_filter_toggled, - "on_recordings_key_press": self.on_recordings_key_press} + "on_recordings_key_press": self.on_recordings_key_press, + "on_popup_menu": on_popup_menu} builder = get_builder(f"{UI_RESOURCES_PATH}recordings.glade", handlers)