From: Luke S. <lsc...@us...> - 2002-10-11 02:05:49
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv12905/src Modified Files: conversation.c Log Message: you cannot declare variables in the middle of a block of code in c javabsp. Index: conversation.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/conversation.c,v retrieving revision 1.388 retrieving revision 1.389 diff -u -d -r1.388 -r1.389 --- conversation.c 11 Oct 2002 01:56:45 -0000 1.388 +++ conversation.c 11 Oct 2002 02:05:47 -0000 1.389 @@ -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"); } |