Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 4369:7e1fb422e5fd
[gaim-migrate @ 4635]
Fixes a couple crash bugs. We're getting there!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 20 Jan 2003 22:39:39 +0000 |
parents | 9c83a731a3ea |
children | d856987c72ca |
comparison
equal
deleted
inserted
replaced
4368:9c83a731a3ea | 4369:7e1fb422e5fd |
---|---|
1648 | 1648 |
1649 gtkwin->in_drag = FALSE; | 1649 gtkwin->in_drag = FALSE; |
1650 | 1650 |
1651 dnd_hints_hide_all(); | 1651 dnd_hints_hide_all(); |
1652 | 1652 |
1653 dest_win = gaim_gtkwin_get_at_xy(e->x_root, e->y_root); | 1653 dest_win = gaim_gtkwin_get_at_xy(e->x_root, e->y_root); |
1654 dest_gtkwin = GAIM_GTK_WINDOW(dest_win); | |
1655 | 1654 |
1656 conv = gaim_window_get_active_conversation(win); | 1655 conv = gaim_window_get_active_conversation(win); |
1657 | 1656 |
1658 if (dest_win == NULL) { | 1657 if (dest_win == NULL) { |
1659 if (gaim_window_get_conversation_count(win) < 2) | 1658 if (gaim_window_get_conversation_count(win) < 2) |
1670 gaim_window_show(new_win); | 1669 gaim_window_show(new_win); |
1671 } | 1670 } |
1672 | 1671 |
1673 return TRUE; | 1672 return TRUE; |
1674 } | 1673 } |
1674 | |
1675 dest_gtkwin = GAIM_GTK_WINDOW(dest_win); | |
1675 | 1676 |
1676 /* Get the destination notebook. */ | 1677 /* Get the destination notebook. */ |
1677 dest_notebook = GTK_NOTEBOOK(gtkwin->notebook); | 1678 dest_notebook = GTK_NOTEBOOK(gtkwin->notebook); |
1678 | 1679 |
1679 /* Get the destination page number. */ | 1680 /* Get the destination page number. */ |
3226 static void | 3227 static void |
3227 gaim_gtk_destroy_window(struct gaim_window *win) | 3228 gaim_gtk_destroy_window(struct gaim_window *win) |
3228 { | 3229 { |
3229 struct gaim_gtk_window *gtkwin = GAIM_GTK_WINDOW(win); | 3230 struct gaim_gtk_window *gtkwin = GAIM_GTK_WINDOW(win); |
3230 | 3231 |
3232 gaim_gtk_set_state_lock(TRUE); | |
3233 | |
3231 gtk_widget_destroy(gtkwin->window); | 3234 gtk_widget_destroy(gtkwin->window); |
3235 | |
3236 gaim_gtk_set_state_lock(FALSE); | |
3232 | 3237 |
3233 g_free(gtkwin); | 3238 g_free(gtkwin); |
3234 win->ui_data = NULL; | 3239 win->ui_data = NULL; |
3235 } | 3240 } |
3236 | 3241 |