comparison src/buddy.c @ 4978:307c16c4b57e

[gaim-migrate @ 5313] (08:55:48) Robot101: patch to: (08:56:07) Robot101: * make online buddies appear black, not grey, when you have 'show offline buddies' turned on (08:56:21) Robot101: * random cleanup in buddy.c (tooltip/timer freeing) (08:56:43) Robot101: * stop the add buddy dialog resetting your choice of group when you choose an account (08:57:03) Robot101: * fix little memleak when loading the default window icon (08:57:16) Robot101: * make the main window use the default instead of loading the same icon itself (08:57:42) Robot101: * make the manual browser pref validate and save when the entry widget loses focus, not with a crappy button committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 03 Apr 2003 14:05:43 +0000
parents 0581a59c9492
children 06baf1e9094c
comparison
equal deleted inserted replaced
4977:503f61301b81 4978:307c16c4b57e
615 return FALSE; 615 return FALSE;
616 } 616 }
617 617
618 static void gaim_gtk_blist_leave_cb (GtkWidget *w, GdkEventCrossing *e, gpointer n) 618 static void gaim_gtk_blist_leave_cb (GtkWidget *w, GdkEventCrossing *e, gpointer n)
619 { 619 {
620 if (gtkblist->timeout == 0) 620 if (gtkblist->timeout) {
621 return; 621 g_source_remove(gtkblist->timeout);
622 gtkblist->timeout = 0;
623 }
622 if (gtkblist->tipwindow) { 624 if (gtkblist->tipwindow) {
623 gtk_widget_destroy(gtkblist->tipwindow); 625 gtk_widget_destroy(gtkblist->tipwindow);
624 gtkblist->tipwindow = NULL; 626 gtkblist->tipwindow = NULL;
625 } 627 }
626 g_source_remove(gtkblist->timeout); 628 }
627 gtkblist->timeout = 0;
628 }
629 629
630 /*************************************************** 630 /***************************************************
631 * Crap * 631 * Crap *
632 ***************************************************/ 632 ***************************************************/
633 static GtkItemFactoryEntry blist_menu[] = 633 static GtkItemFactoryEntry blist_menu[] =
946 int ihrs, imin; 946 int ihrs, imin;
947 char *idletime = NULL, *warning = NULL, *statustext = NULL; 947 char *idletime = NULL, *warning = NULL, *statustext = NULL;
948 time_t t; 948 time_t t;
949 949
950 if (!(blist_options & OPT_BLIST_SHOW_ICONS)) { 950 if (!(blist_options & OPT_BLIST_SHOW_ICONS)) {
951 if ((b->idle > 0 && blist_options & OPT_BLIST_GREY_IDLERS && !selected) || blist_options & OPT_BLIST_SHOW_OFFLINE) { 951 if ((b->idle > 0 && blist_options & OPT_BLIST_GREY_IDLERS && !selected) || b->present == 0) {
952 text = g_strdup_printf("<span color='dim grey'>%s</span>", 952 text = g_strdup_printf("<span color='dim grey'>%s</span>",
953 esc); 953 esc);
954 g_free(esc); 954 g_free(esc);
955 return text; 955 return text;
956 } else { 956 } else {