25 lines
897 B
Text
25 lines
897 B
Text
Index: client/gtk2/ibusimcontext.c
|
|
--- client/gtk2/ibusimcontext.c.orig
|
|
+++ client/gtk2/ibusimcontext.c
|
|
@@ -1038,10 +1038,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
|
|
|
|
@@ -1060,10 +1057,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
|