diff options
Diffstat (limited to 'misc/gnomesword/files/patch-src::gnome2::tabbed_browser.c')
-rw-r--r-- | misc/gnomesword/files/patch-src::gnome2::tabbed_browser.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/gnomesword/files/patch-src::gnome2::tabbed_browser.c b/misc/gnomesword/files/patch-src::gnome2::tabbed_browser.c new file mode 100644 index 000000000000..52dd1d8f7527 --- /dev/null +++ b/misc/gnomesword/files/patch-src::gnome2::tabbed_browser.c @@ -0,0 +1,17 @@ +--- src/gnome2/tabbed_browser.c.orig Thu Jun 17 04:53:24 2004 ++++ src/gnome2/tabbed_browser.c Sat Aug 21 15:59:13 2004 +@@ -664,11 +664,13 @@ + */ + void gui_close_passage_tab(gint pagenum) + { ++ PASSAGE_TAB_INFO *pt; ++ + if (-1 == pagenum) + pagenum = gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets.notebook_main)); + if (1 == gtk_notebook_get_n_pages(GTK_NOTEBOOK(widgets.notebook_main))) + return; +- PASSAGE_TAB_INFO *pt = (PASSAGE_TAB_INFO*)g_list_nth_data(passage_list, (guint)pagenum); ++ pt = (PASSAGE_TAB_INFO*)g_list_nth_data(passage_list, (guint)pagenum); + passage_list = g_list_remove(passage_list, pt); + if(pt->text_mod) g_free(pt->text_mod); + if(pt->commentary_mod) g_free(pt->commentary_mod); |