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/gtkhbox.h>
00028 #include <gtk/gtkmenuitem.h>
00029 #include <gtk/gtktooltips.h>
00030 
00031 #define PIDGIN_TYPE_MENU_TRAY               (pidgin_menu_tray_get_gtype())
00032 #define PIDGIN_MENU_TRAY(obj)               (GTK_CHECK_CAST((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTray))
00033 #define PIDGIN_MENU_TRAY_CLASS(klass)       (GTK_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass))
00034 #define PIDGIN_IS_MENU_TRAY(obj)            (GTK_CHECK_TYPE((obj), PIDGIN_TYPE_MENU_TRAY))
00035 #define PIDGIN_IS_MENU_TRAY_CLASS(klass)    (GTK_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_MENU_TRAY))
00036 #define PIDGIN_MENU_TRAY_GET_CLASS(obj) (GTK_CHECK_GET_CLASS((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass))
00037 
00038 typedef struct _PidginMenuTray              PidginMenuTray;
00039 typedef struct _PidginMenuTrayClass     PidginMenuTrayClass;
00040 
00042 struct _PidginMenuTray {
00043     GtkMenuItem gparent;                    
00044     GtkWidget *tray;                        
00045     GtkTooltips *tooltips;                  
00046 };
00047 
00049 struct _PidginMenuTrayClass {
00050     GtkMenuItemClass gparent;               
00051 };
00052 
00053 G_BEGIN_DECLS
00054 
00061 GType pidgin_menu_tray_get_gtype(void);
00062 
00068 GtkWidget *pidgin_menu_tray_new(void);
00069 
00077 GtkWidget *pidgin_menu_tray_get_box(PidginMenuTray *menu_tray);
00078 
00086 void pidgin_menu_tray_append(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
00087 
00095 void pidgin_menu_tray_prepend(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
00096 
00104 void pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip);
00105 
00106 G_END_DECLS
00107 
00108 #endif /* PIDGIN_MENU_TRAY_H */