comparison src/dialogs.c @ 2393:a7ecfd3f7714

[gaim-migrate @ 2406] Arkadiusz Miskiewicz\'s Gadu-Gadu plugin. I was able to figure out enough polish to be able to download Gadu-Gadu, create an account, and test the plugin. Imagine my shock when I got my info and it said I was a woman. Whoops. Also splitting plugins.c so that non-gtk stuff is in modules.c. gaim-core is almost ready for protocol implantaion. Also fixing an IRC bug. Also patiently waiting for anoncvs_gaim's lock in /cvsroot/gaim/gaim/pixmaps committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 29 Sep 2001 23:06:30 +0000
parents 569ae9f2bb89
children 520257562955
comparison
equal deleted inserted replaced
2392:9965c0bbdb7c 2393:a7ecfd3f7714
148 GtkWidget *emailentry; 148 GtkWidget *emailentry;
149 struct gaim_connection *gc; 149 struct gaim_connection *gc;
150 }; 150 };
151 151
152 struct findbyinfo { 152 struct findbyinfo {
153 struct gaim_connection *gc;
153 GtkWidget *window; 154 GtkWidget *window;
154 GtkWidget *firstentry; 155 GtkWidget *firstentry;
155 GtkWidget *middleentry; 156 GtkWidget *middleentry;
156 GtkWidget *lastentry; 157 GtkWidget *lastentry;
157 GtkWidget *maidenentry; 158 GtkWidget *maidenentry;
2056 maiden = gtk_entry_get_text(GTK_ENTRY(b->maidenentry)); 2057 maiden = gtk_entry_get_text(GTK_ENTRY(b->maidenentry));
2057 city = gtk_entry_get_text(GTK_ENTRY(b->cityentry)); 2058 city = gtk_entry_get_text(GTK_ENTRY(b->cityentry));
2058 state = gtk_entry_get_text(GTK_ENTRY(b->stateentry)); 2059 state = gtk_entry_get_text(GTK_ENTRY(b->stateentry));
2059 country = gtk_entry_get_text(GTK_ENTRY(b->countryentry)); 2060 country = gtk_entry_get_text(GTK_ENTRY(b->countryentry));
2060 2061
2061 /* FIXME : dir search. not sure if even works; not important */ 2062 serv_dir_search(b->gc, first, middle, last, maiden, city, state, country, "");
2062 if (connections)
2063 serv_dir_search(connections->data, first, middle, last, maiden, city, state, country,
2064 "");
2065 destroy_dialog(NULL, b->window); 2063 destroy_dialog(NULL, b->window);
2066 } 2064 }
2067 2065
2068 void do_find_email(GtkWidget *w, struct findbyemail *b) 2066 void do_find_email(GtkWidget *w, struct findbyemail *b)
2069 { 2067 {
2077 serv_dir_search(connections->data, "", "", "", "", "", "", "", email); 2075 serv_dir_search(connections->data, "", "", "", "", "", "", "", email);
2078 2076
2079 destroy_dialog(NULL, b->window); 2077 destroy_dialog(NULL, b->window);
2080 } 2078 }
2081 2079
2082 void show_find_info() 2080 void show_find_info(struct gaim_connection *gc)
2083 { 2081 {
2084 GtkWidget *cancel; 2082 GtkWidget *cancel;
2085 GtkWidget *ok; 2083 GtkWidget *ok;
2086 GtkWidget *label; 2084 GtkWidget *label;
2087 GtkWidget *bbox; 2085 GtkWidget *bbox;
2089 GtkWidget *hbox; 2087 GtkWidget *hbox;
2090 GtkWidget *fbox; 2088 GtkWidget *fbox;
2091 GtkWidget *frame; 2089 GtkWidget *frame;
2092 2090
2093 struct findbyinfo *b = g_new0(struct findbyinfo, 1); 2091 struct findbyinfo *b = g_new0(struct findbyinfo, 1);
2092 b->gc = gc;
2094 b->window = gtk_window_new(GTK_WINDOW_DIALOG); 2093 b->window = gtk_window_new(GTK_WINDOW_DIALOG);
2095 gtk_window_set_policy(GTK_WINDOW(b->window), FALSE, TRUE, TRUE); 2094 gtk_window_set_policy(GTK_WINDOW(b->window), FALSE, TRUE, TRUE);
2096 gtk_window_set_wmclass(GTK_WINDOW(b->window), "find_info", "Gaim"); 2095 gtk_window_set_wmclass(GTK_WINDOW(b->window), "find_info", "Gaim");
2097 gtk_widget_show(b->window); 2096 gtk_widget_show(b->window);
2098 2097