gtkdocklet.h

00001 /* 
00002  * System tray icon (aka docklet) plugin for Purple
00003  * 
00004  * Copyright (C) 2002-3 Robert McQueen <robot101@debian.org>
00005  * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com>
00006  * Inspired by a similar plugin by:
00007  *  John (J5) Palmieri <johnp@martianrock.com>
00008  * 
00009  * This program is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU General Public License as
00011  * published by the Free Software Foundation; either version 2 of the
00012  * License, or (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful, but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  * General Public License for more details.
00018  * 
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00022  * 02111-1301, USA.
00023  */
00024 
00025 #ifndef _GTKDOCKLET_H_
00026 #define _GTKDOCKLET_H_
00027 
00028 #include "status.h"
00029 
00030 struct docklet_ui_ops
00031 {
00032     void (*create)(void);
00033     void (*destroy)(void);
00034     void (*update_icon)(PurpleStatusPrimitive, gboolean, gboolean);
00035     void (*blank_icon)(void);
00036     void (*set_tooltip)(gchar *);
00037     GtkMenuPositionFunc position_menu;
00038 };
00039 
00040 
00041 /* functions in gtkdocklet.c */
00042 void pidgin_docklet_update_icon(void);
00043 void pidgin_docklet_clicked(int);
00044 void pidgin_docklet_embedded(void);
00045 void pidgin_docklet_remove(void);
00046 void pidgin_docklet_set_ui_ops(struct docklet_ui_ops *);
00047 void pidgin_docklet_unload(void);
00048 void pidgin_docklet_init(void);
00049 void pidgin_docklet_uninit(void);
00050 void*pidgin_docklet_get_handle(void);
00051 
00052 /* function in gtkdocklet-{x11,win32}.c */
00053 void docklet_ui_init(void);
00054 
00055 #endif /* _GTKDOCKLET_H_ */