finch/finch.c

changeset 18442
99c6a0271b1d
parent 18273
e61c53184c52
child 18606
102d3ca556ea
equal deleted inserted replaced
18441:d255d04c0aa1 18442:99c6a0271b1d
53 { 53 {
54 finch_debug_init(); 54 finch_debug_init();
55 purple_debug_set_ui_ops(finch_debug_get_ui_ops()); 55 purple_debug_set_ui_ops(finch_debug_get_ui_ops());
56 } 56 }
57 57
58 /* XXX: this "leaks" a hashtable on shutdown. I'll let
59 * the finch guys decide if they want to go through the trouble
60 * of properly freeing it, since their quit function doesn't
61 * live in this file */
62
63 static GHashTable *ui_info = NULL;
64
65 static GHashTable *finch_ui_get_info()
66 {
67 if(NULL == ui_info) {
68 ui_info = g_hash_table_new(g_str_hash, g_str_equal);
69
70 g_hash_table_insert(ui_info, "name", (char*)_("Finch"));
71 g_hash_table_insert(ui_info, "version", VERSION);
72 }
73
74 return ui_info;
75 }
76
58 static PurpleCoreUiOps core_ops = 77 static PurpleCoreUiOps core_ops =
59 { 78 {
60 finch_prefs_init, 79 finch_prefs_init,
61 debug_init, 80 debug_init,
62 gnt_ui_init, 81 gnt_ui_init,
63 gnt_ui_uninit, 82 gnt_ui_uninit,
83 finch_ui_get_info,
64 84
65 /* padding */ 85 /* padding */
66 NULL,
67 NULL, 86 NULL,
68 NULL, 87 NULL,
69 NULL 88 NULL
70 }; 89 };
71 90

mercurial