From: Sean E. <sea...@us...> - 2002-09-26 07:37:54
|
Update of /cvsroot/gaim/gaim/plugins/docklet In directory usw-pr-cvs1:/tmp/cvs-serv29880/plugins/docklet Modified Files: docklet.c Log Message: In the interest of continued progress, I pulled what's usable out of my development tree and am committing it. Here, we have gotten rid of the plugins dialog and perl menu under Tools and put them both in preferences. Perl scripts now work like plugins--you have to load them explicitly (it will probe $prefix/lib/gaim and $HOME/.gaim for them) and you can unload them (although right now, this is entirely unreliable) Oh, and I broke all your perl scripts. Sorry about that. Don't try fixing them yet, though--I'm gonna make unloading single scripts more reliable tommorow. I should also finish Phase Two tommorow as well. Index: docklet.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/docklet/docklet.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- docklet.c 25 Sep 2002 14:27:18 -0000 1.7 +++ docklet.c 26 Sep 2002 07:37:51 -0000 1.8 @@ -147,10 +147,6 @@ g_signal_connect(GTK_WIDGET(entry), "activate", G_CALLBACK(show_prefs), NULL); gtk_menu_append(GTK_MENU(menu), entry); - entry = gtk_menu_item_new_with_label(_("Plugins")); - g_signal_connect(GTK_WIDGET(entry), "activate", G_CALLBACK(show_plugins), NULL); - gtk_menu_append(GTK_MENU(menu), entry); - entry = gtk_separator_menu_item_new(); gtk_menu_append(GTK_MENU(menu), entry); @@ -331,6 +327,7 @@ gaim_signal_connect(handle, event_signoff, gaim_signoff, NULL); gaim_signal_connect(handle, event_connecting, gaim_connecting, NULL); gaim_signal_connect(handle, event_away, gaim_away, NULL); + gaim_signal_connect(handle, event_im_displayed_rcvd, gaim_im_recv, NULL); gaim_signal_connect(handle, event_im_recv, gaim_im_recv, NULL); gaim_signal_connect(handle, event_buddy_signon, gaim_buddy_signon, NULL); gaim_signal_connect(handle, event_buddy_signoff, gaim_buddy_signoff, NULL); @@ -378,6 +375,18 @@ debug_printf("Docklet: removed\n"); } + +struct gaim_plugin_description desc; +struct gaim_plugin_description *gaim_plugin_desc() { + desc.api_version = PLUGIN_API_VERSION; + desc.name = g_strdup("System Tray Docklet"); + desc.version = g_strdup(VERSION); + desc.description = g_strdup("Interacts with a System Tray applet (in GNOME or KDE, for example) to display the current status of Gaim, allow fast access to commonly used functions, and to toggle display of the buddy list or login window."); + desc.authors = g_strdup("Robert McQueen <rob...@de...>"); + desc.url = g_strdup(WEBSITE); + return &desc; +} + const char *name() { return _("System Tray Docklet"); |