[cheese] Replaced expose_event in callback with draw_event



commit 5b2b5725e5f704d23ab54b4283760d2f943805be
Author: Patricia Santana Cruz <patriciasc openismus com>
Date:   Fri Feb 25 15:29:19 2011 +0100

    Replaced expose_event in callback with draw_event

 libcheese/cheese-flash.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/libcheese/cheese-flash.c b/libcheese/cheese-flash.c
index 8b470ab..091d134 100644
--- a/libcheese/cheese-flash.c
+++ b/libcheese/cheese-flash.c
@@ -58,16 +58,9 @@ typedef struct
 } CheeseFlashPrivate;
 
 static gboolean
-cheese_flash_window_expose_event_cb (GtkWidget *widget, cairo_t *cr, gpointer user_data)
+cheese_flash_window_draw_event_cb (GtkWidget *widget, cairo_t *cr, gpointer user_data)
 {
-  //cairo_t *cr;
-
-  //cr = gdk_cairo_create (gtk_widget_get_window (widget));
-  //cairo_set_source_rgb (cr, 1, 1, 1);
-  //cairo_rectangle (cr, event->area.x, event->area.y, event->area.width, event->area.height);
   cairo_fill (cr);
-  //cairo_destroy (cr);
-
   return TRUE;
 }
 
@@ -99,7 +92,7 @@ cheese_flash_init (CheeseFlash *self)
   gdk_window_input_shape_combine_region (gtk_widget_get_window (GTK_WIDGET (window)), input_region, 0, 0);
   cairo_region_destroy (input_region);
 
-  g_signal_connect (G_OBJECT (window), "draw", G_CALLBACK (cheese_flash_window_expose_event_cb), NULL);
+  g_signal_connect (G_OBJECT (window), "draw", G_CALLBACK (cheese_flash_window_draw_event_cb), NULL);
   priv->window = window;
 }
 



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