Mon, 08 Jun 2009 02:24:49 +0000
Use the JID for adding a chat/buddy because the name is for descriptive
purpose only, and using it will not fill in the Add Chat dialog correctly.
Because the JID is not visible, the user will not know what to actually put
there instead.
| 3510 | 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
| 2 | /* eggtrayicon.h | |
| 3 | * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org> | |
| 4 | * | |
| 5 | * This library is free software; you can redistribute it and/or | |
| 6 | * modify it under the terms of the GNU Lesser General Public | |
| 7 | * License as published by the Free Software Foundation; either | |
| 8 | * version 2 of the License, or (at your option) any later version. | |
| 9 | * | |
| 10 | * This library is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | * Lesser General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU Lesser General Public | |
| 16 | * License along with this library; if not, write to the | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15435
diff
changeset
|
17 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15435
diff
changeset
|
18 | * Boston, MA 02111-1301, USA. |
| 3510 | 19 | */ |
| 20 | ||
| 21 | #ifndef __EGG_TRAY_ICON_H__ | |
| 22 | #define __EGG_TRAY_ICON_H__ | |
| 23 | ||
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25888
diff
changeset
|
24 | #include <gtk/gtk.h> |
| 3510 | 25 | #include <gdk/gdkx.h> |
| 26 | ||
| 27 | G_BEGIN_DECLS | |
| 28 | ||
| 29 | #define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type ()) | |
| 30 | #define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon)) | |
| 31 | #define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) | |
| 32 | #define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON)) | |
| 33 | #define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON)) | |
| 34 | #define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) | |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
19859
diff
changeset
|
35 | |
| 3510 | 36 | typedef struct _EggTrayIcon EggTrayIcon; |
| 37 | typedef struct _EggTrayIconClass EggTrayIconClass; | |
| 38 | ||
| 39 | struct _EggTrayIcon | |
| 40 | { | |
| 41 | GtkPlug parent_instance; | |
| 42 | ||
| 43 | guint stamp; | |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
19859
diff
changeset
|
44 | |
| 3510 | 45 | Atom selection_atom; |
| 46 | Atom manager_atom; | |
| 47 | Atom system_tray_opcode_atom; | |
| 10779 | 48 | Atom orientation_atom; |
| 3510 | 49 | Window manager_window; |
| 10779 | 50 | |
| 51 | GtkOrientation orientation; | |
| 3510 | 52 | }; |
| 53 | ||
| 54 | struct _EggTrayIconClass | |
| 55 | { | |
| 56 | GtkPlugClass parent_class; | |
| 57 | }; | |
| 58 | ||
| 59 | GType egg_tray_icon_get_type (void); | |
| 60 | ||
| 10779 | 61 | #if GTK_CHECK_VERSION(2,1,0) |
| 3510 | 62 | EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen, |
| 63 | const gchar *name); | |
| 64 | #endif | |
| 65 | ||
| 66 | EggTrayIcon *egg_tray_icon_new (const gchar *name); | |
| 67 | ||
| 68 | guint egg_tray_icon_send_message (EggTrayIcon *icon, | |
| 69 | gint timeout, | |
| 70 | const char *message, | |
| 71 | gint len); | |
| 72 | void egg_tray_icon_cancel_message (EggTrayIcon *icon, | |
| 73 | guint id); | |
| 74 | ||
| 10779 | 75 | GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon); |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
19859
diff
changeset
|
76 | |
| 3510 | 77 | G_END_DECLS |
| 78 | ||
| 79 | #endif /* __EGG_TRAY_ICON_H__ */ |