Mercurial > pidgin
comparison src/gtkconv.c @ 5860:52d5fad43950
[gaim-migrate @ 6291]
Fixed a couple of run-time type check warnings.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 14 Jun 2003 06:38:30 +0000 |
parents | 96e5b32e75ad |
children | 059d95c67cda |
comparison
equal
deleted
inserted
replaced
5859:022786c7ab53 | 5860:52d5fad43950 |
---|---|
2014 | 2014 |
2015 g_return_val_if_fail(g_list_find(gaim_get_windows(), win) != NULL, FALSE); | 2015 g_return_val_if_fail(g_list_find(gaim_get_windows(), win) != NULL, FALSE); |
2016 | 2016 |
2017 conv = gaim_window_get_active_conversation(win); | 2017 conv = gaim_window_get_active_conversation(win); |
2018 | 2018 |
2019 g_return_val_if_fail(conv != NULL, FALSE); | 2019 if (conv == NULL) |
2020 return FALSE; | |
2020 | 2021 |
2021 account = gaim_conversation_get_account(conv); | 2022 account = gaim_conversation_get_account(conv); |
2022 gtkwin = GAIM_GTK_WINDOW(win); | 2023 gtkwin = GAIM_GTK_WINDOW(win); |
2023 | 2024 |
2024 g_return_val_if_fail(account != NULL, FALSE); | 2025 g_return_val_if_fail(account != NULL, FALSE); |
3680 if (!new_ui) | 3681 if (!new_ui) |
3681 g_object_unref(gtkconv->tab_cont); | 3682 g_object_unref(gtkconv->tab_cont); |
3682 | 3683 |
3683 if (gaim_window_get_conversation_count(win) == 1) | 3684 if (gaim_window_get_conversation_count(win) == 1) |
3684 g_timeout_add(0, (GSourceFunc)update_send_as_selection, win); | 3685 g_timeout_add(0, (GSourceFunc)update_send_as_selection, win); |
3685 | |
3686 } | 3686 } |
3687 | 3687 |
3688 static void | 3688 static void |
3689 gaim_gtk_remove_conversation(GaimWindow *win, GaimConversation *conv) | 3689 gaim_gtk_remove_conversation(GaimWindow *win, GaimConversation *conv) |
3690 { | 3690 { |