[cheese] cheese-flash: Port to GTK+ 3.x
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] cheese-flash: Port to GTK+ 3.x
- Date: Mon, 7 Mar 2011 09:40:36 +0000 (UTC)
commit 1924deee6febe56e20844867cb93751f0bdb3296
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 1 01:14:12 2011 +0000
cheese-flash: Port to GTK+ 3.x
libcheese/cheese-flash.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libcheese/cheese-flash.c b/libcheese/cheese-flash.c
index e5b7d28..8d3d32f 100644
--- a/libcheese/cheese-flash.c
+++ b/libcheese/cheese-flash.c
@@ -75,7 +75,7 @@ static void
cheese_flash_init (CheeseFlash *self)
{
CheeseFlashPrivate *priv = CHEESE_FLASH_GET_PRIVATE (self);
-
+ cairo_region_t *input_region;
GtkWindow *window;
priv->flash_timeout_tag = 0;
@@ -95,10 +95,9 @@ cheese_flash_init (CheeseFlash *self)
/* Don't consume input */
gtk_widget_realize (GTK_WIDGET (window));
- GdkRegion *input_region;
- input_region = gdk_region_new ();
+ input_region = cairo_region_create ();
gdk_window_input_shape_combine_region (gtk_widget_get_window (GTK_WIDGET (window)), input_region, 0, 0);
- gdk_region_destroy (input_region);
+ cairo_region_destroy (input_region);
g_signal_connect (G_OBJECT (window), "expose-event", G_CALLBACK (cheese_flash_window_expose_event_cb), NULL);
priv->window = window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]