comparison plugins/chatlist.c @ 3630:9682c0e022c6

[gaim-migrate @ 3753] Yeah this will probably break a lot of shit knowing my luck. But hey, I really don't care what people thnk. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 11 Oct 2002 03:14:01 +0000
parents 154c4a9d9b6d
children c66ed5df69ef
comparison
equal deleted inserted replaced
3629:afc5bb164c5a 3630:9682c0e022c6
8 #include "proxy.h" 8 #include "proxy.h"
9 #include "gaim.h" 9 #include "gaim.h"
10 10
11 #include <stdlib.h> 11 #include <stdlib.h>
12 #include <string.h> 12 #include <string.h>
13 #ifdef _WIN32
14 #include "win32dep.h"
15 #endif
13 16
14 #define AOL_SRCHSTR "aim:GoChat?RoomName=" 17 #define AOL_SRCHSTR "aim:GoChat?RoomName="
15 18
16 struct chat_page { 19 struct chat_page {
17 GtkWidget *list1; 20 GtkWidget *list1;
291 if (parent) 294 if (parent)
292 gtk_widget_destroy(parent); 295 gtk_widget_destroy(parent);
293 parent = NULL; 296 parent = NULL;
294 } 297 }
295 298
296 GtkWidget *gaim_plugin_config_gtk() 299 G_MODULE_EXPORT GtkWidget *gaim_plugin_config_gtk()
297 { 300 {
298 GtkWidget *ret, *vbox; 301 GtkWidget *ret, *vbox;
299 GtkWidget *list1, *list2; 302 GtkWidget *list1, *list2;
300 GtkWidget *sw1, *sw2; 303 GtkWidget *sw1, *sw2;
301 GtkWidget *ref_button, *add_button, *rem_button; 304 GtkWidget *ref_button, *add_button, *rem_button;
388 static void handle_signon(struct gaim_connection *gc) 391 static void handle_signon(struct gaim_connection *gc)
389 { 392 {
390 setup_buddy_chats(); 393 setup_buddy_chats();
391 } 394 }
392 395
393 char *gaim_plugin_init(GModule *m) 396 G_MODULE_EXPORT char *gaim_plugin_init(GModule *m)
394 { 397 {
395 restore_chat_prefs(); 398 restore_chat_prefs();
396 gaim_signal_connect(m, event_signon, handle_signon, NULL); 399 gaim_signal_connect(m, event_signon, handle_signon, NULL);
397 return NULL; 400 return NULL;
398 } 401 }
399 402
400 void gaim_plugin_remove() 403 G_MODULE_EXPORT void gaim_plugin_remove()
401 { 404 {
402 if (parent) 405 if (parent)
403 gtk_widget_destroy(parent); 406 gtk_widget_destroy(parent);
404 parent = NULL; 407 parent = NULL;
405 408
426 desc.authors = g_strdup("Eric Warmenhoven &lt;eric@warmenhoven.org>"); 429 desc.authors = g_strdup("Eric Warmenhoven &lt;eric@warmenhoven.org>");
427 desc.url = g_strdup(WEBSITE); 430 desc.url = g_strdup(WEBSITE);
428 return &desc; 431 return &desc;
429 } 432 }
430 433
431 char *name() 434 G_MODULE_EXPORT char *name()
432 { 435 {
433 return "Chat List"; 436 return "Chat List";
434 } 437 }
435 438
436 char *description() 439 G_MODULE_EXPORT char *description()
437 { 440 {
438 return "Allows you to add chat rooms to your buddy list. Click the configure button to choose" 441 return "Allows you to add chat rooms to your buddy list. Click the configure button to choose"
439 " which rooms."; 442 " which rooms.";
440 } 443 }