Update of /cvsroot/gaim/gaim/plugins/musicmessaging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7280/plugins/musicmessaging
Modified Files:
musicmessaging.c
Log Message:
Commited
Index: musicmessaging.c
===================================================================
RCS file: /cvsroot/gaim/gaim/plugins/musicmessaging/musicmessaging.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -p -r1.1 -r1.2
--- musicmessaging.c 11 Jul 2005 03:39:44 -0000 1.1
+++ musicmessaging.c 15 Jul 2005 11:35:46 -0000 1.2
@@ -1,43 +1,81 @@
-#define GAIM_PLUGINS
+#include "internal.h"
+#include "gtkgaim.h"
-#include <glib.h>
+#include "gtkconv.h"
+#include "gtkplugin.h"
+#include "gtkutils.h"
#include "notify.h"
-#include "plugin.h"
#include "version.h"
+#define MUSICMESSAGIN_PLUGIN_ID "gtk-hazure-musicmessaging"
+
static gboolean
plugin_load(GaimPlugin *plugin) {
- gaim_notify_message(plugin, GAIM_NOTIFY_MSG_INFO, "Hello World!",
- "This is the Hello World! plugin :)", NULL, NULL, NULL);
+ gaim_notify_message(plugin, GAIM_NOTIFY_MSG_INFO, "Welcome",
+ "Welcome to music messaging.", NULL, NULL, NULL);
return TRUE;
}
+static gboolean
+plugin_unload(GaimPlugin *plugin) {
+ gaim_notify_message(plugin, GAIM_NOTIFY_MSG_INFO, "Unloaded",
+ "The MM plugin has been unloaded.", NULL, NULL, NULL);
+ return TRUE;
+}
+
+static gboolean
+plugin_destroyed(GaimPlugin *plugin) {
+ gaim_notify_message(plugin, GAIM_NOTIFY_MSG_INFO, "Destroyed",
+ "The MM plugin has been destroyed.", NULL, NULL, NULL);
+ return TRUE;
+}
+
+static GtkWidget *
+get_config_frame(GaimPlugin *plugin)
+{
+ GtkWidget *ret;
+ GtkWidget *vbox;
+
+ /* Outside container */
+ ret = gtk_vbox_new(FALSE, 18);
+ gtk_container_set_border_width(GTK_CONTAINER(ret), 10);
+
+ /* Configuration frame */
+ vbox = gaim_gtk_make_frame(ret, _("Music Messaging Configuration"));
+
+ gtk_widget_show_all(ret);
+
+ return ret;
+}
+
+static GaimGtkPluginUiInfo ui_info =
+{
+ get_config_frame
+};
+
static GaimPluginInfo info = {
GAIM_PLUGIN_MAGIC,
GAIM_MAJOR_VERSION,
GAIM_MINOR_VERSION,
GAIM_PLUGIN_STANDARD,
- NULL,
+ GAIM_GTK_PLUGIN_TYPE,
0,
NULL,
GAIM_PRIORITY_DEFAULT,
- "core-hello_world",
- "Hello World!",
- NULL,
-
- "Hello World Plugin",
- "Hello World Plugin",
- NULL,
- NULL,
-
+ MUSICMESSAGIN_PLUGIN_ID,
+ "Music Messaging",
+ VERSION,
+ "Music Messaging Plugin for collabrative composition.",
+ "The Music Messaging Plugin allows a number of users to simultaniously work on a piece of music by editting a common score in real-time.",
+ "Christian Muise <christian.muise@...>",
+ GAIM_WEBSITE,
plugin_load,
- NULL,
- NULL,
-
- NULL,
+ plugin_unload,
+ plugin_destroyed,
+ &ui_info,
NULL,
NULL,
NULL
@@ -47,4 +85,4 @@ static void
init_plugin(GaimPlugin *plugin) {
}
-GAIM_INIT_PLUGIN(hello_world, init_plugin, info);
+GAIM_INIT_PLUGIN(musicmessaging, init_plugin, info);
|