From 147aa51092a2615339a9adf9e1626cfb7bb3a97f Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 24 Jul 2015 15:53:08 +0200 Subject: Fix several incompatible pointer type warnings --- src/themes/coco/coco-theme.c | 2 +- src/themes/nodoka/nodoka-theme.c | 2 +- src/themes/slider/theme.c | 2 +- src/themes/standard/theme.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index d31de8b..ef21e00 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -95,7 +95,7 @@ enum static gboolean activate_link (GtkLabel *label, const char *url, WindowData *windata) { - windata->url_clicked (windata->win, url); + windata->url_clicked (GTK_WINDOW (windata->win), url); return TRUE; } diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index b7f3964..9874bbf 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -111,7 +111,7 @@ enum static gboolean activate_link (GtkLabel *label, const char *url, WindowData *windata) { - windata->url_clicked (windata->win, url); + windata->url_clicked (GTK_WINDOW (windata->win), url); return TRUE; } diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index 6721996..87950f6 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -928,7 +928,7 @@ static gboolean on_countdown_expose(GtkWidget* pie, GdkEventExpose* event, Windo cairo_surface_t* surface; double r, g, b; - context = gdk_cairo_create(gtk_widget_get_window(GDK_WINDOW(windata->pie_countdown))); + context = gdk_cairo_create(GDK_WINDOW(gtk_widget_get_window(windata->pie_countdown))); #if GTK_CHECK_VERSION(3, 0, 0) style = gtk_widget_get_style_context(windata->win); #else diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index 010003e..9c012a9 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -958,7 +958,7 @@ static gboolean countdown_expose_cb(GtkWidget* pie, GdkEventExpose* event, Windo #endif style = gtk_widget_get_style(windata->win); - context = gdk_cairo_create(GTK_WINDOW(gtk_widget_get_window(windata->pie_countdown))); + context = gdk_cairo_create(GDK_WINDOW(gtk_widget_get_window(windata->pie_countdown))); GtkAllocation alloc; gtk_widget_get_allocation(pie, &alloc); cairo_set_operator(context, CAIRO_OPERATOR_SOURCE); -- cgit v1.2.1