From: Eric W. <war...@us...> - 2001-11-26 20:39:57
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv17025 Modified Files: dialogs.c gaim.h Log Message: i hate this shit. i should just stop hacking gaim. Index: dialogs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/dialogs.c,v retrieving revision 1.291 retrieving revision 1.292 diff -u -d -r1.291 -r1.292 --- dialogs.c 2001/11/20 21:25:44 1.291 +++ dialogs.c 2001/11/26 20:39:53 1.292 @@ -1772,7 +1772,13 @@ return NULL; } -void g_show_info_text(struct gaim_connection *gc, char *who, gboolean away, char *info, ...) +/* if away is 0, show regardless and try to get away message + * 1, don't show if regular info isn't shown + * 2, show regardless but don't try to get away message + * + * i wish this were my client. if i were i wouldn't have to deal with this shit. + */ +void g_show_info_text(struct gaim_connection *gc, char *who, int away, char *info, ...) { GtkWidget *ok; GtkWidget *label; @@ -1784,7 +1790,7 @@ va_list ap; struct info_dlg *b = find_info_dlg(gc, who); - if (!b && away) + if (!b && (away == 1)) return; if (!b) { b = g_new0(struct info_dlg, 1); Index: gaim.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/gaim.h,v retrieving revision 1.297 retrieving revision 1.298 diff -u -d -r1.297 -r1.298 --- gaim.h 2001/11/21 12:15:37 1.297 +++ gaim.h 2001/11/26 20:39:53 1.298 @@ -332,7 +332,7 @@ extern struct conversation *find_conversation(char *); /* Functions in dialogs.c */ -extern void g_show_info_text(struct gaim_connection *, char *, gboolean, char *, ...); +extern void g_show_info_text(struct gaim_connection *, char *, int, char *, ...); extern GtkWidget *do_error_dialog(char *, char *); extern void show_change_passwd(struct gaim_connection *); extern void show_set_dir(struct gaim_connection *); |