Mercurial > pidgin.yaz
diff pidgin/gtkblist.c @ 26122:5d9a97a23d6e
Remove some of the deprecated API.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Tue, 13 Jan 2009 13:43:13 +0000 |
parents | 3fd5bda55d76 |
children | f95aa2b14bec |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Tue Jan 13 13:01:50 2009 +0000 +++ b/pidgin/gtkblist.c Tue Jan 13 13:43:13 2009 +0000 @@ -340,32 +340,22 @@ #ifdef USE_VV static void gtk_blist_menu_audio_call_cb(GtkWidget *w, PurpleBuddy *b) { - PurpleMedia *media = purple_prpl_initiate_media(purple_buddy_get_account(b), + purple_prpl_initiate_media(purple_buddy_get_account(b), purple_buddy_get_name(b), PURPLE_MEDIA_AUDIO); - - if (media) { - purple_media_wait(media); - } } static void gtk_blist_menu_video_call_cb(GtkWidget *w, PurpleBuddy *b) { - PurpleMedia *media = NULL; - /* if the buddy supports both audio and video, start a combined call, otherwise start a pure video session */ if (purple_prpl_can_do_media(purple_buddy_get_account(b), purple_buddy_get_name(b), PURPLE_MEDIA_AUDIO)) { - media = purple_prpl_initiate_media(purple_buddy_get_account(b), + purple_prpl_initiate_media(purple_buddy_get_account(b), purple_buddy_get_name(b), PURPLE_MEDIA_AUDIO | PURPLE_MEDIA_VIDEO); } else { - media = purple_prpl_initiate_media(purple_buddy_get_account(b), + purple_prpl_initiate_media(purple_buddy_get_account(b), purple_buddy_get_name(b), PURPLE_MEDIA_VIDEO); } - - if (media) { - purple_media_wait(media); - } } #endif