Mercurial > pidgin
comparison src/gtkconv.c @ 4368:9c83a731a3ea
[gaim-migrate @ 4634]
Should prevent a segfault and the Add button tooltip issue.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 20 Jan 2003 21:54:46 +0000 |
parents | 6e96ced6fb78 |
children | 7e1fb422e5fd |
comparison
equal
deleted
inserted
replaced
4367:101fa831f52f | 4368:9c83a731a3ea |
---|---|
2473 setup_im_buttons(struct gaim_conversation *conv, GtkWidget *parent) | 2473 setup_im_buttons(struct gaim_conversation *conv, GtkWidget *parent) |
2474 { | 2474 { |
2475 struct gaim_connection *gc; | 2475 struct gaim_connection *gc; |
2476 struct gaim_gtk_conversation *gtkconv; | 2476 struct gaim_gtk_conversation *gtkconv; |
2477 struct gaim_gtk_im_pane *gtkim; | 2477 struct gaim_gtk_im_pane *gtkim; |
2478 struct gaim_gtk_window *gtkwin; | |
2479 GaimConversationType type = GAIM_CONV_IM; | 2478 GaimConversationType type = GAIM_CONV_IM; |
2480 | 2479 |
2481 gtkconv = GAIM_GTK_CONVERSATION(conv); | 2480 gtkconv = GAIM_GTK_CONVERSATION(conv); |
2482 gtkim = gtkconv->u.im; | 2481 gtkim = gtkconv->u.im; |
2483 gtkwin = GAIM_GTK_WINDOW(gaim_conversation_get_window(conv)); | |
2484 gc = gaim_conversation_get_gc(conv); | 2482 gc = gaim_conversation_get_gc(conv); |
2485 | 2483 |
2486 /* From right to left... */ | 2484 /* From right to left... */ |
2487 | 2485 |
2488 /* Send button */ | 2486 /* Send button */ |
2522 | 2520 |
2523 /* Warn button */ | 2521 /* Warn button */ |
2524 gtkim->warn = gaim_gtk_change_text(_("Warn"), gtkim->warn, | 2522 gtkim->warn = gaim_gtk_change_text(_("Warn"), gtkim->warn, |
2525 GAIM_STOCK_WARN, type); | 2523 GAIM_STOCK_WARN, type); |
2526 gtk_box_pack_start(GTK_BOX(parent), gtkim->warn, FALSE, FALSE, 0); | 2524 gtk_box_pack_start(GTK_BOX(parent), gtkim->warn, FALSE, FALSE, 0); |
2527 gtk_tooltips_set_tip(gtkconv->tooltips, gtkim->add, | |
2528 _("Remove buddy"), NULL); | |
2529 | 2525 |
2530 /* Info button */ | 2526 /* Info button */ |
2531 gtkconv->info = gaim_gtk_change_text(_("Info"), gtkconv->info, | 2527 gtkconv->info = gaim_gtk_change_text(_("Info"), gtkconv->info, |
2532 GAIM_STOCK_INFO, type); | 2528 GAIM_STOCK_INFO, type); |
2533 gtk_box_pack_start(GTK_BOX(parent), gtkconv->info, FALSE, FALSE, 0); | 2529 gtk_box_pack_start(GTK_BOX(parent), gtkconv->info, FALSE, FALSE, 0); |