gnome-shell/src/shell-tray-icon.h
Florian Müllner 01824a6d4e shell: Add getter/setters for all properties
Traditionally, getter/setter functions have been considered a
C convenience, and we therefore didn't bother to add them for
many properties that are only consumed from JS.

However now that gjs optimizes property accesses by calling the
appropriate getter/setter instead, it makes sense to add them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3620>
2025-02-12 13:11:11 +00:00

16 lines
560 B
C

/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#pragma once
#include <clutter/clutter.h>
#define SHELL_TYPE_TRAY_ICON (shell_tray_icon_get_type ())
G_DECLARE_FINAL_TYPE (ShellTrayIcon, shell_tray_icon,
SHELL, TRAY_ICON, ClutterClone)
pid_t shell_tray_icon_get_pid (ShellTrayIcon *icon);
const char * shell_tray_icon_get_title (ShellTrayIcon *icon);
const char * shell_tray_icon_get_wm_class (ShellTrayIcon *icon);
void shell_tray_icon_click (ShellTrayIcon *icon,
ClutterEvent *event);