roundabout,
created on Monday, 4 August 2025, 11:25:07 (1754306707),
received on Saturday, 9 August 2025, 12:22:37 (1754742157)
Author identity: Vlad <vlad.muntoiu@gmail.com>
87c5c967576cad81f2b906e44b4ba3ce032faa2c
applets/wf-window-list/__init__.py
@@ -20,6 +20,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
import dataclasses
import os
import sys
import locale
from pathlib import Path
from pywayland.client import Display
from pywayland.protocol.wayland import WlRegistry, WlSeat, WlSurface, WlCompositor
@@ -37,6 +38,12 @@ gi.require_version("GdkWayland", "4.0")
from gi.repository import Gtk, GLib, Gtk4LayerShell, Gio, Gdk, Pango, GObject
module_directory = Path(__file__).resolve().parent
locale.bindtextdomain("panorama-window-list", module_directory / "locale")
_ = lambda x: locale.dgettext("panorama-window-list", x)
import ctypes
from cffi import FFI
ffi = FFI()
@@ -47,9 +54,6 @@ void * gdk_wayland_surface_get_wl_surface (void * surface);
gtk = ffi.dlopen("libgtk-4.so.1")
module_directory = Path(__file__).resolve().parent
@Gtk.Template(filename=str(module_directory / "panorama-window-list-options.ui"))
class WindowListOptions(Gtk.Window):
__gtype_name__ = "WindowListOptions"
@@ -224,8 +228,8 @@ class WindowButton(Gtk.ToggleButton):
class WFWindowList(panorama_panel.Applet):
name = "Wayfire window list"
description = "Traditional window list (for Wayfire)"
name = _("Wayfire window list")
description = _("Traditional window list (for Wayfire and other wlroots compositors)")
def __init__(self, orientation=Gtk.Orientation.HORIZONTAL, config=None):
super().__init__(orientation=orientation, config=config)
@@ -410,7 +414,7 @@ class WFWindowList(panorama_panel.Applet):
def make_context_menu(self):
menu = Gio.Menu()
menu.append("Window list _options", "applet.options")
menu.append(_("Window list _options"), "applet.options")
context_menu = Gtk.PopoverMenu.new_from_model(menu)
context_menu.set_has_arrow(False)
context_menu.set_parent(self)
applets/wf-window-list/locale/ro/LC_MESSAGES/panorama-window-list.mo
applets/wf-window-list/panorama-window-list-options.ui
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.96.1 -->
<interface>
<interface domain="panorama-window-list">
<!-- interface-name panorama-clock-options.ui -->
<!-- interface-description Provides a window with configuration options for the clock. -->
<!-- interface-copyright Copyright 2025, roundabout-host.com <vlad@roundabout-host.com>
applets/wf-window-list/panorama-window-list.cmb
@@ -2,5 +2,5 @@
<!DOCTYPE cambalache-project SYSTEM "cambalache-project.dtd">
<!-- Created with Cambalache 0.96.1 -->
<cambalache-project version="0.96.0" target_tk="gtk-4.0">
<ui template-class="WindowListOptions" filename="panorama-window-list-options.ui" sha256="190e4759fc5ad869f104b70803cdefc1e59e1f5b1ebb3c2c60be6b5d3a203a6a"/>
<ui template-class="WindowListOptions" filename="panorama-window-list-options.ui" sha256="e6cdf67148fbc801397fdef5ceb66c558cd4b1dad19dc1d5ef94af454c0afd0b"/>
</cambalache-project>
applets/wf-window-list/po/messages.pot
@@ -0,0 +1,42 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-04 14:19+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: __init__.py:231
msgid "Wayfire window list"
msgstr ""
#: __init__.py:232
msgid "Traditional window list (for Wayfire and other wlroots compositors)"
msgstr ""
#: __init__.py:417
msgid "Window list _options"
msgstr ""
#: panorama-window-list-options.ui:24
msgid "Window list options"
msgstr ""
#: panorama-window-list-options.ui:41
msgid "Layout"
msgstr ""
#: panorama-window-list-options.ui:59
msgid "Maximum width of window buttons"
msgstr ""
applets/wf-window-list/po/ro.po
@@ -0,0 +1,43 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-04 14:19+0300\n"
"PO-Revision-Date: 2025-08-04 14:21+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ro_RO\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.6\n"
#: __init__.py:231
msgid "Wayfire window list"
msgstr "Listă ferestre pentru Wayfire"
#: __init__.py:232
msgid "Traditional window list (for Wayfire and other wlroots compositors)"
msgstr "Listă de ferestre tradițională (pentru Wayfire și alți compozitori wlroots)"
#: __init__.py:417
msgid "Window list _options"
msgstr "_Opțiuni listă ferestre"
#: panorama-window-list-options.ui:24
msgid "Window list options"
msgstr "Opțiuni listă ferestre"
#: panorama-window-list-options.ui:41
msgid "Layout"
msgstr "Aranjament"
#: panorama-window-list-options.ui:59
msgid "Maximum width of window buttons"
msgstr "Lățimea maximă a butoanelor de fereastră"