# HG changeset patch # User Luke Schierer # Date 1034301947 0 # Node ID 74ed52a818a16c96a0e3f055da53a0371c15b3c6 # Parent 639411e6a4cdb786e2d8b530656ea499f1590ea8 [gaim-migrate @ 3751] you cannot declare variables in the middle of a block of code in c javabsp. committer: Tailor Script diff -r 639411e6a4cd -r 74ed52a818a1 src/conversation.c --- a/src/conversation.c Fri Oct 11 01:56:45 2002 +0000 +++ b/src/conversation.c Fri Oct 11 02:05:47 2002 +0000 @@ -839,6 +839,7 @@ { int pos; gboolean key_is_typing = TRUE; + GtkWidget *notebook = NULL; if (event->keyval == GDK_Escape) { key_is_typing = FALSE; @@ -1090,7 +1091,7 @@ (c->is_chat && (chat_options & OPT_CHAT_ONE_WINDOW))) && (event->state & GDK_MOD1_MASK) && (event->keyval > '0') && (event->keyval <= '9')) { key_is_typing = FALSE; - GtkWidget *notebook = (c->is_chat ? chat_notebook : convo_notebook); + notebook = (c->is_chat ? chat_notebook : convo_notebook); gtk_notebook_set_page(GTK_NOTEBOOK(notebook), event->keyval - '1'); gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); }