|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
From 890b5826e457d87824a6c61a9fdda45bd407811a Mon Sep 17 00:00:00 2001
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
From: Eric Williams
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
Date: Mon, 9 Sep 2019 15:20:17 -0400
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
Subject: Bug 550606: [GTK] Right-click > Rename from Project Explorer
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
non-functional when starting with only hidden projects
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
Adjust the conditions for gdk_window_ensure_native() to ensure it only
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
gets applied to the right cases.
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
Change-Id: I3a57d8674d79bbdc123f11352ab7c7d6b0e807f5
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
Signed-off-by: Eric Williams <ericwill@redhat.com>
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
---
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
.../org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java | 3 ++-
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
index 95776fc898..411b8e0540 100644
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
--- a/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
+++ b/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
@@ -2419,7 +2419,8 @@ long gtk_draw (long widget, long cairo) {
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
* if the Tree has no items. In such cases, the fix is to ensure that the Tree's GdkWindow
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
* is a native one. Only X11 is affected by this issue, see bug 541427 for more info.
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
*/
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
- if (firstDraw && OS.isX11() && getItemCount() == 0 && GTK.GTK_VERSION >= OS.VERSION(3, 20, 0)) {
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
+ if (firstDraw && OS.isX11() && getItemCount() == 0 && GTK.GTK_VERSION >= OS.VERSION(3, 20, 0)
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
+ && !hasChildren && headerVisible) {
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
long binWindow = GTK.gtk_tree_view_get_bin_window(handle);
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
GDK.gdk_window_ensure_native(binWindow);
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
}
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
--
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
cgit v1.2.1
|
|
![](https://seccdn.libravatar.org/avatar/60f3bc9cb3cb070fcee9701bf8296fd6eafd560b3f73fabcf4595090f407cc31?s=16&d=retro) |
1756c26 |
|