summaryrefslogtreecommitdiff
path: root/libcheese/cheese-flash.c
diff options
context:
space:
mode:
authorPatricia Santana Cruz <patriciasc@openismus.com>2011-02-16 19:15:03 +0100
committerPatricia Santana Cruz <patriciasc@openismus.com>2011-03-07 10:17:32 +0100
commitd777218c196b88e462949ded611abd1a11bd7773 (patch)
tree6f2fb9f4cc8ccee20e081ba472e3caca9ce59cfb /libcheese/cheese-flash.c
parent6da0fdeaac3a394c4c45a5d54b2e04a2330b6035 (diff)
downloadcheese-d777218c196b88e462949ded611abd1a11bd7773.tar.gz
Replaced deprecated symbols
Diffstat (limited to 'libcheese/cheese-flash.c')
-rw-r--r--libcheese/cheese-flash.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libcheese/cheese-flash.c b/libcheese/cheese-flash.c
index 8d3d32fe..8b470ab9 100644
--- a/libcheese/cheese-flash.c
+++ b/libcheese/cheese-flash.c
@@ -58,15 +58,15 @@ typedef struct
} CheeseFlashPrivate;
static gboolean
-cheese_flash_window_expose_event_cb (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
+cheese_flash_window_expose_event_cb (GtkWidget *widget, cairo_t *cr, gpointer user_data)
{
- cairo_t *cr;
+ //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);
+ //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);
+ //cairo_destroy (cr);
return TRUE;
}
@@ -99,7 +99,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), "expose-event", G_CALLBACK (cheese_flash_window_expose_event_cb), NULL);
+ g_signal_connect (G_OBJECT (window), "draw", G_CALLBACK (cheese_flash_window_expose_event_cb), NULL);
priv->window = window;
}