pidgin: 0f3cc5ea: Remove old GtkPlug and GtkSocket code.
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Sun Apr 5 22:10:26 EDT 2009
-----------------------------------------------------------------
Revision: 0f3cc5eaf6cb9aff180d63efb1dee828936078d1
Ancestor: 58b2ba106e563fcd0984b9438aa427f1d61e25e9
Author: maiku at soc.pidgin.im
Date: 2009-04-06T02:06:39
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0f3cc5eaf6cb9aff180d63efb1dee828936078d1
Modified files:
pidgin/gtkmedia.c
ChangeLog:
Remove old GtkPlug and GtkSocket code.
-------------- next part --------------
============================================================
--- pidgin/gtkmedia.c 1dcdfe67342a29b0bbc9886980f034833ee21965
+++ pidgin/gtkmedia.c 327c1f8123eea60559dfcf6c080a9b625351546b
@@ -495,26 +495,7 @@ pidgin_media_accepted_cb(PurpleMedia *me
gtk_widget_show(GTK_WIDGET(gtkmedia));
}
-static gboolean
-plug_delete_event_cb(GtkWidget *widget, gpointer data)
-{
- return TRUE;
-}
-
-static gboolean
-plug_removed_cb(GtkWidget *widget, gpointer data)
-{
- return TRUE;
-}
-
static void
-socket_realize_cb(GtkWidget *widget, gpointer data)
-{
- gtk_socket_add_id(GTK_SOCKET(widget),
- gtk_plug_get_id(GTK_PLUG(data)));
-}
-
-static void
pidgin_media_accept_cb(PurpleMedia *media, int index)
{
purple_media_stream_info(media, PURPLE_MEDIA_INFO_ACCEPT,
@@ -619,27 +600,12 @@ pidgin_media_ready_cb(PurpleMedia *media
PidginMediaRealizeData *data;
GtkWidget *aspect;
GtkWidget *remote_video;
- GtkWidget *plug;
- GtkWidget *socket;
GdkColor color = {0, 0, 0, 0};
aspect = gtk_aspect_frame_new(NULL, 0.5, 0.5, 4.0/3.0, FALSE);
gtk_frame_set_shadow_type(GTK_FRAME(aspect), GTK_SHADOW_IN);
gtk_box_pack_start(GTK_BOX(recv_widget), aspect, TRUE, TRUE, 0);
- plug = gtk_plug_new(0);
- g_signal_connect(G_OBJECT(plug), "delete-event",
- G_CALLBACK(plug_delete_event_cb), plug);
- gtk_widget_show(plug);
-
- socket = gtk_socket_new();
- g_signal_connect(G_OBJECT(socket), "realize",
- G_CALLBACK(socket_realize_cb), plug);
- g_signal_connect(G_OBJECT(socket), "plug-removed",
- G_CALLBACK(plug_removed_cb), NULL);
- gtk_container_add(GTK_CONTAINER(aspect), socket);
- gtk_widget_show(socket);
-
data = g_new0(PidginMediaRealizeData, 1);
data->gtkmedia = gtkmedia;
data->session_id = g_strdup(sid);
@@ -649,7 +615,7 @@ pidgin_media_ready_cb(PurpleMedia *media
gtk_widget_modify_bg(remote_video, GTK_STATE_NORMAL, &color);
g_signal_connect(G_OBJECT(remote_video), "realize",
G_CALLBACK(realize_cb), data);
- gtk_container_add(GTK_CONTAINER(plug), remote_video);
+ gtk_container_add(GTK_CONTAINER(aspect), remote_video);
gtk_widget_set_size_request (GTK_WIDGET(remote_video), 320, 240);
gtk_widget_show(remote_video);
gtk_widget_show(aspect);
@@ -660,27 +626,12 @@ pidgin_media_ready_cb(PurpleMedia *media
PidginMediaRealizeData *data;
GtkWidget *aspect;
GtkWidget *local_video;
- GtkWidget *plug;
- GtkWidget *socket;
GdkColor color = {0, 0, 0, 0};
aspect = gtk_aspect_frame_new(NULL, 0.5, 0.5, 4.0/3.0, FALSE);
gtk_frame_set_shadow_type(GTK_FRAME(aspect), GTK_SHADOW_IN);
gtk_box_pack_start(GTK_BOX(send_widget), aspect, TRUE, TRUE, 0);
- plug = gtk_plug_new(0);
- g_signal_connect(G_OBJECT(plug), "delete-event",
- G_CALLBACK(plug_delete_event_cb), plug);
- gtk_widget_show(plug);
-
- socket = gtk_socket_new();
- g_signal_connect(G_OBJECT(socket), "realize",
- G_CALLBACK(socket_realize_cb), plug);
- g_signal_connect(G_OBJECT(socket), "plug-removed",
- G_CALLBACK(plug_removed_cb), NULL);
- gtk_container_add(GTK_CONTAINER(aspect), socket);
- gtk_widget_show(socket);
-
data = g_new0(PidginMediaRealizeData, 1);
data->gtkmedia = gtkmedia;
data->session_id = g_strdup(sid);
@@ -690,7 +641,7 @@ pidgin_media_ready_cb(PurpleMedia *media
gtk_widget_modify_bg(local_video, GTK_STATE_NORMAL, &color);
g_signal_connect(G_OBJECT(local_video), "realize",
G_CALLBACK(realize_cb), data);
- gtk_container_add(GTK_CONTAINER(plug), local_video);
+ gtk_container_add(GTK_CONTAINER(aspect), local_video);
gtk_widget_set_size_request (GTK_WIDGET(local_video), 160, 120);
gtk_widget_show(local_video);
More information about the Commits
mailing list