Community
Participate
Working Groups
Build Identifier: I20120503-1800 This patch omits use of deprecated GTK_WIDGET_SENSITIVE and uses gtk_wdget_get_sensitive() instead: http://fedorapeople.org/gitweb?p=aspektor/public_git/eclipse.platform.swt.git;a=commit;h=1b0efec7f406bf0ecdc0990ae0b3b3d5b035d6d3 Reproducible: Always
Please add a Widget.gtk_wdget_get_sensitive() helper function (the same way I added for bug#384651). Fix formating too.
Sure will do.
I added helper as you asked. Here is revised patch: http://fedorapeople.org/gitweb?p=aspektor/public_git/eclipse.platform.swt.git;a=commit;h=c6784de40a2520f536e0cfbfa87c5cc7ab34a35c
Thanks Pushed to eclipse.org http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=fed3ad1e50dcf41c4976b2be1142f80068a3a12a
Arun noticed a couple of problems in the last patch. Thanks for catching this one. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit?id=4449b03691165bfcd4a87794623b19eba32810cf
Question regarding G_SEAL warning on GTK_WIDGET_SENSITIVE. When I try to compile with #define G_SEAL_ENABLE I see : os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS__1GTK_1WIDGET_1SENSITIVE’: os.c:1670:17: error: ‘GtkObject’ has no member named ‘flags’ "GtkObject flags" are deprecated in 2,22 but after patch applied GTK_WIDGET_SENSITIVE is not used much anymore, thus I can assume, that my patch should remove this warning too, but I still see it. So questions are: Why GTK_WIDGET_SENSITIVE warning still persist if WIDGET_SENSITIVE is not used anymore ? (not only sensitive but "mapped" "flags" "has_default" too) Should there still be another implementation of GtkObject flags, to remove warning ? If not, how can warning be removed ? Thanks in advance, Anatoly
(In reply to comment #6) > Question regarding G_SEAL warning on GTK_WIDGET_SENSITIVE. > > When I try to compile with #define G_SEAL_ENABLE I see : > > os.c: In function > ‘Java_org_eclipse_swt_internal_gtk_OS__1GTK_1WIDGET_1SENSITIVE’: > os.c:1670:17: error: ‘GtkObject’ has no member named ‘flags’ > > > "GtkObject flags" are deprecated in 2,22 but after patch applied > GTK_WIDGET_SENSITIVE is not used much anymore, thus I can assume, that my > patch should remove this warning too, but I still see it. > > So questions are: > > Why GTK_WIDGET_SENSITIVE warning still persist if WIDGET_SENSITIVE is not > used anymore ? (not only sensitive but "mapped" "flags" "has_default" too) > > Should there still be another implementation of GtkObject flags, to remove > warning ? > > If not, how can warning be removed ? > > Thanks in advance, > > Anatoly Found answer myself: If I #define both: #define GSEAL_ENABLE #define GTK_DISABLE_DEPRECATED these warnings disappear. Regards, Anatoly