SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
25
inputmethods/ibus/patches/patch-client_gtk2_ibusimcontext_c
Normal file
25
inputmethods/ibus/patches/patch-client_gtk2_ibusimcontext_c
Normal file
|
@ -0,0 +1,25 @@
|
|||
Index: client/gtk2/ibusimcontext.c
|
||||
--- client/gtk2/ibusimcontext.c.orig
|
||||
+++ client/gtk2/ibusimcontext.c
|
||||
@@ -1037,10 +1037,7 @@ ibus_im_context_class_init (IBusIMContextClass *class)
|
||||
#if !GTK_CHECK_VERSION (3, 98, 4)
|
||||
/* always install snooper */
|
||||
if (_key_snooper_id == 0) {
|
||||
-#pragma GCC diagnostic push
|
||||
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
_key_snooper_id = gtk_key_snooper_install (_key_snooper_cb, NULL);
|
||||
-#pragma GCC diagnostic pop
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1059,10 +1056,7 @@ ibus_im_context_class_fini (IBusIMContextClass *class)
|
||||
#if !GTK_CHECK_VERSION (3, 98, 4)
|
||||
if (_key_snooper_id != 0) {
|
||||
IDEBUG ("snooper is terminated.");
|
||||
-#pragma GCC diagnostic push
|
||||
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
gtk_key_snooper_remove (_key_snooper_id);
|
||||
-#pragma GCC diagnostic pop
|
||||
_key_snooper_id = 0;
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue