comparison plugins/docklet/docklet.c @ 3550:e9b2003ee562

[gaim-migrate @ 3625] I reversed the last patch. it stopped gaim from compiling, and while i can easily see that PLUGIN_API_VERSION isn't defined, i don't know what was up with the illegal usage of a struct. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 25 Sep 2002 14:27:18 +0000
parents ff62b03bee6d
children cd938f18f3f8
comparison
equal deleted inserted replaced
3549:face765b6a9d 3550:e9b2003ee562
329 329
330 gaim_signal_connect(handle, event_signon, gaim_signon, NULL); 330 gaim_signal_connect(handle, event_signon, gaim_signon, NULL);
331 gaim_signal_connect(handle, event_signoff, gaim_signoff, NULL); 331 gaim_signal_connect(handle, event_signoff, gaim_signoff, NULL);
332 gaim_signal_connect(handle, event_connecting, gaim_connecting, NULL); 332 gaim_signal_connect(handle, event_connecting, gaim_connecting, NULL);
333 gaim_signal_connect(handle, event_away, gaim_away, NULL); 333 gaim_signal_connect(handle, event_away, gaim_away, NULL);
334 gaim_signal_connect(handle, event_im_displayed_rcvd, gaim_im_recv, NULL);
335 gaim_signal_connect(handle, event_im_recv, gaim_im_recv, NULL); 334 gaim_signal_connect(handle, event_im_recv, gaim_im_recv, NULL);
336 gaim_signal_connect(handle, event_buddy_signon, gaim_buddy_signon, NULL); 335 gaim_signal_connect(handle, event_buddy_signon, gaim_buddy_signon, NULL);
337 gaim_signal_connect(handle, event_buddy_signoff, gaim_buddy_signoff, NULL); 336 gaim_signal_connect(handle, event_buddy_signoff, gaim_buddy_signoff, NULL);
338 gaim_signal_connect(handle, event_buddy_away, gaim_buddy_away, NULL); 337 gaim_signal_connect(handle, event_buddy_away, gaim_buddy_away, NULL);
339 gaim_signal_connect(handle, event_buddy_back, gaim_buddy_back, NULL); 338 gaim_signal_connect(handle, event_buddy_back, gaim_buddy_back, NULL);
377 g_signal_handlers_disconnect_by_func(GTK_WIDGET(docklet), G_CALLBACK(docklet_destroyed), NULL); 376 g_signal_handlers_disconnect_by_func(GTK_WIDGET(docklet), G_CALLBACK(docklet_destroyed), NULL);
378 gtk_widget_destroy(GTK_WIDGET(docklet)); 377 gtk_widget_destroy(GTK_WIDGET(docklet));
379 378
380 debug_printf("Docklet: removed\n"); 379 debug_printf("Docklet: removed\n");
381 } 380 }
382
383 struct gaim_plugin_description desc;
384 struct gaim_plugin_description *gaim_plugin_desc() {
385 desc.api_version = PLUGIN_API_VERSION;
386 desc.name = g_strdup("System Tray Docklet");
387 desc.version = g_strdup(VERSION);
388 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.");
389 desc.authors = g_strdup("Robert McQueen &lt;robot101@debian.org>");
390 desc.url = g_strdup(WEBSITE);
391 return &desc;
392 }
393
394 381
395 const char *name() { 382 const char *name() {
396 return _("System Tray Docklet 2"); 383 return _("System Tray Docklet");
397 } 384 }
398 385
399 const char *description() { 386 const char *description() {
400 return _(" 22 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."); 387 return _("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.");
401 } 388 }