Commit Graph

8272 Commits

Author SHA1 Message Date
Miguel de Icaza 4a883be09e 1998-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (filter_item_activate): Make it convert the glob
	pattern to a regexp if appropriate.

1998-03-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* util.c (convert_pattern): Now the internal buffer is malloc()ed
	instead of being static.  This is required for long patterns.
	(regexp_match): Free the pattern after calling convert_pattern().

	* file.c (file_mask_dialog): Free the source_mask after calling
	convert_pattern().
1998-03-17 00:24:52 +00:00
Miguel de Icaza 9d4987c84b Mon Mar 16 13:03:45 1998 Pavel Roskin <pavel@absolute.spb.su>
* cmd.c: Internal edit is used by default. vi may be
        confusing for some users.

	* tree.c: tree_rmdir_cmd() should not return any value,
        because it is not analyzed for errors.

	* main.c: NT code: use O_BINARY instead of _O_BINARY

	* util.c: DO not test for arguments that do not make sense under
	Windows NT.

	* file.c: utime.h always included for Windows NT port.

	* view.c: Events are flushed only if the ports supports it.


Lots of Windows/NT changes, but I will let Pavlov write the ChangeLog
entries.

Mon Mar 16 13:05:47 1998  Pavel Roskin <pavel@absolute.spb.su>

	* tkview.c: Include stdio.h;  Minor spelling corrections added.
1998-03-16 19:09:24 +00:00
Miguel de Icaza 9c3a48bbf6 Mon Mar 16 12:30:39 1998 Stas Maximov <stmax@u213.srcc.msu.su>
* hotlist.c: Defaults on the hotlist add-current and new-entry is
	the current directory.
1998-03-16 18:37:45 +00:00
Miguel de Icaza 51900cea50 Fix several bugglets as reported by Tom. -miguel 1998-03-14 23:20:51 +00:00
Miguel de Icaza 5b49482824 Added contributed enhanced CPIO support + dialog box fixes for gnome -mig 1998-03-14 22:36:06 +00:00
Miguel de Icaza ade5223b23 Viewer is nicer; Viewer is gnome-app; Viewer gets lots of options; Code gets cleaned -miguel 1998-03-14 00:42:23 +00:00
Miguel de Icaza 347f04ec92 1998-03-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_select_item): Make it use GTK_VISIBILITY_FULL
	instead of a plain boolean value.
	* gwidget.c (x_listbox_select_nth): Likewise.
1998-03-14 00:20:17 +00:00
Miguel de Icaza c90b068d58 1998-03-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (filter_items): New global variable full of filters.
	Please, someone fill in the regexp parts, as I was too lazy to do
	them :-)
	(panel_create_filter): Now the filter has a very nice button that
	pops up a menu for selecting the filter.
1998-03-13 22:58:10 +00:00
Miguel de Icaza bf937d0377 Duh, I missed gcmd.c -miguel 1998-03-13 17:28:06 +00:00
Miguel de Icaza 480616917c Missing file 1998-03-13 05:20:55 +00:00
Miguel de Icaza 022b293b39 Weeeeeeeeee!
Filter widget on the main window works!
Switched to use GnomeEntry instead of GtkEntry

It really kicks KFM's ass.

-Miguel.
1998-03-13 05:18:52 +00:00
Miguel de Icaza 791b34236c Wow! The file manager looks so slick!
Today:
	- New Menu layout!  Weeee!.
	- More mc commands exposed to the GNOME edition.
	- Use gnome stock pixmap buttons.
	- Use gnome stock for the menus.
	- Now it is possible to quit the program :-)
	- Various other bits.

If you can test it, I would appreciate it.

-Miguel.
1998-03-13 03:44:54 +00:00
Miguel de Icaza 1ee3e159aa 1998-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.c (update_region): Added clipping of region bounds.
1998-03-13 03:02:10 +00:00
Miguel de Icaza 6e4e6e029e oops, forgot to commit changelog - Federico 1998-03-13 02:30:03 +00:00
Miguel de Icaza c7ad193388 1998-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.c (gmc_char_grid_draw): Someone teach me how to
	subtract.  Fixed a stupid offsetting bug.
1998-03-13 02:29:39 +00:00
Miguel de Icaza 060c686981 Fix so that GView works for federico -mig 1998-03-13 01:48:04 +00:00
Miguel de Icaza 276761aa48 1998-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.c: Changed the struct attr with pointers mess with
	something saner.
	Added an in_resize flag to avoid calling our internal signal
	handlers recursively.
	(gmc_char_grid_draw): Added proper draw handler for our case; the
	widget's window does not fill its allocation.
	(paint): New wrapper for update_region(); it converts window
	coordinates to row/column character coordinates.
	(gmc_char_grid_expose): Use paint().
1998-03-13 00:56:24 +00:00
Norbert Warmuth 6356184c04 Wed Mar 12 17:46:09 1998 Norbert Warmuth <k3190@fh-sw.de>
* screen.c (chdir_other_panel, chdir_to_readlink): Use passed
panel instead of cpanel (removed mixed use of panel and cpanel).

