diff src/buddy.c @ 3391:412d1035d666

[gaim-migrate @ 3410] Pluginzed the ticker. the ticker will load itself if the old ticker option was set. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 11 Aug 2002 06:42:17 +0000
parents 3cd2fbddf95a
children 4a2955b1ab1a
line wrap: on
line diff
--- a/src/buddy.c	Sat Aug 10 02:42:55 2002 +0000
+++ b/src/buddy.c	Sun Aug 11 06:42:17 2002 +0000
@@ -94,9 +94,6 @@
 GtkWidget *bpmenu;
 GtkWidget *buddies;
 
-void BuddyTickerLogonTimeout(gpointer data);
-void BuddyTickerLogoutTimeout(gpointer data);
-
 typedef struct _GtkTreePixmaps GtkTreePixmaps;
 
 
@@ -303,8 +300,6 @@
 		}
 		update_num_group(gs);
 	} else {
-		if (misc_options & OPT_MISC_BUDDY_TICKER)
-			BuddyTickerSetAlias(b->name, b->show);
 		gtk_label_set_text(GTK_LABEL(bs->label), b->show);
 		update_idle_time(bs);
 	}
@@ -589,19 +584,6 @@
 	show_log(NULL);
 }
 
-void pressed_ticker(char *buddy)
-{
-	struct conversation *c;
-
-	c = find_conversation(buddy);
-
-	if (c != NULL) {
-		gdk_window_show(c->window->window);
-	} else {
-		c = new_conversation(buddy);
-	}
-}
-
 void pressed_alias_bs(GtkWidget *widget, struct buddy_show *bs)
 {
 	alias_dialog_bud(find_buddy(bs->connlist->data, bs->name));
@@ -2110,8 +2092,6 @@
 		gtk_widget_show(b->pix);
 		if (!(blist_options & OPT_BLIST_SHOW_PIXMAPS))
 			gtk_widget_hide(b->pix);
-		if (misc_options & OPT_MISC_BUDDY_TICKER)
-			BuddyTickerSetPixmap(b->name, pm, bm);
 		gdk_pixmap_unref(pm);
 		gdk_bitmap_unref(bm);
 		gtk_timeout_remove(b->log_timer);
@@ -2346,10 +2326,6 @@
 			gtk_widget_hide(bs->pix);
 			gtk_pixmap_set(GTK_PIXMAP(bs->pix), pm, bm);
 			gtk_widget_show(bs->pix);
-			if (misc_options & OPT_MISC_BUDDY_TICKER) {
-				BuddyTickerAddUser(b->name, b->show, pm, bm);
-				gtk_timeout_add(10000, (GtkFunction)BuddyTickerLogonTimeout, b->name);
-			}
 			gdk_pixmap_unref(pm);
 			gdk_bitmap_unref(bm);
 			b->present = 2;
@@ -2385,8 +2361,6 @@
 			gtk_widget_show(bs->pix);
 			if (!(blist_options & OPT_BLIST_SHOW_PIXMAPS))
 				gtk_widget_hide(bs->pix);
-			if (misc_options & OPT_MISC_BUDDY_TICKER)
-				BuddyTickerSetPixmap(b->name, pm, bm);
 			gdk_pixmap_unref(pm);
 			gdk_bitmap_unref(bm);
 		}
@@ -2415,10 +2389,6 @@
 		gtk_widget_hide(bs->pix);
 		gtk_pixmap_set(GTK_PIXMAP(bs->pix), pm, bm);
 		gtk_widget_show(bs->pix);
-		if (misc_options & OPT_MISC_BUDDY_TICKER) {
-			BuddyTickerSetPixmap(b->name, pm, bm);
-			gtk_timeout_add(10000, (GtkFunction)BuddyTickerLogoutTimeout, b->name);
-		}
 		gdk_pixmap_unref(pm);
 		gdk_bitmap_unref(bm);
 		if ((bs->sound != 1) && (im_options & OPT_IM_LOGON)) {