Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-06-19 11:58:05

chang-zhao
Member
Registered: 2023-11-20
Posts: 41

Is it possible to drop files on status icons?

I know we can drop files on panel's Launchers, but if I rather want my program be shown as status icon in a notification area, can that icon receive files with drag-n-drop?

I use Gtk3 and XApp:

import gi
gi.require_version("Gtk", "3.0")
gi.require_version('XApp', '1.0')
from gi.repository import Gtk, XApp
#...

    tray = XApp.StatusIcon()
    tray.set_icon_name(iconPath)
    tray.set_secondary_menu(menu())
    tray.connect("button-press-event", on_icon_click)

The documentation doesn't give anything,
https://lazka.github.io/pgi-docs/index. … sIcon.html
so the answer is probably No. But in case I missed something about XFCE, I wonder if anyone knows a way.

Offline

Board footer

Powered by FluxBB