Tue, 30 Sep 2003 06:43:17 +0000
[gaim-migrate @ 7626]
g_show_info_text() is gone! Mwahahaha.
--- a/src/dialogs.c Tue Sep 30 05:58:48 2003 +0000 +++ b/src/dialogs.c Tue Sep 30 06:43:17 2003 +0000 @@ -121,26 +121,6 @@ } GaimGtkBlockData; -static GSList *info_dlgs = NULL; - -static struct info_dlg *find_info_dlg(GaimConnection *gc, const char *who) -{ - GSList *i = info_dlgs; - while (i) { - struct info_dlg *d = i->data; - i = i->next; - if (d->gc != gc) - continue; - if (d->who == NULL) - continue; - if (!who) - continue; - if (!gaim_utf8_strcasecmp(normalize(who), d->who)) - return d; - } - return NULL; -} - struct set_info_dlg { GtkWidget *window; GtkWidget *menu; @@ -1217,115 +1197,6 @@ gtk_widget_show_all(b->window); } -/*------------------------------------------------------------------------*/ -/* The dialog for the info requests */ -/*------------------------------------------------------------------------*/ - -static void info_dlg_free(GtkWidget *b, struct info_dlg *d) -{ - if (g_slist_find(info_dlgs, d)) - info_dlgs = g_slist_remove(info_dlgs, d); - g_free(d->who); - g_free(d); -} - -/* 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(GaimConnection *gc, const char *who, int away, const char *info, ...) -{ - GtkWidget *ok; - GtkWidget *label; - GtkWidget *text; - GtkWidget *bbox; - GtkWidget *sw; - gint options = 0; - gchar *linkifyinated; - va_list ap; - char *more_info; - - struct info_dlg *b = find_info_dlg(gc, who); - if (!b && (away == 1)) - return; - if (!b) { - b = g_new0(struct info_dlg, 1); - b->gc = gc; - b->who = who ? g_strdup(normalize(who)) : NULL; - info_dlgs = g_slist_append(info_dlgs, b); - - GAIM_DIALOG(b->window); - gtk_window_set_title(GTK_WINDOW(b->window), "Gaim"); - gtk_window_set_role(GTK_WINDOW(b->window), "get_info"); - gtk_container_set_border_width(GTK_CONTAINER(b->window), 5); - gtk_widget_realize(GTK_WIDGET(b->window)); - g_signal_connect(G_OBJECT(b->window), "destroy", G_CALLBACK(info_dlg_free), b); - - bbox = gtk_vbox_new(FALSE, 5); - gtk_container_add(GTK_CONTAINER(b->window), bbox);