From: George K. <geo...@ya...> - 2003-12-02 15:27:55
|
Hi, When I've last tried the CVS version of gaimosd it wasn't compiling on my gaim distribution. I don't see the need for such a good ammount of code for such a simple purpose. That was my motivation on having the plugin re-implemented. As for the multitude of plugins doing the same in several different ways IMHO it's not a bad thing :-) As long as the SourceForge guys are kind enough to provide such a easy way of hosting open source projects the community will only benefit from such variety ... IMHO until the GAIM people take over that functionality (and standartize it this way) we may see even some more to come. Until then I'll try keeping my plugin as simple as possible - to allow easy Gaim API change accomodation and low footprint. Best Regards, George Kodinov. --- Paul Miller <pmi...@us...> wrote: > Why is there a need for another osd plugin? I think > there are at > least three of them already - some written in C, > some perl, etc. > > You are welcome to write a patch for gaimosd (use > the 0.74 cvs > version). If your patches are of good quality and > significant, I > don't have a problem adding another member to the > development team. > It already does everything yours does, works with > the latest gaim, > etc. At this point, it mostly needs a Makefile and > the user > interface rewritten. > > -Paul > > On Tuesday 02 December 2003 2:39 am, George Kodinov > wrote: > > Hi, > > > > OK - I get your point. I've made a sourceforge > project > > w/ my file : > > http://sourceforge.net/projects/gaimnosd/ > > > > Best Regards, > > George Kodinov > > > > --- Luke Schierer <lsc...@us...> wrote: > > > The osd plugin has always been a separate > project at > > > gaimosd.sf.net and > > > for good reason: if we accept this patch, we > > > implicetly assume > > > responsibility for the plugin in the event that > you > > > should decide to > > > stop working on it, > > > > > > 1)which is what most frequently happens after a > > > plugin is submitted > > > 2)is not something we are often prepared to do. > > > > > > luke > > > > > > On Thu, Nov 27, 2003 at 04:05:20PM +0200, George > > > > > > Kodinov wrote: > > > > Hi, > > > > > > > > I have made a working plugin for OSD printing > for > > > > > > gaim (as in CVS). It > > > > > > > uses the xosd library. I'm sending you the > code as > > > > > > is. There's a lot to > > > > > > > do about it - make it customizable re. fonts, > > > > > > locations, sizes; make it > > > > > > > dependent on xosd, but still this is the first > > > > > > draft. > > > > > > > Attached is a diff for /plugins CVS dir and > the > > > > > > plugin itself. > > > > > > > Best Regards, > > > > George Kodinov > > > > > > > > ? diff.diff > > > > ? osd.c > > > > Index: Makefile.am > > > > > =================================================================== > > > > > > RCS file: > /cvsroot/gaim/gaim/plugins/Makefile.am,v > > > > retrieving revision 1.89 > > > > diff -r1.89 Makefile.am > > > > 23a24 > > > > > > > > > osd_la_LDFLAGS = -module > -avoid-version > > > > > > -lxosd > > > > > > > 30a32 > > > > > > > > > osd.la \ > > > > > > > > 40a43 > > > > > > > > > osd_la_SOURCES = osd.c > > > > > > > > /* > > > > * Gaim buddy notification plugin. > > > > * > > > > */ > > > > > > > > #include "internal.h" > > > > #include "connection.h" > > > > #include "conversation.h" > > > > #include "core.h" > > > > #include "debug.h" > > > > #include "signals.h" > > > > #include "xosd.h" > > > > #include "gtkimhtml.h" > > > > #include "gtkplugin.h" > > > > > > > > static GaimPlugin *my_plugin = NULL; > > > > xosd *osd = NULL; > > > > > > > > static void > > > > osd_init () > > > > { > > > > if (!osd) > > > > { > > > > osd = xosd_create (1); > > > > xosd_set_align (osd, XOSD_right); > > > > xosd_set_pos (osd, XOSD_bottom); > > > > xosd_set_font(osd, > > > > > "-misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso10646-1"); > > > > > > /*xosd_set_colour(osd, "LawnGreen");*/ > > > > xosd_set_colour(osd, "LightGoldenrod1"); > > > > xosd_set_timeout(osd, 3); > > > > xosd_set_shadow_offset(osd, 1); > > > > } > > > > } > > > > > > > > > > > > static void > > > > osd_print (const char *text) > > > > { > > > > gaim_debug(GAIM_DEBUG_INFO, "osd", > > > > > > "osd_print\n"); > > > > > > > osd_init (); > > > > xosd_display (osd, 0, XOSD_string, text); > > > > gaim_debug(GAIM_DEBUG_INFO, "osd", > "osd_print > > > > > > done\n"); > > > > > > > } > > > > > > > > static void > > > > osd_notify (GaimBuddy *buddy, const char > > > > > > *buddy_action) > > > > > > > { > > > > char text_buffer[1000]; > > > > char *disp_name = buddy->alias ? > buddy->alias : > > > > > > (buddy->server_alias ? buddy->server_alias : > > > buddy->name); > > > > > > > gaim_debug(GAIM_DEBUG_INFO, "osd", > > > > > > "osd_notify\n"); > > > > > > > sprintf (text_buffer, "%.300s %.300s", > > > > > > disp_name, buddy_action); > > > > > > > osd_print (text_buffer); > > > > gaim_debug(GAIM_DEBUG_INFO, "osd", > "osd_notify > > > > > > done\n"); > > > > > > > } > > > > > > > > static void > > > > buddy_away_cb(GaimBuddy *buddy, void *data) > > > > { > > > > gaim_debug(GAIM_DEBUG_INFO, "osd", > > > > > > "buddy_away_cb\n"); > > > > > > > osd_notify (buddy, "is away"); > > > > } > > > > > > > > static void > > > > buddy_back_cb(GaimBuddy *buddy, void *data) > === message truncated === __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |