view plugins/simple.c @ 3402:2490433b7417

[gaim-migrate @ 3421] Okay, rant time. Anybody who has experienced this problem will appreciate this. Gettext 0.11.x is, as we all know, evil. People have been complaining that, now that 0.11.x actually works, they're getting the following message: "Press Return to acknowledge the previous ___." It had been assumed that the previous paragraphs were the reasons for the pause. However, you always get at least one error. It's hard-coded in. It's more of a "friendly reminder," really. On top of that, even if there were no errors, the pause after the message is also hard-coded in outside of any conditionals. You CANNOT get rid of it by "fixing" anything in the tree. It's always there. On top of that, take a look at these lines: echo "Press Return to acknowledge the previous $count." # Read from /dev/tty, not stdin, so that gettextize cannot be abused by # non-interactive tools. read < /dev/tty See that? They specifically coded it so you cannot bypass it. This commit bypasses it. We're copying gettextize to gaim-gettextize and removing that read line, running it, removing gaim-gettextize. Nasty hack, but it works. You can all thank me when I wake up tomorrow. :) committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 18 Aug 2002 09:26:36 +0000
parents 5f5dae3b227d
children cd938f18f3f8
line wrap: on
line source

#define GAIM_PLUGINS

#include <stdio.h>
#include "gaim.h"

static GModule *handle = NULL;

char *gaim_plugin_init(GModule *h) {
	printf("plugin loaded.\n");
	handle = h;
	return NULL;
}

void gaim_plugin_remove() {
	printf("plugin unloaded.\n");
	handle = NULL;
}

void gaim_plugin_config() {
	printf("configuring plugin.\n");
}

char *name() {
	return "Simple Plugin Version 1.0";
}

char *description() {
	return "Tests to see that most things are working.";
}