comparison finch/finch.c @ 18293:5aae8608e1c6

UI info for finch and pidgin (finch guys probably want to take a look at what I did and clean it up)
author Nathan Walp <nwalp@pidgin.im>
date Mon, 02 Jul 2007 03:41:53 +0000
parents b8572b937c09
children 0e8b2bb66a7d
comparison
equal deleted inserted replaced
18292:9db52d9b8436 18293:5aae8608e1c6
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