changeset 2930:acfa92d9ff5e

bluetooth headset plugin about box
author Paula Stanciu <paula.stanciu@gmail.com>
date Wed, 20 Aug 2008 22:42:30 +0300
parents 3868d67e7d19
children d8998f6d5af5
files src/bluetooth/Makefile src/bluetooth/bluetooth.c
diffstat 2 files changed, 16 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/bluetooth/Makefile	Wed Aug 20 18:04:57 2008 +0200
+++ b/src/bluetooth/Makefile	Wed Aug 20 22:42:30 2008 +0300
@@ -1,6 +1,6 @@
 PLUGIN = bluetooth${PLUGIN_SUFFIX}
 
-SRCS = bluetooth.c gui.c marshal.c scan_gui.c agent.c 
+SRCS = bluetooth.c gui.c marshal.c scan_gui.c agent.c
 include ../../buildsys.mk
 include ../../extra.mk
 plugindir := ${plugindir}/${GENERAL_PLUGIN_DIR}
--- a/src/bluetooth/bluetooth.c	Wed Aug 20 18:04:57 2008 +0200
+++ b/src/bluetooth/bluetooth.c	Wed Aug 20 22:42:30 2008 +0300
@@ -100,9 +100,21 @@
 
 void bt_about( void )
 {
-    printf("about call\n");
-    dbus_g_object_register_marshaller(marshal_VOID__STRING_UINT_INT, G_TYPE_NONE, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_INT, G_TYPE_INVALID);    
-    dbus_g_proxy_call(obj,"RemoveBonding",NULL,G_TYPE_STRING,((DeviceData*)(selected_dev->data))->address,G_TYPE_INVALID,G_TYPE_INVALID); 
+  	static GtkWidget *dialog;
+
+	dialog = audacious_info_dialog (_("Bluetooth headset support plugin"),
+				_("Bluetooth headset support\n"
+				"Copyright (c) 2008 Paula Stanciu paula.stanciu@gmail.com\n"
+				"This was a GSoC 2008 Project - Many thanks to my mentor Tony Vroon and the Audacious team\n \n"
+                "In order to use the AVRCP you need the uinput module loaded into the kernel\n"
+                "The headset keys will be recognized as normal mutimedia keys and \n"
+                "can be configured using the Audacious Global Hotkey plugin or ohter tools \n"
+                "provided by your window manager\n"
+                ),
+                         	_("OK"), TRUE, NULL, NULL);
+
+	gtk_signal_connect(GTK_OBJECT(dialog), "destroy",
+			   GTK_SIGNAL_FUNC(gtk_widget_destroyed), &dialog);
 
 }