Tue, 27 May 2008 06:27:46 +0000
propagate from branch 'im.pidgin.pidgin' (head bd5f7f61d9349053ee4738efc0d17453f0574057)
to branch 'im.pidgin.pidgin.vv' (head 1049b744d8c8ceabaa3758f6dac78ed12a4a7e8e)
| 19886 | 1 | /** |
| 2 | * @file media.h Account API | |
| 3 | * @ingroup core | |
| 4 | * | |
| 5 | * Pidgin | |
| 6 | * | |
| 7 | * Pidgin is the legal property of its developers, whose names are too numerous | |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
| 10 | * | |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 25 | ||
| 26 | #ifndef __GTKMEDIA_H_ | |
| 27 | #define __GTKMEDIA_H_ | |
| 28 | ||
| 29 | #ifdef USE_FARSIGHT | |
| 30 | ||
| 31 | #include <farsight/farsight.h> | |
| 32 | #include <gtk/gtk.h> | |
| 33 | #include <glib-object.h> | |
| 34 | ||
| 35 | #include "connection.h" | |
| 36 | ||
| 37 | G_BEGIN_DECLS | |
| 38 | ||
| 39 | #define PIDGIN_TYPE_MEDIA (pidgin_media_get_type()) | |
| 40 | #define PIDGIN_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PIDGIN_TYPE_MEDIA, PidginMedia)) | |
| 41 | #define PIDGIN_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_MEDIA, PidginMediaClass)) | |
| 42 | #define PIDGIN_IS_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PIDGIN_TYPE_MEDIA)) | |
| 43 | #define PIDGIN_IS_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_MEDIA)) | |
| 44 | #define PIDGIN_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PIDGIN_TYPE_MEDIA, PidginMediaClass)) | |
| 45 | ||
| 46 | typedef struct _PidginMedia PidginMedia; | |
| 47 | typedef struct _PidginMediaClass PidginMediaClass; | |
| 48 | typedef struct _PidginMediaPrivate PidginMediaPrivate; | |
| 49 | ||
| 50 | struct _PidginMediaClass | |
| 51 | { | |
| 52 | GtkHBoxClass parent_class; | |
| 53 | }; | |
| 54 | ||
| 55 | struct _PidginMedia | |
| 56 | { | |
| 57 | GtkHBox parent; | |
| 58 | PidginMediaPrivate *priv; | |
| 59 | }; | |
| 60 | ||
|
22400
3762d64b1f58
Show a message when the remote end terminates a session.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19886
diff
changeset
|
61 | GType pidgin_media_get_type(void); |
| 19886 | 62 | |
|
22682
8df904a56d77
Change a few things:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22648
diff
changeset
|
63 | GtkWidget *pidgin_media_new(PurpleMedia *media, GstElement *send_level, GstElement *recv_level); |
| 19886 | 64 | |
| 65 | G_END_DECLS | |
| 66 | ||
| 67 | #endif /* USE_FARSIGHT */ | |
| 68 | ||
| 69 | ||
| 70 | #endif /* __GTKMEDIA_H_ */ |