src/gtkaccount.c

changeset 9609
509595c974af
parent 9591
e664cd540917
child 9617
a455a3cfcfeb
equal deleted inserted replaced
9608:0b3b4fcb642a 9609:509595c974af
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 }

mercurial