1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
$NetBSD: patch-bb,v 1.1.1.1 2009/11/24 11:46:01 obache Exp $
--- extras/gtk2_immodule/gtkimcontextscim.cpp.orig 2008-11-02 06:43:15.000000000 +0000
+++ extras/gtk2_immodule/gtkimcontextscim.cpp
@@ -274,11 +274,11 @@ static int
static FrontEndHotkeyMatcher _frontend_hotkey_matcher;
static IMEngineHotkeyMatcher _imengine_hotkey_matcher;
-static IMEngineInstancePointer _default_instance;
+static IMEngineInstancePointer _default_instance = IMEngineInstancePointer(0);
static ConfigModule *_config_module = 0;
-static ConfigPointer _config;
-static BackEndPointer _backend;
+static ConfigPointer _config = ConfigPointer(0);
+static BackEndPointer _backend = BackEndPointer(0);
static GtkIMContextSCIM *_focused_ic = 0;
static GtkWidget *_focused_widget = 0;
@@ -296,8 +296,8 @@ static bool
static int _instance_count = 0;
static int _context_count = 0;
-static IMEngineFactoryPointer _fallback_factory;
-static IMEngineInstancePointer _fallback_instance;
+static IMEngineFactoryPointer _fallback_factory = IMEngineFactoryPointer(0);
+static IMEngineInstancePointer _fallback_instance = IMEngineInstancePointer(0);
static PanelClient _panel_client;
@@ -310,6 +310,7 @@ static bool
static bool _shared_input_method = false;
static bool _use_key_snooper = true;
+#if 0
// A hack to shutdown the immodule cleanly even if im_module_exit () is not called when exiting.
class FinalizeHandler
{
@@ -324,6 +325,7 @@ public:
};
static FinalizeHandler _finalize_handler;
+#endif
/* Function Implementations */
@@ -436,6 +438,7 @@ gtk_im_context_scim_register_type (GType
sizeof (GtkIMContextSCIM),
0,
(GtkObjectInitFunc) gtk_im_context_scim_init,
+ 0
};
SCIM_DEBUG_FRONTEND(1) << "gtk_im_context_scim_register_type...\n";
|