summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-09-15 00:02:16 +0530
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-09-15 00:02:16 +0530
commit8690a7560fff2719b578c6e53fe8945b5f15f15c (patch)
treeef7e09fec5f388df045aea872d99bb142dc4585c /bundles
parent0d5ff2d1bd886c3158c6b1ddc492d0be811c0650 (diff)
downloadeclipse.platform.swt-8690a7560fff2719b578c6e53fe8945b5f15f15c.tar.gz
eclipse.platform.swt-8690a7560fff2719b578c6e53fe8945b5f15f15c.tar.xz
eclipse.platform.swt-8690a7560fff2719b578c6e53fe8945b5f15f15c.zip
Bug 388461 fix formatting
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java12
3 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java
index 3d36953665..dbc04e8c55 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java
@@ -298,7 +298,7 @@ int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ eventPtr) {
int /*long*/ window = gtk_widget_get_window (handle);
int grabMask = OS.GDK_POINTER_MOTION_MASK | OS.GDK_BUTTON_RELEASE_MASK;
int /*long*/ gdkCursor = cursor != null ? cursor.handle : defaultCursor;
- int ptrGrabResult = gdk_pointer_grab(window, OS.GDK_OWNERSHIP_NONE, false, grabMask, window, gdkCursor, OS.GDK_CURRENT_TIME);
+ int ptrGrabResult = gdk_pointer_grab (window, OS.GDK_OWNERSHIP_NONE, false, grabMask, window, gdkCursor, OS.GDK_CURRENT_TIME);
/* The event must be sent because its doit flag is used. */
Event event = new Event ();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
index 55328b0627..17f929b3db 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
@@ -368,7 +368,7 @@ public boolean getStippled () {
boolean grab () {
int /*long*/ cursor = this.cursor != null ? this.cursor.handle : 0;
- int result = gdk_pointer_grab(window, OS.GDK_OWNERSHIP_NONE, false, OS.GDK_POINTER_MOTION_MASK | OS.GDK_BUTTON_RELEASE_MASK, window, cursor, OS.GDK_CURRENT_TIME);
+ int result = gdk_pointer_grab (window, OS.GDK_OWNERSHIP_NONE, false, OS.GDK_POINTER_MOTION_MASK | OS.GDK_BUTTON_RELEASE_MASK, window, cursor, OS.GDK_CURRENT_TIME);
return result == OS.GDK_GRAB_SUCCESS;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
index 7be5a0e0ee..89ae3596b4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
@@ -1849,20 +1849,20 @@ int /*long*/ gtk_box_new (int orientation, boolean homogeneous, int spacing) {
return box;
}
-int gdk_pointer_grab (int /*long*/ window, int grab_ownership, boolean owner_events, int event_mask,int /*long*/ confine_to, int /*long*/ cursor, int time_) {
- if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) {
+int gdk_pointer_grab (int /*long*/ window, int grab_ownership, boolean owner_events, int event_mask, int /*long*/ confine_to, int /*long*/ cursor, int time_) {
+ if (OS.GTK_VERSION >= OS.VERSION (3, 0, 0)) {
int /*long*/ display = 0;
- if( window != 0){
+ if( window != 0) {
display = OS.gdk_window_get_display (window);
} else {
- window = OS.gdk_get_default_root_window();
+ window = OS.gdk_get_default_root_window ();
display = OS.gdk_window_get_display (window);
}
int /*long*/ device_manager = OS.gdk_display_get_device_manager (display);
int /*long*/ pointer = OS.gdk_device_manager_get_client_pointer (device_manager);
- return OS.gdk_device_grab(pointer, window, grab_ownership, owner_events, event_mask, cursor, time_);
+ return OS.gdk_device_grab (pointer, window, grab_ownership, owner_events, event_mask, cursor, time_);
} else {
- return OS.gdk_pointer_grab(window, owner_events, event_mask, confine_to, cursor, time_);
+ return OS.gdk_pointer_grab (window, owner_events, event_mask, confine_to, cursor, time_);
}
}