comparison src/dialogs.c @ 2791:8f6365332a05

[gaim-migrate @ 2804] i hate this shit. i should just stop hacking gaim. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 26 Nov 2001 20:39:54 +0000
parents 501de8a3b09f
children 35046c134b8b
comparison
equal deleted inserted replaced
2790:0148422dff4d 2791:8f6365332a05
1770 if (!g_strcasecmp(url, "ab_icon.gif")) 1770 if (!g_strcasecmp(url, "ab_icon.gif"))
1771 return ab_xpm; 1771 return ab_xpm;
1772 return NULL; 1772 return NULL;
1773 } 1773 }
1774 1774
1775 void g_show_info_text(struct gaim_connection *gc, char *who, gboolean away, char *info, ...) 1775 /* if away is 0, show regardless and try to get away message
1776 * 1, don't show if regular info isn't shown
1777 * 2, show regardless but don't try to get away message
1778 *
1779 * i wish this were my client. if i were i wouldn't have to deal with this shit.
1780 */
1781 void g_show_info_text(struct gaim_connection *gc, char *who, int away, char *info, ...)
1776 { 1782 {
1777 GtkWidget *ok; 1783 GtkWidget *ok;
1778 GtkWidget *label; 1784 GtkWidget *label;
1779 GtkWidget *text; 1785 GtkWidget *text;
1780 GtkWidget *bbox; 1786 GtkWidget *bbox;
1782 gint options = 0; 1788 gint options = 0;
1783 char *more_info; 1789 char *more_info;
1784 va_list ap; 1790 va_list ap;
1785 1791
1786 struct info_dlg *b = find_info_dlg(gc, who); 1792 struct info_dlg *b = find_info_dlg(gc, who);
1787 if (!b && away) 1793 if (!b && (away == 1))
1788 return; 1794 return;
1789 if (!b) { 1795 if (!b) {
1790 b = g_new0(struct info_dlg, 1); 1796 b = g_new0(struct info_dlg, 1);
1791 b->gc = gc; 1797 b->gc = gc;
1792 b->who = who ? g_strdup(normalize(who)) : NULL; 1798 b->who = who ? g_strdup(normalize(who)) : NULL;