You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/gtk-dev-guide.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -441,12 +441,12 @@ C enums don't map onto Java's enums. Instead, to add an enum like GtkAlign to OS
441
441
public static final int GTK_ALIGN_CENTER = 3;
442
442
public static final int GTK_ALIGN_BASELINE = 4;
443
443
444
-
And when you declare a function, delcare the java-doc paramater cast like this:
444
+
And when you declare a function, delcare the java-doc parameter cast like this:
445
445
446
446
@param gtkalign cast=(GtkAlign) // note (GtkAlign) with no pointer, not (GtkAlign *)
447
447
448
448
449
-
This will allow the native call to understand that the paramater is an enum.
449
+
This will allow the native call to understand that the parameter is an enum.
450
450
451
451
**Appendix: Special custom bindings**
452
452
@@ -460,7 +460,7 @@ Suppose you have:
460
460
_g_object_set(long /*int*/ object, byte[] first_property_name, GdkRGBA data, long /*int*/ terminator); ### GdkRGBA is specific to GTK3.
461
461
462
462
463
-
Add the method signature to OS.java. Clean the project and attempt a build. You will get a build error about GdkRGBA paramater in g_object_set(). This is because GdkRGBA only exists in GTK3.4+.
463
+
Add the method signature to OS.java. Clean the project and attempt a build. You will get a build error about GdkRGBA parameter in g_object_set(). This is because GdkRGBA only exists in GTK3.4+.
464
464
465
465
Now search os.c for "NO__ …. g object set ", you will find something like:
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug510905_Browser_JsConsole.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ public static void main(String[] args) {
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug510905_Browser_TwoJsConsoles.java
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug536141_BrowserFunctionLostReload.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ public static void main(String[] args) {
0 commit comments