comparison src/dialogs.c @ 1535:1e2cc8c8bf3c

[gaim-migrate @ 1545] libfaim updates. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 05 Mar 2001 03:59:32 +0000
parents de0b946e86a4
children d029dc28a61e
comparison
equal deleted inserted replaced
1534:d98b92e3d9ff 1535:1e2cc8c8bf3c
139 }; 139 };
140 140
141 struct findbyemail { 141 struct findbyemail {
142 GtkWidget *window; 142 GtkWidget *window;
143 GtkWidget *emailentry; 143 GtkWidget *emailentry;
144 struct gaim_connection *gc;
144 }; 145 };
145 146
146 struct findbyinfo { 147 struct findbyinfo {
147 GtkWidget *window; 148 GtkWidget *window;
148 GtkWidget *firstentry; 149 GtkWidget *firstentry;
2006 { 2007 {
2007 char *email; 2008 char *email;
2008 2009
2009 email = gtk_entry_get_text(GTK_ENTRY(b->emailentry)); 2010 email = gtk_entry_get_text(GTK_ENTRY(b->emailentry));
2010 2011
2011 /* FIXME : email search. not sure if even works; not important */ 2012 if (b->gc)
2012 if (connections) 2013 serv_dir_search(b->gc, "","","","","","","", email);
2014 else
2013 serv_dir_search(connections->data, "","","","","","","", email); 2015 serv_dir_search(connections->data, "","","","","","","", email);
2014 2016
2015 destroy_dialog(NULL, b->window); 2017 destroy_dialog(NULL, b->window);
2016 } 2018 }
2017 2019
2173 aol_icon(b->window->window); 2175 aol_icon(b->window->window);
2174 2176
2175 gtk_widget_show(b->window); 2177 gtk_widget_show(b->window);
2176 } 2178 }
2177 2179
2178 void show_find_email() 2180 void show_find_email(struct gaim_connection *gc)
2179 { 2181 {
2180 GtkWidget *label; 2182 GtkWidget *label;
2181 GtkWidget *bbox; 2183 GtkWidget *bbox;
2182 GtkWidget *vbox; 2184 GtkWidget *vbox;
2183 GtkWidget *frame; 2185 GtkWidget *frame;
2184 GtkWidget *topbox; 2186 GtkWidget *topbox;
2185 GtkWidget *button; 2187 GtkWidget *button;
2186 2188
2187 struct findbyemail *b = g_new0(struct findbyemail, 1); 2189 struct findbyemail *b = g_new0(struct findbyemail, 1);
2190 if (g_slist_find(connections, gc))
2191 b->gc = gc;
2188 b->window = gtk_window_new(GTK_WINDOW_DIALOG); 2192 b->window = gtk_window_new(GTK_WINDOW_DIALOG);
2189 gtk_window_set_policy(GTK_WINDOW(b->window), FALSE, TRUE, TRUE); 2193 gtk_window_set_policy(GTK_WINDOW(b->window), FALSE, TRUE, TRUE);
2190 gtk_window_set_wmclass(GTK_WINDOW(b->window), "find_email", "Gaim"); 2194 gtk_window_set_wmclass(GTK_WINDOW(b->window), "find_email", "Gaim");
2191 gtk_widget_realize(b->window); 2195 gtk_widget_realize(b->window);
2192 aol_icon(b->window->window); 2196 aol_icon(b->window->window);