gtkmenutray.h

Go to the documentation of this file.
00001 
00006 /* Pidgin is the legal property of its developers, whose names are too numerous
00007  * to list here.  Please refer to the COPYRIGHT file distributed with this
00008  * source distribution.
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00023  */
00024 #ifndef PIDGIN_MENU_TRAY_H
00025 #define PIDGIN_MENU_TRAY_H
00026 
00027 #include <gtk/gtk.h>
00028 
00029 #define PIDGIN_TYPE_MENU_TRAY            (pidgin_menu_tray_get_gtype())
00030 #define PIDGIN_MENU_TRAY(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTray))
00031 #define PIDGIN_MENU_TRAY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass))
00032 #define PIDGIN_IS_MENU_TRAY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), PIDGIN_TYPE_MENU_TRAY))
00033 #define PIDGIN_IS_MENU_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_MENU_TRAY))
00034 #define PIDGIN_MENU_TRAY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass))
00035 
00036 typedef struct _PidginMenuTray              PidginMenuTray;
00037 typedef struct _PidginMenuTrayClass     PidginMenuTrayClass;
00038 
00040 struct _PidginMenuTray {
00041     GtkMenuItem gparent;                    
00042     GtkWidget *tray;                        
00043     GtkTooltips *tooltips;                  
00044 };
00045 
00047 struct _PidginMenuTrayClass {
00048     GtkMenuItemClass gparent;               
00049 };
00050 
00051 G_BEGIN_DECLS
00052 
00059 GType pidgin_menu_tray_get_gtype(void);
00060 
00066 GtkWidget *pidgin_menu_tray_new(void);
00067 
00075 GtkWidget *pidgin_menu_tray_get_box(PidginMenuTray *menu_tray);
00076 
00084 void pidgin_menu_tray_append(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
00085 
00093 void pidgin_menu_tray_prepend(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
00094 
00102 void pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
00103 
00104 G_END_DECLS
00105 
00106 #endif /* PIDGIN_MENU_TRAY_H */