# HG changeset patch # User Sean Egan # Date 1047511179 0 # Node ID 9d3b7b106deff99fde6cfb62d746e72f176ba240 # Parent 751c37a940dd33128c62531c40cb3d6c18ec859d [gaim-migrate @ 5043] Fixed a pair of bugs. committer: Tailor Script diff -r 751c37a940dd -r 9d3b7b106def src/buddy.c --- a/src/buddy.c Wed Mar 12 21:43:39 2003 +0000 +++ b/src/buddy.c Wed Mar 12 23:19:39 2003 +0000 @@ -433,7 +433,7 @@ return FALSE; } -static void gaim_gtk_blist_motion_cb (GtkWidget *tv, GdkEventMotion *event, gpointer null) +static gboolean gaim_gtk_blist_motion_cb (GtkWidget *tv, GdkEventMotion *event, gpointer null) { GtkTreePath *path; @@ -454,6 +454,7 @@ if (path) gtk_tree_path_free(path); gtkblist->timeout = g_timeout_add(500, (GSourceFunc)gaim_gtk_blist_tooltip_timeout, tv); + return FALSE; } static void gaim_gtk_blist_leave_cb (GtkWidget *w, GdkEventCrossing *e, gpointer n) diff -r 751c37a940dd -r 9d3b7b106def src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Wed Mar 12 21:43:39 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Wed Mar 12 23:19:39 2003 +0000 @@ -1043,6 +1043,8 @@ return _("Stepped Out"); case YAHOO_STATUS_INVISIBLE: return _("Invisible"); + case YAHOO_STATUS_IDLE: + return _("Idle"); default: return _("Online"); } @@ -1068,8 +1070,8 @@ static const char *yahoo_status_text(struct buddy *b) { struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data; - if (b->uc & UC_UNAVAILABLE && b->uc >> 2 != YAHOO_STATUS_IDLE) { - if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) + if (b->uc & UC_UNAVAILABLE) { + if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) return yahoo_get_status_string(b->uc >> 2); else return g_hash_table_lookup(yd->hash, b->name); @@ -1080,15 +1082,22 @@ static char *yahoo_tooltip_text(struct buddy *b) { struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data; - if (b->uc & UC_UNAVAILABLE && b->uc >> 2 != YAHOO_STATUS_IDLE) { - if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) + if (b->uc & UC_UNAVAILABLE) { + if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM) return g_strdup(yahoo_get_status_string(b->uc >> 2)); else return g_strdup(g_hash_table_lookup(yd->hash, b->name)); +<<<<<<< yahoo.c + } + return NULL; +} + +======= } return NULL; } +>>>>>>> 1.76 static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who) { GList *m = NULL;