Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 10404:ce098e226486
[gaim-migrate @ 11649]
Make some things better, and some whitespace cleanup.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 24 Dec 2004 00:05:36 +0000 |
parents | 6a043ae92db6 |
children | 8ee13eecfee0 |
comparison
equal
deleted
inserted
replaced
10403:e5455f1dc9b6 | 10404:ce098e226486 |
---|---|
1676 | 1676 |
1677 /************************************************************************** | 1677 /************************************************************************** |
1678 * Accounts Dialog | 1678 * Accounts Dialog |
1679 **************************************************************************/ | 1679 **************************************************************************/ |
1680 static void | 1680 static void |
1681 account_pulse_update(GaimGtkPulseData *pulse_data) | |
1682 { | |
1683 GdkPixbuf *pixbuf; | |
1684 GtkTreeIter iter; | |
1685 size_t index = g_list_index(gaim_accounts_get_all(), pulse_data->account); | |
1686 | |
1687 if (gtk_tree_model_iter_nth_child(pulse_data->model, &iter, NULL, index)) | |
1688 { | |
1689 pixbuf = gdk_pixbuf_copy(pulse_data->online_pixbuf); | |
1690 | |
1691 gdk_pixbuf_saturate_and_pixelate(pixbuf, pixbuf, | |
1692 pulse_data->pulse_value, FALSE); | |
1693 | |
1694 if (pulse_data->pulse_to_grey) | |
1695 pulse_data->pulse_value += 0.20; | |
1696 else | |
1697 pulse_data->pulse_value -= 0.20; | |
1698 | |
1699 if (pulse_data->pulse_value >= 1) | |
1700 pulse_data->pulse_to_grey = FALSE; | |
1701 else if (pulse_data->pulse_value <= 0) | |
1702 pulse_data->pulse_to_grey = TRUE; | |
1703 | |
1704 gtk_list_store_set(GTK_LIST_STORE(pulse_data->model), &iter, | |
1705 COLUMN_ICON, pixbuf, -1); | |
1706 | |
1707 if (pixbuf != NULL) | |
1708 g_object_unref(G_OBJECT(pixbuf)); | |
1709 } | |
1710 } | |
1711 | |
1712 static void | |
1713 signed_on_off_cb(GaimConnection *gc, AccountsWindow *dialog) | 1681 signed_on_off_cb(GaimConnection *gc, AccountsWindow *dialog) |
1714 { | 1682 { |
1715 GaimAccount *account = gaim_connection_get_account(gc); | 1683 GaimAccount *account = gaim_connection_get_account(gc); |
1716 GaimGtkPulseData *pulse_data; | 1684 GaimGtkPulseData *pulse_data; |
1717 GtkTreeModel *model = GTK_TREE_MODEL(dialog->model); | 1685 GtkTreeModel *model = GTK_TREE_MODEL(dialog->model); |