diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-08-29 13:42:21 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2012-08-29 13:42:21 -0400 |
commit | 7162aa1f1d96b03611b30e77257c9c582c5957d1 (patch) | |
tree | c14da5ceb774c2f0330cd257e4147df37b6c051d /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java | |
parent | 742806238aa69633cd6fc8812a666523c4c7585d (diff) | |
download | eclipse.platform.swt-gtk3_separator_new.tar.gz eclipse.platform.swt-gtk3_separator_new.tar.xz eclipse.platform.swt-gtk3_separator_new.zip |
Use gtk_separator_new () in GTK+3gtk3_separator_new
This patch replaces old GTK2 API methods gtk_vseparator_new () and
gtk_hseparator_new () with GTK+ 3 API method gtk_separator_new() and
makes old 2 methods dynamic
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java index c2310b7878..8362965998 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java @@ -7149,6 +7149,7 @@ public static final int /*long*/ gtk_hscrollbar_new(int /*long*/ adjustment) { lock.unlock(); } } +/** @method flags=dynamic */ public static final native int /*long*/ _gtk_hseparator_new(); public static final int /*long*/ gtk_hseparator_new() { lock.lock(); @@ -7158,6 +7159,19 @@ public static final int /*long*/ gtk_hseparator_new() { lock.unlock(); } } +/** + * @method flags=dynamic + * @param orientation cast=(GtkOrientation) + */ +public static final native int /*long*/ _gtk_separator_new(int orientation); +public static final int /*long*/ gtk_separator_new(int orientation) { + lock.lock(); + try { + return _gtk_separator_new(orientation); + } finally { + lock.unlock(); + } +} public static final native int /*long*/ _gtk_status_icon_position_menu_func(); public static final int /*long*/ gtk_status_icon_position_menu_func() { lock.lock(); @@ -12066,6 +12080,7 @@ public static final int /*long*/ gtk_vscrollbar_new(int /*long*/ adjustment) { lock.unlock(); } } +/** @method flags=dynamic */ public static final native int /*long*/ _gtk_vseparator_new(); public static final int /*long*/ gtk_vseparator_new() { lock.lock(); |