[gtk+/xi2: 126/148] GtkScaleButton: fix code indent.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 126/148] GtkScaleButton: fix code indent.
- Date: Thu, 10 Dec 2009 21:12:17 +0000 (UTC)
commit eb3f205ffba4e61109e68a7127cd8bd87c02c03c
Author: Carlos Garnacho <carlos gnome org>
Date: Sat Nov 28 17:26:52 2009 +0100
GtkScaleButton: fix code indent.
gtk/gtkscalebutton.c | 34 ++++++++++++++++++++--------------
1 files changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index e159560..8f9b919 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -1009,21 +1009,27 @@ gtk_scale_popup (GtkWidget *widget,
/* Move the dock, but set is_moved so we
* don't forward the first click later on,
* as it could make the scale go to the bottom */
- if (y < rect.y) {
- y = rect.y;
- is_moved = TRUE;
- } else if (y + d->allocation.height > rect.height + rect.y) {
- y = rect.y + rect.height - d->allocation.height;
- is_moved = TRUE;
- }
+ if (y < rect.y)
+ {
+ y = rect.y;
+ is_moved = TRUE;
+ }
+ else if (y + d->allocation.height > rect.height + rect.y)
+ {
+ y = rect.y + rect.height - d->allocation.height;
+ is_moved = TRUE;
+ }
- if (x < rect.x) {
- x = rect.x;
- is_moved = TRUE;
- } else if (x + d->allocation.width > rect.width + rect.x) {
- x = rect.x + rect.width - d->allocation.width;
- is_moved = TRUE;
- }
+ if (x < rect.x)
+ {
+ x = rect.x;
+ is_moved = TRUE;
+ }
+ else if (x + d->allocation.width > rect.width + rect.x)
+ {
+ x = rect.x + rect.width - d->allocation.width;
+ is_moved = TRUE;
+ }
}
gtk_window_move (GTK_WINDOW (priv->dock), x, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]