pidgin.vv: 9de7de36: Make the backgrounds of the drawing area...

maiku at soc.pidgin.im maiku at soc.pidgin.im
Mon Feb 2 06:40:28 EST 2009


-----------------------------------------------------------------
Revision: 9de7de36be0d4c31be515e3b12179a5d51423e0d
Ancestor: 23b9058df46a6336d6a8e18ae93a4f3e96959fe7
Author: maiku at soc.pidgin.im
Date: 2009-02-02T10:12:29
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/9de7de36be0d4c31be515e3b12179a5d51423e0d

Modified files:
        pidgin/gtkmedia.c

ChangeLog: 

Make the backgrounds of the drawing areas black so it doesn't look as 
though they are empty before sinks are embedded into them.

-------------- next part --------------
============================================================
--- pidgin/gtkmedia.c	fe6544279ad4988c86aed5e7714efccde455517d
+++ pidgin/gtkmedia.c	84e179d9e754b39e7ac4cdd58ac9b2d24a9ccb8a
@@ -430,6 +430,7 @@ pidgin_media_ready_cb(PurpleMedia *media
 		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);
@@ -454,6 +455,7 @@ pidgin_media_ready_cb(PurpleMedia *media
 		data->participant = g_strdup(gtkmedia->priv->screenname);
 
 		remote_video = gtk_drawing_area_new();
+		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);
@@ -469,6 +471,7 @@ pidgin_media_ready_cb(PurpleMedia *media
 		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);
@@ -493,6 +496,7 @@ pidgin_media_ready_cb(PurpleMedia *media
 		data->participant = NULL;
 
 		local_video = gtk_drawing_area_new();
+		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);


More information about the Commits mailing list