* main.c, screen.c: Deleted F13 from the default keymap, added F13
and F14 to the panel's keymap (the keymap for panels in listing
mode). These two keys are only useful for panels in listing mode.
It seems there are even more candidates for such a move. Especially
select_cmd and unselect_cmd which appeared recently for the GNOME
edition in screen.c act unexpected for panels in tree-mode.

* cmd.c (view_simple_cmd): Added WPanel* to the parameter list.

(edit_cmd_new): No need to get a panel because it is not used.

* panelize.c: Changed hotkey of the Panelize button (Alt-p is
already used by the input line history). I wonder if I should
change it in the find dialog, too (just to have a unique hotkey
for the panelize button).
1998-03-12 17:21:12 +00:00
Miguel de Icaza a65ce95420 More fixes to viewer repainting - Federico 1998-03-12 06:02:21 +00:00
Miguel de Icaza 7f8b2fde99 More icons -mig 1998-03-12 06:00:16 +00:00
Miguel de Icaza b4332cc177 Context menu is now smarter :-)
Context menu rearranged
Removed dead code
Shapped drag and drop
Different drag and drop icons depending on single/multiple drags
Artificial dnd is here (Thanks Elliot!)
cwd displays something interesting
Beginning of the internal viewer status display.

-miguel.
1998-03-12 05:59:43 +00:00
Miguel de Icaza fb090050df Missing file :-) -mig 1998-03-12 03:50:42 +00:00
Miguel de Icaza ad1610c2e3 Viewer works; Entry widgets are synced with selection;
panel fills properly (fixes a bunch of file operations); more dialog
boxes exported to the gnome edition -mig
1998-03-12 03:29:45 +00:00
Miguel de Icaza 11099ee712 1998-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.c (gmc_char_grid_get_size): New public function.
	(gmc_char_grid_put_text): New public function.  It is the same as
	gmc_char_grid_put_str, but can take any arbitrary string plus its
	length.
	(gmc_char_grid_put_char, gmc_char_grid_put_str,
	gmc_char_grid_put_text): These functions now take a background
	pixel parameter --- the GmcCharGrid widget now supports fg/bg attributes.

	* gmc-chargrid.h: Changed colors field to attrs.
1998-03-12 02:28:12 +00:00
Miguel de Icaza c3b299f39a 1998-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.h:
	* gmc-chargrid.c: New Character Grid widget for the file viewer.
	This is a very lean and fast widget for displaying a grid of
	monospaced characters.  Just like a crippled-down terminal.
1998-03-11 22:50:29 +00:00
Miguel de Icaza d934dc4afe get_other_type works; sort order box works; rescan works; filter
is enabled; virtual fs setup dialog box is up; save setup; mkdir

link command is hossed.  It is more than hossed for some stoopid
reason, the thing is selecting the first file in the panel
just after I talked to it.  No matter how argumentative I get
with the code.  Have to fix next.

Commit the bits I forgot to commit yesterday.
-miguel.
1998-03-11 05:55:05 +00:00
Miguel de Icaza df4a6d6a3e 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.
1998-03-10 22:34:28 +00:00
Miguel de Icaza b440a3ee43 Cropped link icon - Federico 1998-03-10 21:28:36 +00:00
Miguel de Icaza 1f96bb467b Cropped and added transparency to device icon - Federico 1998-03-10 21:19:11 +00:00
Miguel de Icaza 4dd40872d9 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* 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.
	(translate_gdk_keysym_to_curses): return -1 as last resort.

	* glayout.c (get_current_index): Add g_assert_not_reached() for
	fatal case.

	* gmenu.c (menubar_new): Cast g_menubar to unsigned long.

	* gwidget.c (x_create_input): Cast entry to GTK_OBJECT.

	* gkey.c (find_select_closure_callback): Fix = -> == typo.

1998-03-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* xslint.c (getch): Added missing "return".

	* utilunix.c (init_groups): Added parentheses around
	assignment/truth value.

	* boxes.c: #include <stdlib.h>

	* screen.c (string_inode): Cast fe->buf.st_ino to long to be
	consistent with sprintf format.

	* main.c (handle_args): Added parentheses around assignment/truth value.
1998-03-10 21:10:30 +00:00
Miguel de Icaza 49eda3f828 Forgot the pixmaps :-) 1998-03-10 20:55:01 +00:00
Miguel de Icaza c330992ae1 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
1998-03-10 20:14:17 +00:00
Miguel de Icaza c6d65c1bd3 Add a couple of icons for devices and symlinks 1998-03-10 06:31:01 +00:00
Miguel de Icaza e78e0bd556 1998-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_panel_select_item): Set the colors of the row.
1998-03-10 04:45:35 +00:00
Miguel de Icaza 3f4a2d0830 Add ChangeLog 1998-03-10 01:54:14 +00:00
Miguel de Icaza 768e9596b4 1998-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.c (xtoolkit_init): Changed gnome_init() to new version.
	(xtoolkit_init): Call gnome_init() properly.  Also, return 0.
