Commit Graph

8 Commits

Author SHA1 Message Date
Pavel Roskin 6db8e6158c * gfind.c (get_list_info): Get row number as argument. Return
boolean - FALSE if cannot find the row.  Calculate line number.
Change all callers.
(find_do_view_edit): Simplify.  Get line number as argument.
(find_do_view): Close the dialog because it's modal and prevents
user from interacting with other windows.
(find_do_edit): Likewise.
(setup_gui): Enable panelize button.  Improve look.
(find_panelize): New function.  Implement panelize.
(find_file): Add support for view, edit and panelize commands.
(do_find): Likewise.  Simplify.
(add_to_list): Block "select_row" signal until data is set.
2001-07-26 23:32:54 +00:00
Pavel Roskin b734c85b0a * gfind.c (GFindDlg): Add last_dir_row field for the last
directory row.
(add_to_list): Last argument is now boolean, FALSE for files,
TRUE for directories.  Change all callers.  Use item data for
the row of the last directory.
(select_row): Enable `view' and `edit' buttons for files only,
`change' button for all entries.
(setup_gui): Set selection mode to GTK_SELECTION_BROWSE.  Make
`change' button inactive.  Don't hide `view' and `edit' buttons.
(get_list_info): Look up directory using list item data.
2001-07-26 19:49:11 +00:00
Pavel Roskin 67dbee53ed * gfind.c (find_parameters): Fix behavior of the Enter key.
Select initial values in the text entries.
2001-07-26 17:56:07 +00:00
Pavel Roskin 2e136f7ec9 * gfind.c (setup_gui): Register destroy handler.
(find_destroy): New function.  Unregister idle task if needed.
(find_do_chdir): Don't unregister idle task.
(find_do_again): Likewise.
(find_do_panelize): Likewise.
2001-07-20 06:07:27 +00:00
Pavel Roskin ae5de08b1d * gfind.c (insert_file) : Join with find_add_match().
(find_do_edit): Put g_status_label into a box to work around
what appears to be a bug in gtk-1.2.10.
2001-07-20 05:17:08 +00:00
Pavel Roskin b2c12031c0 * gfind.c: Move most static variables to a structure, use it
in signal callbacks.  All dependencies adjusted.  Don't truncate
filenames.
2001-07-16 21:37:47 +00:00
Pavel Roskin 0841b4d586 * gfind.c (run_process): Interpret "Ok" button as "Cancel".
Set g_find_dlg to NULL if it has been closed.
(kill_gui): Don't destroy already destroyed dialog.
(find_file): Onle read directory and filename if needed.
(do_find): Break loop on B_EXIT.
2001-07-16 02:45:46 +00:00
Pavel Roskin 2f9f1bb380 * gfind.c: New file - copied from find.c. Reindent, remove
unneeded parts.  Rewrite find_parameters() to use GNOME dialog.
* layout: Remove usused entries.
* Makefile.in: Use gfind.c, not find.c.
2001-07-14 21:14:01 +00:00