summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-02-03 19:28:50 +0000
committerFelipe Heidrich <fheidric>2006-02-03 19:28:50 +0000
commit26804f7d1d7fd73880d5ca7a5ba704c1695c8188 (patch)
tree35079fef5c61e733191702bf4a17313e829f228f /bundles/org.eclipse.swt/Eclipse SWT/gtk/org
parente509209e6bdcd93ae01728e785bafa1164eda297 (diff)
downloadeclipse.platform.swt-26804f7d1d7fd73880d5ca7a5ba704c1695c8188.tar.gz
eclipse.platform.swt-26804f7d1d7fd73880d5ca7a5ba704c1695c8188.tar.xz
eclipse.platform.swt-26804f7d1d7fd73880d5ca7a5ba704c1695c8188.zip
support elements for expandbar
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java3
4 files changed, 8 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index 076bd5d031..359a9001c0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -2103,6 +2103,7 @@ void initializeCallbacks () {
if (windowProc2 == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
closures [Widget.ACTIVATE] = OS.g_cclosure_new (windowProc2, Widget.ACTIVATE, 0);
+ closures [Widget.ACTIVATE_INVERSE] = OS.g_cclosure_new (windowProc2, Widget.ACTIVATE_INVERSE, 0);
closures [Widget.CHANGED] = OS.g_cclosure_new (windowProc2, Widget.CHANGED, 0);
closures [Widget.CLICKED] = OS.g_cclosure_new (windowProc2, Widget.CLICKED, 0);
closures [Widget.HIDE] = OS.g_cclosure_new (windowProc2, Widget.HIDE, 0);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
index 4f660d16d2..45d4787184 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
@@ -131,7 +131,7 @@ ScrollBar (Scrollable parent, int style) {
public void addSelectionListener (SelectionListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
- TypedListener typedListener = new TypedListener(listener);
+ TypedListener typedListener = new TypedListener (listener);
addListener (SWT.Selection,typedListener);
addListener (SWT.DefaultSelection,typedListener);
}
@@ -367,6 +367,7 @@ int /*long*/ gtk_value_changed (int /*long*/ adjustment) {
}
detail = OS.GTK_SCROLL_NONE;
postEvent (SWT.Selection, event);
+ parent.setScrollBarValue (this);
return 0;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java
index 01a91ad602..5c9a588dd5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java
@@ -342,6 +342,9 @@ void resizeHandle (int width, int height) {
OS.gtk_widget_set_size_request (scrolledHandle != 0 ? scrolledHandle : handle, width, height);
}
+void setScrollBarValue (ScrollBar bar) {
+}
+
void showWidget () {
super.showWidget ();
if (scrolledHandle != 0) OS.gtk_widget_show (scrolledHandle);
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 b6525b7645..92312a0534 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
@@ -154,7 +154,8 @@ public abstract class Widget {
static final int VALUE_CHANGED = 56;
static final int VISIBILITY_NOTIFY_EVENT = 57;
static final int WINDOW_STATE_EVENT = 58;
- static final int LAST_SIGNAL = 59;
+ static final int ACTIVATE_INVERSE = 59;
+ static final int LAST_SIGNAL = 60;
/**
* Prevents uninitialized instances from being created outside the package.