[gq-commit] gq/src browse.c,1.89,1.90
Status: Beta
Brought to you by:
sur5r
From: <sta...@us...> - 2003-10-28 00:13:32
|
Update of /cvsroot/gqclient/gq/src In directory sc8-pr-cvs1:/tmp/cvs-serv2797 Modified Files: browse.c Log Message: * Improve handling of cancelled state restoration Index: browse.c =================================================================== RCS file: /cvsroot/gqclient/gq/src/browse.c,v retrieving revision 1.89 retrieving revision 1.90 diff -C2 -d -r1.89 -r1.90 *** browse.c 24 Oct 2003 19:17:47 -0000 1.89 --- browse.c 27 Oct 2003 22:16:19 -0000 1.90 *************** *** 493,509 **** } ! if (gutter > 0) { ! gtk_paned_set_position(GTK_PANED(BROWSETAB(tab)->mainpane), gutter); ! } ! ! tmp = g_malloc(strlen(state_name) + 10); ! strcpy(tmp, state_name); ! strcat(tmp, ".input"); ! ! if (BROWSETAB(tab)->inputform) { ! restore_input_snapshot(BROWSETAB(tab)->inputform, tmp); } - - g_free(tmp); } --- 493,512 ---- } ! if (!progress->cancelled) { ! if (gutter > 0) { ! gtk_paned_set_position(GTK_PANED(BROWSETAB(tab)->mainpane), ! gutter); ! } ! ! tmp = g_malloc(strlen(state_name) + 10); ! strcpy(tmp, state_name); ! strcat(tmp, ".input"); ! ! if (BROWSETAB(tab)->inputform) { ! restore_input_snapshot(BROWSETAB(tab)->inputform, tmp); ! } ! ! g_free(tmp); } } |