85 lines
3.5 KiB
Diff
85 lines
3.5 KiB
Diff
--- a/pitivi/greeterperspective.py 2022-06-25 01:30:31.000000000 +0200
|
|
+++ b/pitivi/greeterperspective.py 2024-10-31 01:15:29.520315368 +0100
|
|
@@ -108,7 +108,6 @@
|
|
self.__cancel_button = None
|
|
self.__new_project_button = None
|
|
self.__open_project_button = None
|
|
- self.__warnings_button = None
|
|
|
|
# Projects selected for removal.
|
|
self.__selected_projects = []
|
|
@@ -241,10 +240,6 @@
|
|
self.__cancel_button = Gtk.Button.new_with_label(_("Cancel"))
|
|
self.__cancel_button.connect("clicked", self.__cancel_clicked_cb)
|
|
|
|
- self.__warnings_button = Gtk.MenuButton.new()
|
|
- self.__warnings_button.props.image = Gtk.Image.new_from_icon_name("warning-symbolic", Gtk.IconSize.BUTTON)
|
|
- self.__warnings_button.set_popover(self.__create_warnings_popover())
|
|
-
|
|
self.menu_button = self.__create_menu()
|
|
|
|
headerbar.pack_start(self.__new_project_button)
|
|
@@ -252,7 +247,6 @@
|
|
headerbar.pack_end(self.menu_button)
|
|
headerbar.pack_end(self.__selection_button)
|
|
headerbar.pack_end(self.__cancel_button)
|
|
- headerbar.pack_end(self.__warnings_button)
|
|
headerbar.show()
|
|
|
|
return headerbar
|
|
@@ -265,7 +259,6 @@
|
|
self.__selection_button.set_visible(projects)
|
|
self.menu_button.set_visible(welcome or projects)
|
|
self.headerbar.set_show_close_button(welcome or projects)
|
|
- self.__warnings_button.set_visible((welcome or projects) and MISSING_SOFT_DEPS)
|
|
|
|
if selection:
|
|
self.headerbar.get_style_context().add_class("selection-mode")
|
|
@@ -433,46 +426,3 @@
|
|
for project in self.__selected_projects:
|
|
self.app.recent_manager.remove_item(project.uri)
|
|
self.refresh()
|
|
-
|
|
- def __create_warnings_popover(self):
|
|
- """Creates a popover listing missing soft dependencies."""
|
|
- popover = Gtk.Popover()
|
|
- box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, margin=PADDING * 3)
|
|
-
|
|
- label = Gtk.Label(_("To enable additional features, please install the following packages and restart Pitivi:"))
|
|
- label.props.halign = Gtk.Align.START
|
|
- label.props.wrap = True
|
|
- label.props.xalign = 0
|
|
- box.pack_start(label, False, False, 0)
|
|
-
|
|
- grid = Gtk.Grid()
|
|
- grid.props.row_spacing = SPACING
|
|
- grid.props.column_spacing = PADDING
|
|
- grid.props.margin_start = SPACING
|
|
- grid.props.margin_top = SPACING * 2
|
|
-
|
|
- for row_index, dep in enumerate(MISSING_SOFT_DEPS.values()):
|
|
- name_label = Gtk.Label(dep.modulename)
|
|
- name_label.props.selectable = True
|
|
- name_label.props.can_focus = False
|
|
- name_label.props.xalign = 0
|
|
- name_label.props.valign = Gtk.Align.START
|
|
- grid.attach(name_label, 0, row_index, 1, 1)
|
|
-
|
|
- mdash_label = Gtk.Label("―")
|
|
- mdash_label.props.xalign = 0
|
|
- mdash_label.props.valign = Gtk.Align.START
|
|
- grid.attach(mdash_label, 1, row_index, 1, 1)
|
|
-
|
|
- description_label = Gtk.Label(dep.additional_message)
|
|
- description_label.props.wrap = True
|
|
- description_label.props.xalign = 0
|
|
- description_label.props.yalign = Gtk.Align.START
|
|
- grid.attach(description_label, 2, row_index, 1, 1)
|
|
-
|
|
- box.pack_start(grid, False, False, 0)
|
|
-
|
|
- wrapper_bin = BinWithNaturalWidth(box, width=500)
|
|
- wrapper_bin.show_all()
|
|
- popover.add(wrapper_bin)
|
|
- return popover
|