diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-07-26 11:36:18 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-07-26 11:36:18 +0800 |
commit | 5beda725e1aff0da12703e2f51cdb4b95c63b321 (patch) | |
tree | 1844a471822bf365bf34dd31203d487fc2dbcc16 /libempathy-gtk | |
parent | 3b225294da4fb6f57d147f83c7ed78c8a44f0aec (diff) | |
download | gsoc2013-empathy-5beda725e1aff0da12703e2f51cdb4b95c63b321.tar.gz gsoc2013-empathy-5beda725e1aff0da12703e2f51cdb4b95c63b321.tar.zst gsoc2013-empathy-5beda725e1aff0da12703e2f51cdb4b95c63b321.zip |
Assume GDK_KEY_PRESS in the default case
Warn if making this assumption.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 5f441af19..032dd2464 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -2245,14 +2245,16 @@ chat_input_populate_popup_cb (GtkTextView *view, &iter, x, y); break; + default: + g_warn_if_reached (); + /* assume the KEY_PRESS case */ + case GDK_KEY_PRESS: /* get the location from the cursor */ gtk_text_buffer_get_iter_at_mark (buffer, &iter, gtk_text_buffer_get_insert (buffer)); break; - default: - break; } start = end = iter; |