1998-03-10 01:50:55 +00:00
Miguel de Icaza 8ba83a3921 Sat Mar 7 15:24:49 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (entry_click): Focus the entry on clicks.
1998-03-07 21:24:48 +00:00
Miguel de Icaza 2dc8839548 more, more .cvsignore files 1998-03-07 20:42:20 +00:00
Miguel de Icaza 179eae1dd0 More .cvsignore for mc 1998-03-07 20:40:21 +00:00
Miguel de Icaza 74c6330a30 Sat Mar 7 14:43:27 1998 Pavel Roskin <pavel@absolute.spb.su>
* nt/Makefile.NT, nt/Makefile.VC4: rewritten for GNU make.
        Use gmake -f Makefile.VC4 to compile.

        * nt/*.c: config.h is included before all other code.

        * nt/config.h: added some definitions, because some
        compilers don't accept long command lines.

        * nt/Makefile.VC1: removed :-( It didn't work anyways.

        * nt/slint.nt.c: can be compiled under OS/2 too

        * nt/key.nt.c: correct_key_code was called twice. Shifted
        functional keys supported. Alt-F1 and Alt-F2 work as F11 and F12.
        Alt-F7 works as Shift-Alt-? (used for find file). Function
        alt_pressed() and ctrl_pressed() introduced.
1998-03-07 20:36:45 +00:00
Miguel de Icaza 177bbf7262 .cvsignores for the Midnight Commander 1998-03-07 20:34:15 +00:00
Miguel de Icaza b52d3a73ca Sat Mar 7 14:33:38 1998 Pavel Roskin <pavel@absolute.spb.su>
* src/complete.c: obsolete hack for OS/2 and NT removed.
        Completion works for NT now (not very good)

        * src/main.c: HOME variable is respected by NT and OS/2
        versions. If it is missing, we use LIBDIR on OS2_NT and "/"
        on Unix.

        * src/key.h: SHIFT_PRESSED is set to 0x0010 on NT. This value
        doesn't conflict with definitions for ALT and CTRL, but it is
        SDK-compatible.

        * vfs/vfs.h: Minor changes for OS/2. EMX defines mkdir with
        2 arguments

        * vfs/tcputil,c, vfs/utilvfs.c: signal.h was includes twice.

        * vfs/Makefile.in: undelfs.h is not used and should disapper

        * slang/slos2tty.c: new file, copied from SLang-0.99.38,
        needed for OS/2 port

        * slang/Makefile.in: added slos2tty.c

        * vfs/extfs/README: annoying spell errors corrected

        * src/main.c: --termcap disabled for OS2_NT because it doesn't
        (and cannot) work. ARCH_FLAGS is not needed anymore.

        * src/text.c: most includes removed. Added a warning is someone
        compiles this file with HAVE_X. Improved color scheme for
        consoles with 16 background colors (e.g. OS/2). Hack for OS/2
        removed.

        * src/util.c, src/util.h: STRCOMP and MC_ARCH_FLAGS are moved
        to util.h. It may be useful to use them for filenames' completion
        on OS2_NT
1998-03-07 20:27:44 +00:00
Miguel de Icaza 1a9884eb13 Sat Mar 7 14:19:29 1998 Pavel Roskin <pavel@absolute.spb.su>
* os2/Makefile.OS2, os2/Makefile.EMX: new files. Use
        "gmake -f Makefile.EMX" to compile

        * os2/slint.os2.c: copied from ../nt/slint.nt.c

        * os2/direct.h: dummy file. Replaces douzen of other dummy
        files :-)

        * os2/Makefile: list of distibution files corrected

        * os2/drive.os2.c, os2/chmod.os2.c: button_new() calls
        updated

        * os2/*: many minor changes for EMX.
1998-03-07 20:12:44 +00:00
Miguel de Icaza 057f69beae Lots of fixes: screen layout is much nicer on the GNOME edition now;
Listbox widget fully implemented;

MC Idle handlers implemented

Find command now works;

Changing the listing mode works;

various other bug fixes.
1998-03-07 03:02:01 +00:00
Miguel de Icaza 566c79dc42 *** empty log message *** 1998-03-07 00:05:06 +00:00
Miguel de Icaza 5cf9dcb99e 1998-03-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.c (get_color): Make it use GdkColorContext correctly.
1998-03-06 19:42:57 +00:00
Miguel de Icaza b29aba8ae1 1998-03-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_create_filter): The filter control is now a
nice GnomeEntry.  It does not work due to gmc trapping key events;
I'll look into it tomorrow.
(internal_select_item): Fixed broken behavior.  Now uses GtkCList properly.
default_filters: new structure with pre-defined glob patterns.
This is actually broken, because it will only work when
easy_patterns is enabled.  I have to figure a way to make it work
with regexp mode as well.
1998-03-06 06:42:43 +00:00
Miguel de Icaza 33929b0be0 Make it compile - miguel 1998-03-06 06:16:30 +00:00
Miguel de Icaza 73ba8fe2d5 Panels support drops now + some other changes 1998-03-06 06:03:30 +00:00
Miguel de Icaza 3fd0916a1d remove configure from the cvs repository 1998-03-06 04:19:05 +00:00