aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-06 22:08:29 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-15 23:38:22 +0800
commit06637c4ad0fcc8765c2388f9264db7b49b260eaa (patch)
tree9761bf8ce5ac47f62915c164caeb654fe6b376b6 /libempathy-gtk
parent86aa1501e7a76b92ba402dddc4ce85d403c609bf (diff)
downloadgsoc2013-empathy-06637c4ad0fcc8765c2388f9264db7b49b260eaa.tar
gsoc2013-empathy-06637c4ad0fcc8765c2388f9264db7b49b260eaa.tar.gz
gsoc2013-empathy-06637c4ad0fcc8765c2388f9264db7b49b260eaa.tar.bz2
gsoc2013-empathy-06637c4ad0fcc8765c2388f9264db7b49b260eaa.tar.lz
gsoc2013-empathy-06637c4ad0fcc8765c2388f9264db7b49b260eaa.tar.xz
gsoc2013-empathy-06637c4ad0fcc8765c2388f9264db7b49b260eaa.tar.zst
gsoc2013-empathy-06637c4ad0fcc8765c2388f9264db7b49b260eaa.zip
video-widget: use new GTK+ style API (#636500)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-video-widget.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-video-widget.c b/libempathy-gtk/empathy-video-widget.c
index 26cc878b2..b4b39ffdb 100644
--- a/libempathy-gtk/empathy-video-widget.c
+++ b/libempathy-gtk/empathy-video-widget.c
@@ -83,7 +83,7 @@ static void
empathy_video_widget_init (EmpathyVideoWidget *obj)
{
EmpathyVideoWidgetPriv *priv = GET_PRIV (obj);
- GdkColor black;
+ GdkRGBA black;
priv->lock = g_mutex_new ();
@@ -92,9 +92,8 @@ empathy_video_widget_init (EmpathyVideoWidget *obj)
G_CALLBACK (empathy_video_widget_element_added_cb),
obj);
- if (gdk_color_parse ("Black", &black))
- gtk_widget_modify_bg (GTK_WIDGET (obj), GTK_STATE_NORMAL,
- &black);
+ if (gdk_rgba_parse (&black, "Black"))
+ gtk_widget_override_background_color (GTK_WIDGET (obj), 0, &black);
gtk_widget_set_double_buffered (GTK_WIDGET (obj), FALSE);
}
@@ -434,8 +433,7 @@ empathy_video_widget_draw (GtkWidget *widget,
{
gtk_widget_get_allocation (widget, &allocation);
- gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
- GTK_STATE_NORMAL, GTK_SHADOW_NONE, widget, NULL,
+ gtk_render_frame (gtk_widget_get_style_context (widget), cr,
0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));