aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-10 17:16:40 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-15 19:14:55 +0800
commitc0a10ef3094f82a9d0532e942b0b27d7f34f0201 (patch)
tree7674cfadc7830a1f155c3c130e3a72756f843aa4 /src/empathy-call-window.c
parent30d64de5341a8701ddfd3be24071846de82e121f (diff)
downloadgsoc2013-empathy-c0a10ef3094f82a9d0532e942b0b27d7f34f0201.tar
gsoc2013-empathy-c0a10ef3094f82a9d0532e942b0b27d7f34f0201.tar.gz
gsoc2013-empathy-c0a10ef3094f82a9d0532e942b0b27d7f34f0201.tar.bz2
gsoc2013-empathy-c0a10ef3094f82a9d0532e942b0b27d7f34f0201.tar.lz
gsoc2013-empathy-c0a10ef3094f82a9d0532e942b0b27d7f34f0201.tar.xz
gsoc2013-empathy-c0a10ef3094f82a9d0532e942b0b27d7f34f0201.tar.zst
gsoc2013-empathy-c0a10ef3094f82a9d0532e942b0b27d7f34f0201.zip
Factor out empathy_call_window_darken_preview_rectangle
https://bugzilla.gnome.org/show_bug.cgi?id=656268
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c8dc182fb..feb16a398 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -726,31 +726,28 @@ empathy_call_window_highlight_preview_rectangle (EmpathyCallWindow *self,
}
static void
-empathy_call_window_darken_preview_rectangles (EmpathyCallWindow *self)
+empathy_call_window_darken_preview_rectangle (EmpathyCallWindow *self,
+ ClutterActor *rectangle)
{
- clutter_rectangle_set_border_width (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle1), 1);
- clutter_rectangle_set_border_color (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle1),
+ clutter_rectangle_set_border_width (CLUTTER_RECTANGLE (rectangle), 1);
+ clutter_rectangle_set_border_color (CLUTTER_RECTANGLE (rectangle),
CLUTTER_COLOR_Black);
+}
- clutter_rectangle_set_border_width (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle2), 1);
- clutter_rectangle_set_border_color (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle2),
- CLUTTER_COLOR_Black);
+static void
+empathy_call_window_darken_preview_rectangles (EmpathyCallWindow *self)
+{
+ empathy_call_window_darken_preview_rectangle (self,
+ self->priv->preview_rectangle1);
- clutter_rectangle_set_border_width (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle3), 1);
- clutter_rectangle_set_border_color (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle3),
- CLUTTER_COLOR_Black);
+ empathy_call_window_darken_preview_rectangle (self,
+ self->priv->preview_rectangle2);
- clutter_rectangle_set_border_width (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle4), 1);
- clutter_rectangle_set_border_color (
- CLUTTER_RECTANGLE (self->priv->preview_rectangle4),
- CLUTTER_COLOR_Black);
+ empathy_call_window_darken_preview_rectangle (self,
+ self->priv->preview_rectangle3);
+
+ empathy_call_window_darken_preview_rectangle (self,
+ self->priv->preview_rectangle4);
}
static void