| 572 |
572 |
| 573 static void |
573 static void |
| 574 pidgin_status_box_finalize(GObject *obj) |
574 pidgin_status_box_finalize(GObject *obj) |
| 575 { |
575 { |
| 576 PidginStatusBox *statusbox = PIDGIN_STATUS_BOX(obj); |
576 PidginStatusBox *statusbox = PIDGIN_STATUS_BOX(obj); |
| 577 int i; |
577 gsize i; |
| 578 |
578 |
| 579 purple_signals_disconnect_by_handle(statusbox); |
579 purple_signals_disconnect_by_handle(statusbox); |
| 580 purple_prefs_disconnect_by_handle(statusbox); |
580 purple_prefs_disconnect_by_handle(statusbox); |
| 581 |
581 |
| 582 destroy_icon_box(statusbox); |
582 destroy_icon_box(statusbox); |
| 871 -1); |
871 -1); |
| 872 |
872 |
| 873 /* This is a special case because Primitives for the token_status_account are actually |
873 /* This is a special case because Primitives for the token_status_account are actually |
| 874 * saved statuses with substatuses for the enabled accounts */ |
874 * saved statuses with substatuses for the enabled accounts */ |
| 875 if (status_box->token_status_account && purple_savedstatus_is_transient(saved_status) |
875 if (status_box->token_status_account && purple_savedstatus_is_transient(saved_status) |
| 876 && type == PIDGIN_STATUS_BOX_TYPE_PRIMITIVE && primitive == GPOINTER_TO_INT(data)) |
876 && type == PIDGIN_STATUS_BOX_TYPE_PRIMITIVE && primitive == (PurpleStatusPrimitive)GPOINTER_TO_INT(data)) |
| 877 { |
877 { |
| 878 char *name; |
878 char *name; |
| 879 const char *acct_status_name = purple_status_get_name( |
879 const char *acct_status_name = purple_status_get_name( |
| 880 purple_account_get_active_status(status_box->token_status_account)); |
880 purple_account_get_active_status(status_box->token_status_account)); |
| 881 |
881 |
| 1187 |
1187 |
| 1188 static void |
1188 static void |
| 1189 cache_pixbufs(PidginStatusBox *status_box) |
1189 cache_pixbufs(PidginStatusBox *status_box) |
| 1190 { |
1190 { |
| 1191 GtkIconSize icon_size; |
1191 GtkIconSize icon_size; |
| 1192 int i; |
1192 gsize i; |
| 1193 |
1193 |
| 1194 g_object_set(G_OBJECT(status_box->icon_rend), "xpad", 3, NULL); |
1194 g_object_set(G_OBJECT(status_box->icon_rend), "xpad", 3, NULL); |
| 1195 icon_size = gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL); |
1195 icon_size = gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL); |
| 1196 |
1196 |
| 1197 for (i = 0; i < G_N_ELEMENTS(status_box->connecting_pixbufs); i++) { |
1197 for (i = 0; i < G_N_ELEMENTS(status_box->connecting_pixbufs); i++) { |