view plugins/musicmessaging/musicmessaging.c @ 11114:2ace374369d1

[gaim-migrate @ 13167] (19:40:07) Peter Lawler (Bleeter): rlaager: CTRL+G? huh? why not CTRL+I? that makes more sense for 'Info'. (And will no doubt conflict with CTRL+G = gaim_buzz if/when it's completed) (19:40:40) Luke Schierer (LSchiere): control-i is italics ... (19:41:51) Luke Schierer (LSchiere): control-g would be the perfect bell keystroke (19:42:02) Gary Kramlich (grim): LSchiere: thats what it is in yahoo... (19:42:03) Peter Lawler (Bleeter): LSchiere: I've been advocating that for months ... (19:47:45) Peter Lawler (Bleeter): rlaager: quick suggestion, go through the .po's and find a common latin letter (19:48:00) Peter Lawler (Bleeter): *letter for that string ... (19:51:02) rlaager: Bleeter: n or o seem to be the best options (19:53:56) rlaager: Bleeter: I'm leaning towards Ctrl-O in case we want Ctrl-N for invite. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 18 Jul 2005 01:00:38 +0000
parents 641915a13cec
children 268d5c498b64
line wrap: on
line source

#include "internal.h"
#include "gtkgaim.h"

#include "gtkconv.h"
#include "gtkplugin.h"
#include "gtkutils.h"

#include "notify.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, "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,
    GAIM_GTK_PLUGIN_TYPE,
    0,
    NULL,
    GAIM_PRIORITY_DEFAULT,

    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@gmail.com>",
    GAIM_WEBSITE,
    plugin_load,
    plugin_unload,
    plugin_destroyed,
    &ui_info,
    NULL,
    NULL,
    NULL
};

static void
init_plugin(GaimPlugin *plugin) {
}

GAIM_INIT_PLUGIN(musicmessaging, init_plugin, info);