diff options
author | Alexander Kurtakov | 2018-10-18 05:28:19 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-10-18 05:28:19 +0000 |
commit | f2c989edceb3846426bca539c39f79e306ac85c8 (patch) | |
tree | 0313cc0cfad0ac1fafe6091a9d432960b438dd86 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | |
parent | 097889d81b9a2ea1750f83c442fc322ad60fbc52 (diff) | |
download | eclipse.platform.swt-f2c989edceb3846426bca539c39f79e306ac85c8.tar.gz eclipse.platform.swt-f2c989edceb3846426bca539c39f79e306ac85c8.tar.xz eclipse.platform.swt-f2c989edceb3846426bca539c39f79e306ac85c8.zip |
Bug 540202 - Default button is visually undistinguishable
Remove "suggested-action" class from the lastDefault to prevent multiple
buttons being rendered as such.
Change-Id: I345496d4493e09b6e982d9e7757f5b42e339532d
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c index e467ca0f30..f0e00540c2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c @@ -8373,6 +8373,20 @@ JNIEXPORT void JNICALL GTK_NATIVE(_1gtk_1style_1context_1invalidate) } #endif +#ifndef NO__1gtk_1style_1context_1remove_1class +JNIEXPORT void JNICALL GTK_NATIVE(_1gtk_1style_1context_1remove_1class) + (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1) +{ + jbyte *lparg1=NULL; + GTK_NATIVE_ENTER(env, that, _1gtk_1style_1context_1remove_1class_FUNC); + if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; + gtk_style_context_remove_class((GtkStyleContext *)arg0, (const gchar *)lparg1); +fail: + if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); + GTK_NATIVE_EXIT(env, that, _1gtk_1style_1context_1remove_1class_FUNC); +} +#endif + #ifndef NO__1gtk_1style_1context_1restore JNIEXPORT void JNICALL GTK_NATIVE(_1gtk_1style_1context_1restore) (JNIEnv *env, jclass that, jintLong arg0) |