[libchamplain] Fix violations against my own coding style
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Fix violations against my own coding style
- Date: Tue, 23 Mar 2010 14:43:26 +0000 (UTC)
commit acb0f5fb925321688961d0731c4f19aa6b5ded99
Author: JiÅ?Ã Techet <techet gmail com>
Date: Sat Mar 20 02:21:30 2010 +0100
Fix violations against my own coding style
Signed-off-by: JiÅ?Ã Techet <techet gmail com>
champlain/champlain-marker.c | 4 ++--
champlain/champlain-polygon.c | 2 +-
champlain/champlain-view.c | 2 +-
tidy/tidy-finger-scroll.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c
index 9aef7a2..88c9b83 100644
--- a/champlain/champlain-marker.c
+++ b/champlain/champlain-marker.c
@@ -712,7 +712,7 @@ draw_marker (ChamplainMarker *marker)
point = (total_height + 2 * PADDING) / 4.0;
- if (priv->draw_background == TRUE)
+ if (priv->draw_background)
{
draw_shadow (marker, total_width, total_height, point);
draw_background (marker, total_width, total_height, point);
@@ -739,7 +739,7 @@ draw_marker (ChamplainMarker *marker)
if (priv->image != NULL && priv->background != NULL)
clutter_actor_raise (priv->image, priv->background);
- if (priv->draw_background == TRUE)
+ if (priv->draw_background)
{
if (priv->alignment == PANGO_ALIGN_RIGHT)
clutter_actor_set_anchor_point (CLUTTER_ACTOR (marker), total_width, total_height + point);
diff --git a/champlain/champlain-polygon.c b/champlain/champlain-polygon.c
index 74fa33c..907ab17 100644
--- a/champlain/champlain-polygon.c
+++ b/champlain/champlain-polygon.c
@@ -140,7 +140,7 @@ champlain_polygon_set_property (GObject *object,
g_value_get_double (value));
break;
case PROP_VISIBLE:
- if (g_value_get_boolean (value) == TRUE)
+ if (g_value_get_boolean (value))
champlain_polygon_show (CHAMPLAIN_POLYGON (object));
else
champlain_polygon_hide (CHAMPLAIN_POLYGON (object));
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 9200363..4cb94fd 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -1760,7 +1760,7 @@ view_update_anchor (ChamplainView *view,
DEBUG ("New Anchor (%f, %f) at (%d, %d)", priv->anchor.x, priv->anchor.y, x, y);
}
- if (need_anchor == FALSE)
+ if (!need_anchor)
{
priv->anchor.x = 0;
priv->anchor.y = 0;
diff --git a/tidy/tidy-finger-scroll.c b/tidy/tidy-finger-scroll.c
index 32c8e58..5e9263a 100644
--- a/tidy/tidy-finger-scroll.c
+++ b/tidy/tidy-finger-scroll.c
@@ -567,7 +567,7 @@ button_release_event_cb (ClutterActor *actor,
/* Pass through events to children.
* FIXME: this probably breaks click-count.
*/
- if (moved == FALSE)
+ if (!moved)
clutter_event_put ((ClutterEvent *)event);
return moved;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]