[empathy] Get the preview position from preview_pos



commit b5f6788106bbd8c3e06fef09edb533812114afa7
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Tue Aug 16 01:02:18 2011 +0100

    Get the preview position from preview_pos
    
    Getting it from the coordinates might fail if the system
    is too slow and gives us bad coordinates.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656572

 src/empathy-call-window.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 5bcf464..8517d9d 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -898,12 +898,12 @@ empathy_call_window_preview_enter_event_cb (ClutterActor *actor,
     EmpathyCallWindow *self)
 {
   ClutterActor *rectangle;
-  PreviewPosition pos;
 
-  pos = empathy_call_window_get_preview_position (self, event->x, event->y);
-  rectangle = empathy_call_window_get_preview_rectangle (self, pos);
+  rectangle = empathy_call_window_get_preview_rectangle (self,
+      self->priv->preview_pos);
 
-  empathy_call_window_highlight_preview_rectangle (self, pos);
+  empathy_call_window_highlight_preview_rectangle (self,
+      self->priv->preview_pos);
 
   clutter_actor_show (rectangle);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]