Skip to content

Add copy-to-clipboard button for IPTV channel URLs (#402)#410

Open
CoderBoxer wants to merge 1 commit intolinuxmint:masterfrom
CoderBoxer:feature/copy-channel-url
Open

Add copy-to-clipboard button for IPTV channel URLs (#402)#410
CoderBoxer wants to merge 1 commit intolinuxmint:masterfrom
CoderBoxer:feature/copy-channel-url

Conversation

@CoderBoxer
Copy link
Copy Markdown

Overview

This pull request implements the feature requested in #402, adding a dedicated copy button to each channel tile so users can easily capture raw streaming URLs (.m3u8 paths) directly to their system clipboard.

Changes

  • Refactored the layout structure inside ChannelWidget (hypnotix.py) from a simple vertical box to a nested layout.
  • Introduced a horizontal child box container at the bottom of the widget to house the channel title label and the new button side-by-side.
  • Left-aligned the channel text (xalign=0.0) with expansion enabled to prevent visual collisions.
  • Added a Gtk.Button leveraging the standard desktop edit-copy-symbolic icon asset, complete with an i18n-wrapped localized tooltip string (_()).
  • Implemented the on_copy_clicked callback function interacting with Gdk.SELECTION_CLIPBOARD to securely handle string transitions.

Note: Developed and logic-verified via an isolated workspace environment. Visual scaling alignment should conform to standard desktop container padding, but local validation from a maintainer on a live desktop environment is welcome.

Closes #402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Add a copy button to the IPTV channel URLs

1 participant