comparison src/gtkstatusbox.c @ 13803:25a09aff5dde

[gaim-migrate @ 16217] The last of SF Patch #1500267 from Sadrul "if you press Escape when changing the status, it discards the changes and restores the statusbox to reflect current status." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 04 Jun 2006 08:19:51 +0000
parents a93eeef163a9
children 0a1132e6eac4
comparison
equal deleted inserted replaced
13802:a93eeef163a9 13803:25a09aff5dde
736 GTK_DIR_TAB_BACKWARD: GTK_DIR_TAB_FORWARD); 736 GTK_DIR_TAB_BACKWARD: GTK_DIR_TAB_FORWARD);
737 return TRUE; 737 return TRUE;
738 } 738 }
739 if (!status_box->typing != 0) 739 if (!status_box->typing != 0)
740 return FALSE; 740 return FALSE;
741
742 /* Reset the status if Escape was pressed */
743 if (event->keyval == GDK_Escape)
744 {
745 g_source_remove(status_box->typing);
746 status_box->typing = 0;
747 status_menu_refresh_iter(status_box);
748 return TRUE;
749 }
750
741 gtk_gaim_status_box_pulse_typing(status_box); 751 gtk_gaim_status_box_pulse_typing(status_box);
742 g_source_remove(status_box->typing); 752 g_source_remove(status_box->typing);
743 status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); 753 status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box);
744 754
745 return FALSE; 755 return FALSE;