mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Tue Mar 10 14:01:47 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c * gscreen.c (x_adjust_top_file): We no longer adjust the top displayed filename. (panel_build_selected_file_list): Fix for the transfered data. (panel_drop_data_available): Now drop support uses the new coords.x and coords.y fields from the DropDataAvailableEvent to
This commit is contained in:
parent
c6d65c1bd3
commit
c330992ae1
@ -1,8 +1,15 @@
|
||||
Tue Mar 10 00:10:32 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
Tue Mar 10 14:01:47 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gscreen.c (panel_drop_data_available): Now drop support uses the
|
||||
new coords.x and coords.y fields from the DropDataAvailableEvent
|
||||
to find out which directory receives the drop.
|
||||
* gscreen.c
|
||||
|
||||
* gscreen.c (x_adjust_top_file): We no longer adjust the top
|
||||
displayed filename.
|
||||
|
||||
(panel_build_selected_file_list): Fix for the transfered data.
|
||||
|
||||
(panel_drop_data_available): Now drop support uses the new
|
||||
coords.x and coords.y fields from the DropDataAvailableEvent to
|
||||
find out which directory receives the drop.
|
||||
|
||||
* gwidget.c (x_radio_focus_item): Add support for focusing radio
|
||||
buttons.
|
||||
|
@ -31,8 +31,8 @@ char *default_edition_colors =
|
||||
"normal=black:"
|
||||
"directory=blue:"
|
||||
"marked=white,seagreen:"
|
||||
"execute=green:"
|
||||
"link=yellow:"
|
||||
"execute=slateblue:"
|
||||
"link=green:"
|
||||
"device=magenta:"
|
||||
"core=red:"
|
||||
"special=black";
|
||||
|
@ -179,8 +179,10 @@ x_select_item (WPanel *panel)
|
||||
|
||||
gtk_clist_select_row (clist, panel->selected, 0);
|
||||
|
||||
if (!gtk_clist_row_is_visible (clist, panel->selected))
|
||||
if (!gtk_clist_row_is_visible (clist, panel->selected)){
|
||||
printf ("No fue visible %d\n", panel->selected);
|
||||
gtk_clist_moveto (clist, panel->selected, 0, 0.5, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@ -199,7 +201,7 @@ x_filter_changed (WPanel *panel)
|
||||
void
|
||||
x_adjust_top_file (WPanel *panel)
|
||||
{
|
||||
gtk_clist_moveto (GTK_CLIST (panel->list), panel->top_file, 0, 0.0, 0.0);
|
||||
/* gtk_clist_moveto (GTK_CLIST (panel->list), panel->top_file, 0, 0.0, 0.0); */
|
||||
}
|
||||
|
||||
#define COLUMN_INSET 3
|
||||
@ -447,7 +449,9 @@ internal_select_item (GtkWidget *file_list, WPanel *panel, int row)
|
||||
unselect_item (panel);
|
||||
panel->selected = row;
|
||||
gtk_signal_handler_block_by_data (GTK_OBJECT (file_list), panel);
|
||||
printf ("Selecttionando\n");
|
||||
select_item (panel);
|
||||
printf ("Post-selección\n");
|
||||
gtk_signal_handler_unblock_by_data (GTK_OBJECT (file_list), panel);
|
||||
}
|
||||
|
||||
@ -612,12 +616,13 @@ panel_build_selected_file_list (WPanel *panel, int *file_list_len)
|
||||
if (panel->dir.list [i].f.marked)
|
||||
total_len += (cwdlen + panel->dir.list [i].fnamelen + 1);
|
||||
|
||||
printf ("Total lenght: %d\n", total_len);
|
||||
data = copy = xmalloc (total_len, "build_selected_file_list");
|
||||
for (i = 0; i < panel->count; i++)
|
||||
if (panel->dir.list [i].f.marked){
|
||||
strcpy (copy, panel->cwd);
|
||||
copy [cwdlen] = '/';
|
||||
strcpy (© [cwdlen+1], panel->dir.list [i].fname);
|
||||
copy [cwdlen-1] = '/';
|
||||
strcpy (© [cwdlen], panel->dir.list [i].fname);
|
||||
copy += panel->dir.list [i].fnamelen + 1 + cwdlen;
|
||||
}
|
||||
*file_list_len = total_len;
|
||||
|
Loading…
Reference in New Issue
Block a user