[libegg/spread-table-dnd] Simplified some code in EggPlaceholder
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libegg/spread-table-dnd] Simplified some code in EggPlaceholder
- Date: Sun, 10 Apr 2011 20:15:14 +0000 (UTC)
commit 7e61f76c2372ec83b7611bc3a3169a6a34b0586a
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Apr 10 16:55:06 2011 +0900
Simplified some code in EggPlaceholder
libegg/spreadtable/eggplaceholder.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/libegg/spreadtable/eggplaceholder.c b/libegg/spreadtable/eggplaceholder.c
index 05e072d..06c16e5 100644
--- a/libegg/spreadtable/eggplaceholder.c
+++ b/libegg/spreadtable/eggplaceholder.c
@@ -155,13 +155,13 @@ egg_placeholder_animate_in (EggPlaceholder *placeholder,
placeholder->priv->animation_direction = EGG_PLACEHOLDER_ANIM_IN;
if (placeholder->priv->animation_id == 0)
- placeholder->priv->animation_percent = 0.0F;
-
- if (placeholder->priv->animation_id == 0)
- placeholder->priv->animation_id =
- gdk_threads_add_timeout (ANIMATION_FREQ,
- (GSourceFunc)placeholder_animate,
- placeholder);
+ {
+ placeholder->priv->animation_percent = 0.0F;
+ placeholder->priv->animation_id =
+ gdk_threads_add_timeout (ANIMATION_FREQ,
+ (GSourceFunc)placeholder_animate,
+ placeholder);
+ }
gtk_widget_queue_resize (GTK_WIDGET (placeholder));
}
@@ -176,13 +176,13 @@ egg_placeholder_animate_out (EggPlaceholder *placeholder,
placeholder->priv->animation_direction = EGG_PLACEHOLDER_ANIM_OUT;
if (placeholder->priv->animation_id == 0)
- placeholder->priv->animation_percent = 1.0F;
-
- if (placeholder->priv->animation_id == 0)
- placeholder->priv->animation_id =
- gdk_threads_add_timeout (ANIMATION_FREQ,
- (GSourceFunc)placeholder_animate,
- placeholder);
+ {
+ placeholder->priv->animation_percent = 1.0F;
+ placeholder->priv->animation_id =
+ gdk_threads_add_timeout (ANIMATION_FREQ,
+ (GSourceFunc)placeholder_animate,
+ placeholder);
+ }
gtk_widget_queue_resize (GTK_WIDGET (placeholder));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]