mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-12 14:29:41 +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>
|
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.
|
* gtools.c (message): Added return NULL. This needs to be fixed.
|
||||||
(translate_gdk_keysym_to_curses): FIXME: Replace KEY_BACKTAB by '\t'
|
(translate_gdk_keysym_to_curses): FIXME: Replace KEY_BACKTAB by '\t'
|
||||||
while KEY_BACKTAB is added somewhere else.
|
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
|
static void
|
||||||
panel_file_list_size_allocate_hook (GtkWidget *file_list, GtkAllocation *allocation, WPanel *panel)
|
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);
|
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);
|
panel_file_list_compute_lines (GTK_CLIST (file_list), panel, allocation->height);
|
||||||
}
|
}
|
||||||
@ -781,17 +783,17 @@ panel_create_file_list (WPanel *panel)
|
|||||||
panel_configure_file_list (panel, file_list);
|
panel_configure_file_list (panel, file_list);
|
||||||
free (titles);
|
free (titles);
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (file_list),
|
gtk_signal_connect_after (GTK_OBJECT (file_list), "size_allocate",
|
||||||
"size_allocate",
|
|
||||||
GTK_SIGNAL_FUNC (panel_file_list_size_allocate_hook),
|
GTK_SIGNAL_FUNC (panel_file_list_size_allocate_hook),
|
||||||
panel);
|
panel);
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (file_list),
|
gtk_signal_connect (GTK_OBJECT (file_list), "realize",
|
||||||
"realize",
|
GTK_SIGNAL_FUNC (panel_realized),
|
||||||
GTK_SIGNAL_FUNC (panel_realized), panel);
|
panel);
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (file_list), "select_row",
|
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;
|
return file_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user