mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-12 06:19:19 +03:00
1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_file_list_size_allocate_hook): Now we connect_after to the size_allocate signal and block the handler. Things are still not perfect, though.
This commit is contained in:
parent
b440a3ee43
commit
df4a6d6a3e
@ -1,5 +1,9 @@
|
||||
1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gscreen.c (panel_file_list_size_allocate_hook): Now we
|
||||
connect_after to the size_allocate signal and block the handler.
|
||||
Things are still not perfect, though.
|
||||
|
||||
* gtools.c (message): Added return NULL. This needs to be fixed.
|
||||
(translate_gdk_keysym_to_curses): FIXME: Replace KEY_BACKTAB by '\t'
|
||||
while KEY_BACKTAB is added somewhere else.
|
||||
|
@ -512,7 +512,9 @@ panel_file_list_compute_lines (GtkCList *file_list, WPanel *panel, int height)
|
||||
static void
|
||||
panel_file_list_size_allocate_hook (GtkWidget *file_list, GtkAllocation *allocation, WPanel *panel)
|
||||
{
|
||||
gtk_signal_handler_block_by_data (GTK_OBJECT (file_list), panel);
|
||||
panel_file_list_configure_contents (file_list, panel, allocation->width, allocation->height);
|
||||
gtk_signal_handler_unblock_by_data (GTK_OBJECT (file_list), panel);
|
||||
|
||||
panel_file_list_compute_lines (GTK_CLIST (file_list), panel, allocation->height);
|
||||
}
|
||||
@ -780,18 +782,18 @@ panel_create_file_list (WPanel *panel)
|
||||
clist = GTK_CLIST (file_list);
|
||||
panel_configure_file_list (panel, file_list);
|
||||
free (titles);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (file_list),
|
||||
"size_allocate",
|
||||
GTK_SIGNAL_FUNC (panel_file_list_size_allocate_hook),
|
||||
|
||||
gtk_signal_connect_after (GTK_OBJECT (file_list), "size_allocate",
|
||||
GTK_SIGNAL_FUNC (panel_file_list_size_allocate_hook),
|
||||
panel);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (file_list), "realize",
|
||||
GTK_SIGNAL_FUNC (panel_realized),
|
||||
panel);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (file_list),
|
||||
"realize",
|
||||
GTK_SIGNAL_FUNC (panel_realized), panel);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (file_list), "select_row",
|
||||
GTK_SIGNAL_FUNC (panel_file_list_select_row), panel);
|
||||
GTK_SIGNAL_FUNC (panel_file_list_select_row),
|
||||
panel);
|
||||
return file_list;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user