mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-27 04:34:34 +03:00
1999-01-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_fill_panel_list): Assertion that will pin point if a CList gets out of sync with the panel->format. 1999-01-01 Momchil 'Velco' Velikov <velco@fadata.bg> * gscreen.c (panel_fill_panel_list): NULL terminate the column array. This is strange, as it should not need the ending NULL. 1999-01-01 Jonathan Blandford <jrb@redhat.com>
This commit is contained in:
parent
7d18cb2d83
commit
597881b50f
@ -1,3 +1,13 @@
|
||||
1999-01-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gscreen.c (panel_fill_panel_list): Assertion that will pin point
|
||||
if a CList gets out of sync with the panel->format.
|
||||
|
||||
1999-01-01 Momchil 'Velco' Velikov <velco@fadata.bg>
|
||||
|
||||
* gscreen.c (panel_fill_panel_list): NULL terminate the column
|
||||
array. This is strange, as it should not need the ending NULL.
|
||||
|
||||
1999-01-01 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gcmd.c ((GtkWidget *widget, WPanel *panel): Now hooked up
|
||||
|
@ -163,7 +163,7 @@ panel_fill_panel_list (WPanel *panel)
|
||||
int i, col, type_col, color;
|
||||
char **texts;
|
||||
|
||||
texts = malloc (sizeof (char *) * items);
|
||||
texts = malloc (sizeof (char *) * (items+1));
|
||||
|
||||
gtk_clist_freeze (GTK_CLIST (cl));
|
||||
gtk_clist_clear (GTK_CLIST (cl));
|
||||
@ -171,6 +171,9 @@ panel_fill_panel_list (WPanel *panel)
|
||||
/* which column holds the type information */
|
||||
type_col = -1;
|
||||
|
||||
g_assert (items == GTK_CLIST (cl->columns));
|
||||
|
||||
texts [items] = NULL;
|
||||
for (i = 0; i < top; i++){
|
||||
file_entry *fe = &panel->dir.list [i];
|
||||
format_e *format = panel->format;
|
||||
|
Loading…
x
Reference in New Issue
Block a user