comparison src/gtkimhtml.c @ 2071:0fd338304759

[gaim-migrate @ 2081] I was experiencing a fun little segfault under certainc onditions (when an image was a link and you mouse over it). I created this fix. Remove it if you hate it. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Tue, 17 Jul 2001 04:25:41 +0000
parents 391440022697
children 75c06bcb022e
comparison
equal deleted inserted replaced
2070:c0994df57443 2071:0fd338304759
1162 else if (x < 0) 1162 else if (x < 0)
1163 x = 0; 1163 x = 0;
1164 1164
1165 if ((y + h + + 4) > scr_h) 1165 if ((y + h + + 4) > scr_h)
1166 y = y - imhtml->tip_bit->font->ascent + imhtml->tip_bit->font->descent; 1166 y = y - imhtml->tip_bit->font->ascent + imhtml->tip_bit->font->descent;
1167 else 1167 else
1168 y = y + imhtml->tip_bit->font->ascent + imhtml->tip_bit->font->descent; 1168 if (imhtml->tip_bit->font)
1169 y = y + imhtml->tip_bit->font->ascent + imhtml->tip_bit->font->descent;
1170 else
1171 y = y + style->font->ascent + style->font->descent;
1169 1172
1170 gtk_widget_set_usize (imhtml->tip_window, w, h); 1173 gtk_widget_set_usize (imhtml->tip_window, w, h);
1171 gtk_widget_set_uposition (imhtml->tip_window, x, y); 1174 gtk_widget_set_uposition (imhtml->tip_window, x, y);
1172 gtk_widget_show (imhtml->tip_window); 1175 gtk_widget_show (imhtml->tip_window);
1173 1176