[gtk-engines/gnome3] Fix compile-time warnings in Clearlooks engine
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-engines/gnome3] Fix compile-time warnings in Clearlooks engine
- Date: Wed, 12 May 2010 15:31:42 +0000 (UTC)
commit e29039ae43eaad71d19dc4b6d92e98fca5467da5
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 12 16:29:23 2010 +0100
Fix compile-time warnings in Clearlooks engine
engines/clearlooks/src/clearlooks_style.c | 4 ++--
engines/clearlooks/src/support.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/engines/clearlooks/src/clearlooks_style.c b/engines/clearlooks/src/clearlooks_style.c
index a045153..72bfc4a 100644
--- a/engines/clearlooks/src/clearlooks_style.c
+++ b/engines/clearlooks/src/clearlooks_style.c
@@ -73,8 +73,8 @@ clearlooks_set_widget_parameters (const GtkWidget *widget,
params->state_type = state_type;
params->corners = CR_CORNER_ALL;
params->ltr = ge_widget_is_ltr ((GtkWidget*)widget);
- params->focus = !CLEARLOOKS_STYLE (style)->disable_focus && widget && gtk_widget_has_focus (widget);
- params->is_default = widget && GE_WIDGET_HAS_DEFAULT (widget);
+ params->focus = !CLEARLOOKS_STYLE (style)->disable_focus && widget && gtk_widget_has_focus ((GtkWidget *) widget);
+ params->is_default = widget && GE_WIDGET_HAS_DEFAULT ((GtkWidget *) widget);
params->enable_shadow = FALSE;
params->radius = CLEARLOOKS_STYLE (style)->radius;
diff --git a/engines/clearlooks/src/support.c b/engines/clearlooks/src/support.c
index f8b9f76..6be462c 100644
--- a/engines/clearlooks/src/support.c
+++ b/engines/clearlooks/src/support.c
@@ -64,7 +64,7 @@ clearlooks_get_parent_bg (const GtkWidget *widget, CairoColor *color)
{
stop = FALSE;
- stop |= !gtk_widget_get_has_window (parent);
+ stop |= !gtk_widget_get_has_window ((GtkWidget *) parent);
stop |= GTK_IS_NOTEBOOK (parent) &&
gtk_notebook_get_show_tabs (GTK_NOTEBOOK (parent)) &&
gtk_notebook_get_show_border (GTK_NOTEBOOK (parent));
@@ -84,7 +84,7 @@ clearlooks_get_parent_bg (const GtkWidget *widget, CairoColor *color)
if (parent == NULL)
return;
- state_type = gtk_widget_get_state (parent);
+ state_type = gtk_widget_get_state ((GtkWidget *) parent);
gcolor = &parent->style->bg[state_type];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]