Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 9609:93211b7538d6
[gaim-migrate @ 10452]
" To write this cleanly I had to add a handle, init, and
uninit functions to gtkaccount.c
Also, made doc/gtkaccount-signals.dox as well as update
plugins/ChangeLog.API
Added plugins/gtk-signals-test.c since we're starting
to get some more ui signals, and it's a great place to
test new signals." --Gary Kramlich
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 28 Jul 2004 00:49:22 +0000 |
parents | bc910eb2679f |
children | d5055337c9d9 |
comparison
equal
deleted
inserted
replaced
9608:204f5d66a863 | 9609:93211b7538d6 |
---|---|
1506 | 1506 |
1507 ret = dialog->account; | 1507 ret = dialog->account; |
1508 | 1508 |
1509 account_win_destroy_cb(NULL, NULL, dialog); | 1509 account_win_destroy_cb(NULL, NULL, dialog); |
1510 | 1510 |
1511 gaim_signal_emit(gaim_gtk_account_get_handle(), "account-modified", ret); | |
1512 | |
1511 return ret; | 1513 return ret; |
1512 } | 1514 } |
1513 | 1515 |
1514 static void | 1516 static void |
1515 register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) | 1517 register_account_prefs_cb(GtkWidget *w, AccountPrefsDialog *dialog) |
2510 GaimAccountUiOps * | 2512 GaimAccountUiOps * |
2511 gaim_gtk_accounts_get_ui_ops(void) | 2513 gaim_gtk_accounts_get_ui_ops(void) |
2512 { | 2514 { |
2513 return &ui_ops; | 2515 return &ui_ops; |
2514 } | 2516 } |
2517 | |
2518 void * | |
2519 gaim_gtk_account_get_handle() { | |
2520 static int handle; | |
2521 | |
2522 return &handle; | |
2523 } | |
2524 | |
2525 void | |
2526 gaim_gtk_account_init(void) { | |
2527 gaim_signal_register(gaim_gtk_account_get_handle(), "account-modified", | |
2528 gaim_marshal_VOID__POINTER, NULL, 1, | |
2529 gaim_value_new(GAIM_TYPE_SUBTYPE, | |
2530 GAIM_SUBTYPE_ACCOUNT)); | |
2531 } | |
2532 | |
2533 void | |
2534 gaim_gtk_account_uninit(void) { | |
2535 gaim_signals_unregister_by_instance(gaim_gtk_blist_get_handle()); | |
2536 } |