summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2003-03-05 17:51:50 +0000
committerFelipe Heidrich <fheidric>2003-03-05 17:51:50 +0000
commit8d95651bd484e1f1f2a8817b538fa6ab423708e4 (patch)
tree259fe6ae253a1b5371d0e47b47b2f9bfee76c576
parent181b7ce262091960fad55e53ae4c32ef82eb7ade (diff)
downloadeclipse.platform.swt-8d95651bd484e1f1f2a8817b538fa6ab423708e4.tar.gz
eclipse.platform.swt-8d95651bd484e1f1f2a8817b538fa6ab423708e4.tar.xz
eclipse.platform.swt-8d95651bd484e1f1f2a8817b538fa6ab423708e4.zip
29387
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java3
3 files changed, 24 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c
index ffcde5e0a6..fc62b788c2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c
@@ -5284,6 +5284,16 @@ JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tree_1view_
}
#endif
+#ifndef NO_gtk_1tree_1view_1get_1rules_1hint
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tree_1view_1get_1rules_1hint
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ DEBUG_CALL("gtk_1tree_1view_1get_1rules_1hint\n")
+
+ return (jboolean)gtk_tree_view_get_rules_hint((GtkTreeView *)arg0);
+}
+#endif
+
#ifndef NO_gtk_1tree_1view_1get_1selection
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tree_1view_1get_1selection
(JNIEnv *env, jclass that, jint arg0)
@@ -5374,6 +5384,16 @@ JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tree_1view_1set
}
#endif
+#ifndef NO_gtk_1tree_1view_1set_1rules_1hint
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tree_1view_1set_1rules_1hint
+ (JNIEnv *env, jclass that, jint arg0, jboolean arg1)
+{
+ DEBUG_CALL("gtk_1tree_1view_1set_1rules_1hint\n")
+
+ gtk_tree_view_set_rules_hint((GtkTreeView *)arg0, (gboolean)arg1);
+}
+#endif
+
#ifndef NO_gtk_1vbox_1new
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vbox_1new
(JNIEnv *env, jclass that, jboolean arg0, jint arg1)
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 3aa1c76423..499b9df1db 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
@@ -735,6 +735,7 @@ public static final synchronized native int gtk_tree_view_get_column(int tree_vi
public static final synchronized native void gtk_tree_view_get_cursor(int tree_view, int[] path, int[] focus_column);
public static final synchronized native boolean gtk_tree_view_get_headers_visible(int tree_view);
public static final synchronized native boolean gtk_tree_view_get_path_at_pos(int tree_view, int x, int y, int[] path, int[] column, int[] cell_x, int[] cell_y);
+public static final synchronized native boolean gtk_tree_view_get_rules_hint(int tree_view);
public static final synchronized native int gtk_tree_view_get_selection(int tree_view);
public static final synchronized native int gtk_tree_view_insert_column(int tree_view, int column, int position);
public static final synchronized native int gtk_tree_view_new_with_model(int model);
@@ -744,6 +745,7 @@ public static final synchronized native void gtk_tree_view_scroll_to_cell(int tr
public static final synchronized native void gtk_tree_view_set_cursor(int tree_view, int path, int focus_column, boolean start_editing);
public static final synchronized native void gtk_tree_view_set_headers_visible(int tree_view, boolean visible);
public static final synchronized native void gtk_tree_view_set_model(int tree_view, int model);
+public static final synchronized native void gtk_tree_view_set_rules_hint(int tree_view, boolean setting);
public static final synchronized native int gtk_vbox_new(boolean homogeneous, int spacing);
public static final synchronized native int gtk_vscale_new(int adjustment);
public static final synchronized native int gtk_vscrollbar_new(int adjustment);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
index 0a296bca03..ff75fac1ce 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
@@ -804,7 +804,7 @@ public TableItem [] getItems () {
*/
public boolean getLinesVisible() {
checkWidget();
- return false;
+ return OS.gtk_tree_view_get_rules_hint (handle);
}
/**
@@ -1497,6 +1497,7 @@ public void setHeaderVisible (boolean show) {
*/
public void setLinesVisible (boolean show) {
checkWidget();
+ OS.gtk_tree_view_set_rules_hint (handle, show);
}
/**