diff finch/finch.c @ 18456:0e8b2bb66a7d

merge of '54ca7908e9d5ca615490f92be7a4be6bdf9d9baa' and '6fa4458c20080f2ce1f66a6ee4761c192b8510d5'
author Nathan Walp <nwalp@pidgin.im>
date Tue, 03 Jul 2007 12:12:33 +0000
parents 9b5b0cbde65f 5aae8608e1c6
children f8b22b11a126
line wrap: on
line diff
--- a/finch/finch.c	Tue Jul 03 11:20:33 2007 +0000
+++ b/finch/finch.c	Tue Jul 03 12:12:33 2007 +0000
@@ -55,17 +55,36 @@
 	purple_debug_set_ui_ops(finch_debug_get_ui_ops());
 }
 
+/* XXX: this "leaks" a hashtable on shutdown.  I'll let
+ * the finch guys decide if they want to go through the trouble
+ * of properly freeing it, since their quit function doesn't
+ * live in this file */
+
+static GHashTable *ui_info = NULL;
+
+static GHashTable *finch_ui_get_info()
+{
+	if(NULL == ui_info) {
+		ui_info = g_hash_table_new(g_str_hash, g_str_equal);
+
+		g_hash_table_insert(ui_info, "name", (char*)_("Finch"));
+		g_hash_table_insert(ui_info, "version", VERSION);
+	}
+
+	return ui_info;
+}
+
 static PurpleCoreUiOps core_ops =
 {
 	finch_prefs_init,
 	debug_init,
 	gnt_ui_init,
 	gnt_ui_uninit,
+	finch_ui_get_info,
 
 	/* padding */
 	NULL,
 	NULL,
-	NULL,
 	NULL
 };