Mercurial > pidgin.yaz
comparison src/main.c @ 7035:feb3d21a7794
[gaim-migrate @ 7598]
Standardized the UI op accessor functions in every file. They're now
properly namespaced.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 29 Sep 2003 23:39:02 +0000 |
parents | dece74f05509 |
children | 7c04a0775918 |
comparison
equal
deleted
inserted
replaced
7034:f7ff0dfa6b9f | 7035:feb3d21a7794 |
---|---|
480 #endif /* _WIN32 */ | 480 #endif /* _WIN32 */ |
481 | 481 |
482 static void | 482 static void |
483 debug_init(void) | 483 debug_init(void) |
484 { | 484 { |
485 gaim_set_debug_ui_ops(gaim_get_gtk_debug_ui_ops()); | 485 gaim_debug_set_ui_ops(gaim_gtk_debug_get_ui_ops()); |
486 gaim_gtk_debug_init(); | 486 gaim_gtk_debug_init(); |
487 } | 487 } |
488 | 488 |
489 static void | 489 static void |
490 gaim_gtk_ui_init(void) | 490 gaim_gtk_ui_init(void) |
491 { | 491 { |
492 /* Set the UI operation structures. */ | 492 /* Set the UI operation structures. */ |
493 gaim_accounts_set_ui_ops(gaim_gtk_accounts_get_ui_ops()); | 493 gaim_accounts_set_ui_ops(gaim_gtk_accounts_get_ui_ops()); |
494 gaim_set_win_ui_ops(gaim_get_gtk_window_ui_ops()); | 494 gaim_conversations_set_win_ui_ops(gaim_gtk_conversations_get_win_ui_ops()); |
495 gaim_set_xfer_ui_ops(gaim_get_gtk_xfer_ui_ops()); | 495 gaim_xfers_set_ui_ops(gaim_gtk_xfers_get_ui_ops()); |
496 gaim_set_blist_ui_ops(gaim_get_gtk_blist_ui_ops()); | 496 gaim_blist_set_ui_ops(gaim_gtk_blist_get_ui_ops()); |
497 gaim_set_notify_ui_ops(gaim_get_gtk_notify_ui_ops()); | 497 gaim_notify_set_ui_ops(gaim_gtk_notify_get_ui_ops()); |
498 gaim_set_privacy_ui_ops(gaim_gtk_privacy_get_ui_ops()); | 498 gaim_privacy_set_ui_ops(gaim_gtk_privacy_get_ui_ops()); |
499 gaim_set_request_ui_ops(gaim_get_gtk_request_ui_ops()); | 499 gaim_request_set_ui_ops(gaim_gtk_request_get_ui_ops()); |
500 gaim_set_sound_ui_ops(gaim_get_gtk_sound_ui_ops()); | 500 gaim_sound_set_ui_ops(gaim_gtk_sound_get_ui_ops()); |
501 gaim_set_connection_ui_ops(gaim_get_gtk_connection_ui_ops()); | 501 gaim_connections_set_ui_ops(gaim_gtk_connections_get_ui_ops()); |
502 | 502 |
503 gaim_gtk_prefs_init(); | 503 gaim_gtk_prefs_init(); |
504 gaim_gtk_blist_init(); | 504 gaim_gtk_blist_init(); |
505 gaim_gtk_conversation_init(); | 505 gaim_gtk_conversations_init(); |
506 gaim_gtk_pounces_init(); | 506 gaim_gtk_pounces_init(); |
507 gaim_gtk_privacy_init(); | 507 gaim_gtk_privacy_init(); |
508 gaim_gtk_xfers_init(); | 508 gaim_gtk_xfers_init(); |
509 } | 509 } |
510 | 510 |
532 gaim_gtk_ui_init, | 532 gaim_gtk_ui_init, |
533 gaim_gtk_quit | 533 gaim_gtk_quit |
534 }; | 534 }; |
535 | 535 |
536 static GaimCoreUiOps * | 536 static GaimCoreUiOps * |
537 gaim_get_gtk_core_ui_ops(void) | 537 gaim_gtk_core_get_ui_ops(void) |
538 { | 538 { |
539 return &core_ops; | 539 return &core_ops; |
540 } | 540 } |
541 | 541 |
542 /* FUCKING GET ME A TOWEL! */ | 542 /* FUCKING GET ME A TOWEL! */ |
795 return 0; | 795 return 0; |
796 } | 796 } |
797 | 797 |
798 gaim_gtk_stock_init(); | 798 gaim_gtk_stock_init(); |
799 | 799 |
800 gaim_set_core_ui_ops(gaim_get_gtk_core_ui_ops()); | 800 gaim_core_set_ui_ops(gaim_gtk_core_get_ui_ops()); |
801 | 801 |
802 if (!gaim_core_init(GAIM_GTK_UI)) { | 802 if (!gaim_core_init(GAIM_GTK_UI)) { |
803 fprintf(stderr, | 803 fprintf(stderr, |
804 "Initialization of the Gaim core failed. Dumping core.\n" | 804 "Initialization of the Gaim core failed. Dumping core.\n" |
805 "Please report this!\n"); | 805 "Please report this!\n"); |