Mercurial > pidgin
comparison src/gtkpounce.c @ 5054:abc8489b2e8f
[gaim-migrate @ 5404]
compile cleanups
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 07 Apr 2003 03:59:02 +0000 |
parents | 6a7759f63766 |
children | ab0f12de3718 |
comparison
equal
deleted
inserted
replaced
5053:e40d52cffd51 | 5054:abc8489b2e8f |
---|---|
18 * You should have received a copy of the GNU General Public License | 18 * You should have received a copy of the GNU General Public License |
19 * along with this program; if not, write to the Free Software | 19 * along with this program; if not, write to the Free Software |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 * | 21 * |
22 */ | 22 */ |
23 #include <unistd.h> | |
23 #include "gaim.h" | 24 #include "gaim.h" |
24 #include "gtkpounce.h" | 25 #include "gtkpounce.h" |
25 #include "gtklist.h" | 26 #include "gtklist.h" |
26 #include "prpl.h" | 27 #include "prpl.h" |
27 #include "sound.h" | 28 #include "sound.h" |
201 } | 202 } |
202 | 203 |
203 save_prefs(); | 204 save_prefs(); |
204 } | 205 } |
205 | 206 |
206 static GtkWidget * | 207 static void |
207 pounce_choose_cb(GtkWidget *item, struct gaim_gtkpounce_dialog *dialog) | 208 pounce_choose_cb(GtkWidget *item, struct gaim_gtkpounce_dialog *dialog) |
208 { | 209 { |
209 dialog->account = g_object_get_data(G_OBJECT(item), "user_data"); | 210 dialog->account = g_object_get_data(G_OBJECT(item), "user_data"); |
210 } | 211 } |
211 | 212 |
217 GtkWidget *opt_menu; | 218 GtkWidget *opt_menu; |
218 GtkWidget *menu; | 219 GtkWidget *menu; |
219 GtkWidget *item; | 220 GtkWidget *item; |
220 GSList *l; | 221 GSList *l; |
221 char buf[2048]; | 222 char buf[2048]; |
222 int count, place; | 223 int count, place = 0; |
223 | 224 |
224 opt_menu = gtk_option_menu_new(); | 225 opt_menu = gtk_option_menu_new(); |
225 menu = gtk_menu_new(); | 226 menu = gtk_menu_new(); |
226 | 227 |
227 for (l = gaim_accounts, count = 0; l != NULL; l = l->next, count++) { | 228 for (l = gaim_accounts, count = 0; l != NULL; l = l->next, count++) { |
396 GtkWidget *vbox1, *vbox2; | 397 GtkWidget *vbox1, *vbox2; |
397 GtkWidget *hbox; | 398 GtkWidget *hbox; |
398 GtkWidget *button; | 399 GtkWidget *button; |
399 GtkWidget *frame; | 400 GtkWidget *frame; |
400 GtkWidget *table; | 401 GtkWidget *table; |
401 GtkWidget *optmenu; | |
402 GtkWidget *sep; | 402 GtkWidget *sep; |
403 GtkSizeGroup *sg; | 403 GtkSizeGroup *sg; |
404 | 404 |
405 dialog = g_new0(struct gaim_gtkpounce_dialog, 1); | 405 dialog = g_new0(struct gaim_gtkpounce_dialog, 1); |
406 | 406 |
718 } | 718 } |
719 | 719 |
720 void | 720 void |
721 gaim_gtkpounce_menu_build(GtkWidget *menu) | 721 gaim_gtkpounce_menu_build(GtkWidget *menu) |
722 { | 722 { |
723 GtkWidget *remmenu, *submenu, *item; | 723 GtkWidget *remmenu, *item; |
724 GList *l; | 724 GList *l; |
725 GList *bp; | 725 GList *bp; |
726 struct gaim_pounce *pounce; | 726 struct gaim_pounce *pounce; |
727 const char *buddy; | 727 const char *buddy; |
728 | 728 |