]> git.0d.be Git - empathy.git/commitdiff
Assume GDK_KEY_PRESS in the default case
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 26 Jul 2011 03:36:18 +0000 (13:36 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 26 Jul 2011 03:36:18 +0000 (13:36 +1000)
Warn if making this assumption.

libempathy-gtk/empathy-chat.c

index 5f441af19bf5706b5b582640446f43b4fad3712c..032dd246417dcc3e16b0b175a9201414f8b00296 100644 (file)
@@ -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;