changeset 7081:73da9c3ad9ac

[gaim-migrate @ 7646] show_find_info() is gone. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Sep 2003 22:49:00 +0000
parents fc9c74cfb306
children 25a616f16b6c
files src/dialogs.c src/gaim.h
diffstat 2 files changed, 0 insertions(+), 155 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Tue Sep 30 22:41:02 2003 +0000
+++ b/src/dialogs.c	Tue Sep 30 22:49:00 2003 +0000
@@ -986,160 +986,6 @@
 }
 
 /*------------------------------------------------------*/
-/* Find Buddy By Email                                  */
-/*------------------------------------------------------*/
-
-void do_find_info(GtkWidget *w, struct findbyinfo *b)
-{
-	const char *first;
-	const char *middle;
-	const char *last;
-	const char *maiden;
-	const char *city;
-	const char *state;
-	const char *country;
-
-	first = gtk_entry_get_text(GTK_ENTRY(b->firstentry));
-	middle = gtk_entry_get_text(GTK_ENTRY(b->middleentry));
-	last = gtk_entry_get_text(GTK_ENTRY(b->lastentry));
-	maiden = gtk_entry_get_text(GTK_ENTRY(b->maidenentry));
-	city = gtk_entry_get_text(GTK_ENTRY(b->cityentry));
-	state = gtk_entry_get_text(GTK_ENTRY(b->stateentry));
-	country = gtk_entry_get_text(GTK_ENTRY(b->countryentry));
-
-	serv_dir_search(b->gc, first, middle, last, maiden, city, state, country, "");
-	destroy_dialog(NULL, b->window);
-}
-
-void show_find_info(GaimConnection *gc)
-{
-	GtkWidget *cancel;
-	GtkWidget *ok;
-	GtkWidget *label;
-	GtkWidget *bbox;
-	GtkWidget *vbox;
-	GtkWidget *hbox;
-	GtkWidget *fbox;
-	GtkWidget *frame;
-
-	struct findbyinfo *b = g_new0(struct findbyinfo, 1);
-	b->gc = gc;
-	GAIM_DIALOG(b->window);
-	gtk_window_set_resizable(GTK_WINDOW(b->window), TRUE);
-	gtk_window_set_role(GTK_WINDOW(b->window), "find_info");
-
-	dialogwindows = g_list_prepend(dialogwindows, b->window);
-
-	frame = gtk_frame_new(_("Search for Buddy"));
-	fbox = gtk_vbox_new(FALSE, 5);
-
-	/* Build OK Button */
-
-	ok = gaim_pixbuf_button_from_stock(_("OK"), GTK_STOCK_OK, GAIM_BUTTON_HORIZONTAL);
-	cancel = gaim_pixbuf_button_from_stock(_("Cancel"), GTK_STOCK_CANCEL, GAIM_BUTTON_HORIZONTAL);
-
-	bbox = gtk_hbox_new(FALSE, 5);
-	vbox = gtk_vbox_new(FALSE, 5);
-	gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
-
-	b->firstentry = gtk_entry_new();
-	b->middleentry = gtk_entry_new();
-	b->lastentry = gtk_entry_new();
-	b->maidenentry = gtk_entry_new();
-	b->cityentry = gtk_entry_new();
-	b->stateentry = gtk_entry_new();
-	b->countryentry = gtk_entry_new();
-
-	gtk_box_pack_end(GTK_BOX(bbox), ok, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(bbox), cancel, FALSE, FALSE, 0);
-
-	/* Line 1 */
-	label = gtk_label_new(_("First Name"));
-
-	hbox = gtk_hbox_new(FALSE, 5);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(hbox), b->firstentry, FALSE, FALSE, 0);
-
-	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
-
-	/* Line 2 */
-
-	label = gtk_label_new(_("Middle Name"));
-
-	hbox = gtk_hbox_new(FALSE, 5);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(hbox), b->middleentry, FALSE, FALSE, 0);
-
-	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
-
-	/* Line 3 */
-
-	label = gtk_label_new(_("Last Name"));
-
-	hbox = gtk_hbox_new(FALSE, 5);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(hbox), b->lastentry, FALSE, FALSE, 0);
-
-	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
-
-	/* Line 4 */
-
-	label = gtk_label_new(_("Maiden Name"));
-
-	hbox = gtk_hbox_new(FALSE, 5);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(hbox), b->maidenentry, FALSE, FALSE, 0);
-
-	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
-
-	/* Line 5 */
-
-	label = gtk_label_new(_("City"));
-
-	hbox = gtk_hbox_new(FALSE, 5);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(hbox), b->cityentry, FALSE, FALSE, 0);
-
-	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
-
-	/* Line 6 */
-	label = gtk_label_new(_("State"));
-
-	hbox = gtk_hbox_new(FALSE, 5);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(hbox), b->stateentry, FALSE, FALSE, 0);
-
-	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
-
-	/* Line 7 */
-	label = gtk_label_new(_("Country"));
-
-	hbox = gtk_hbox_new(FALSE, 5);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	gtk_box_pack_end(GTK_BOX(hbox), b->countryentry, FALSE, FALSE, 0);
-
-	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
-
-	/* Merge The Boxes */
-
-	gtk_container_add(GTK_CONTAINER(frame), vbox);
-	gtk_box_pack_start(GTK_BOX(fbox), frame, FALSE, FALSE, 0);
-	gtk_box_pack_start(GTK_BOX(fbox), bbox, FALSE, FALSE, 0);
-
-	g_signal_connect(G_OBJECT(b->window), "destroy", G_CALLBACK(destroy_dialog), b->window);
-	g_signal_connect(G_OBJECT(cancel), "clicked", G_CALLBACK(destroy_dialog), b->window);
-	g_signal_connect(G_OBJECT(ok), "clicked", G_CALLBACK(do_find_info), b);
-
-	gtk_window_set_title(GTK_WINDOW(b->window), _("Find Buddy By Info"));
-	gtk_window_set_focus(GTK_WINDOW(b->window), b->firstentry);
-	gtk_container_add(GTK_CONTAINER(b->window), fbox);
-	gtk_container_set_border_width(GTK_CONTAINER(b->window), 5);
-	gtk_widget_realize(b->window);
-
-	gtk_widget_show_all(b->window);
-}
-
-/*------------------------------------------------------*/
 /* Link Dialog                                          */
 /*------------------------------------------------------*/
 
--- a/src/gaim.h	Tue Sep 30 22:41:02 2003 +0000
+++ b/src/gaim.h	Tue Sep 30 22:49:00 2003 +0000
@@ -37,7 +37,6 @@
 extern GSList *away_time_queue;
 
 /* Functions in dialogs.c */
-extern void show_find_info(GaimConnection *);
 extern void show_confirm_del(GaimBuddy *);
 extern void show_confirm_del_group(GaimGroup *);
 extern void show_confirm_del_blist_chat(GaimBlistChat *);