im.pidgin.pidgin: 0db720d53baa44f5f1e82557a4953940ca8f52c8

datallah at pidgin.im datallah at pidgin.im
Wed Dec 19 11:00:39 EST 2007


-----------------------------------------------------------------
Revision: 0db720d53baa44f5f1e82557a4953940ca8f52c8
Ancestor: bcb6a88f779bc679ae3a0186e4390ded1f2e45a8
Author: datallah at pidgin.im
Date: 2007-12-19T15:54:54
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkaccount.c

ChangeLog: 

The pulse data stuff hasn't been used in quite a while - get rid of it.

-------------- next part --------------
============================================================
--- pidgin/gtkaccount.c	027bb9fba5b855f5a4f4baaf1b9037253fb2152f
+++ pidgin/gtkaccount.c	737b270c138edcccf41fa5895fd4ad0e0523577c
@@ -55,7 +55,6 @@ enum
 	COLUMN_ENABLED,
 	COLUMN_PROTOCOL,
 	COLUMN_DATA,
-	COLUMN_PULSE_DATA,
 	NUM_COLUMNS
 };
 
@@ -139,18 +138,6 @@ typedef struct
 
 } AccountPrefsDialog;
 
-typedef struct
-{
-	GdkPixbuf *online_pixbuf;
-	gboolean pulse_to_grey;
-	float pulse_value;
-	int timeout;
-	PurpleAccount *account;
-	GtkTreeModel *model;
-
-} PidginPulseData;
-
-
 static AccountsWindow *accounts_window = NULL;
 static GHashTable *account_pref_wins;
 
@@ -1550,7 +1537,6 @@ signed_on_off_cb(PurpleConnection *gc, g
 signed_on_off_cb(PurpleConnection *gc, gpointer user_data)
 {
 	PurpleAccount *account;
-	PidginPulseData *pulse_data;
 	GtkTreeModel *model;
 	GtkTreeIter iter;
 	GdkPixbuf *pixbuf;
@@ -1566,29 +1552,14 @@ signed_on_off_cb(PurpleConnection *gc, g
 
 	if (gtk_tree_model_iter_nth_child(model, &iter, NULL, index))
 	{
-		gtk_tree_model_get(GTK_TREE_MODEL(accounts_window->model), &iter,
-						   COLUMN_PULSE_DATA, &pulse_data, -1);
-
-		if (pulse_data != NULL)
-		{
-			if (pulse_data->timeout > 0)
-				g_source_remove(pulse_data->timeout);
-
-			g_object_unref(G_OBJECT(pulse_data->online_pixbuf));
-
-			g_free(pulse_data);
-		}
-
 		pixbuf = pidgin_create_prpl_icon(account, PIDGIN_PRPL_ICON_MEDIUM);
 		if ((pixbuf != NULL) && purple_account_is_disconnected(account))
 			gdk_pixbuf_saturate_and_pixelate(pixbuf, pixbuf, 0.0, FALSE);
 
 		gtk_list_store_set(accounts_window->model, &iter,
 				   COLUMN_ICON, pixbuf,
-				   COLUMN_PULSE_DATA, NULL,
 				   -1);
 
-
 		if (pixbuf != NULL)
 			g_object_unref(G_OBJECT(pixbuf));
 	}


More information about the Commits mailing list