[gtk+] GtkStack: Remove useless cast
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkStack: Remove useless cast
- Date: Fri, 29 May 2015 15:46:29 +0000 (UTC)
commit 6d25e52a4da758c7ddc28ebbd07fe936404f82d5
Author: Timm Bäder <mail baedert org>
Date: Sun May 24 21:08:00 2015 +0200
GtkStack: Remove useless cast
gtk/gtkstack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 76b5e19..46aa915 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -898,7 +898,7 @@ gtk_stack_transition_cb (GtkWidget *widget,
t = (now - priv->start_time) / (double) (priv->end_time - priv->start_time);
/* Finish animation early if not mapped anymore */
- if (!gtk_widget_get_mapped (GTK_WIDGET (stack)))
+ if (!gtk_widget_get_mapped (widget))
t = 1.0;
if (gtk_stack_set_transition_position (stack, t))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]