📄 tray.h
字号:
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- *//* tntc-tray.h * * Copyright (C) 2003-2003 Joakim Ziegler <joakim@avmaria.com> * * Parts taken from the Gaim docklet plugin, * Copyright (C) 2002-3 Robert McQueen <robot101@debian.org> * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com> * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org> * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU Emacs; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * Authors: Joakim Ziegler <joakim@avmaria.com> */#ifndef TNTC_TRAY_H#define TNTC_TRAY_H#ifndef G_PLATFORM_WIN32#include <gtk/gtkplug.h>#include <gdk/gdkx.h>#include <gtk/gtk.h>#define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type ())#define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon))#define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass))#define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON))#define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON))#define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) typedef struct _EggTrayIcon EggTrayIcon;typedef struct _EggTrayIconClass EggTrayIconClass;struct _EggTrayIcon{ GtkPlug parent_instance; guint stamp; Atom selection_atom; Atom manager_atom; Atom system_tray_opcode_atom; Window manager_window;};struct _EggTrayIconClass{ GtkPlugClass parent_class;};GType egg_tray_icon_get_type (void);#if EGG_TRAY_ENABLE_MULTIHEADEggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen, const gchar *name);#endifEggTrayIcon *egg_tray_icon_new (const gchar *name);guint egg_tray_icon_send_message (EggTrayIcon *icon, gint timeout, const char *message, gint len);void egg_tray_icon_cancel_message (EggTrayIcon *icon, guint id);#else /* G_PLATFORM_WIN32 */#endif /* G_PLATFORM_WIN32 */ /* functions in docklet.c */extern void docklet_clicked(GdkEventButton *event);extern void docklet_embedded ();extern void docklet_remove (gboolean);void tray_create ();void tray_destroy ();#endif /* TNTC_TRAY_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -