Commit Graph

61 Commits

Author SHA1 Message Date
Timur Bakeyev
be7cbf3768 Glibing... (3)
Wed Jan 27 03:14:46 1999  Timur Bakeyev <mc@bat.ru>

	* Converted memory managment to Glib - where it wasn't done. Now we
	use g_new()/g_malloc()/g_strdup()/g_free() routings. copy_strings() re-
	placed by g_strconcat(), and sprintf() by g_snprintf(). Some other,
	minor changes.
1999-01-27 01:14:57 +00:00
Miguel de Icaza
625f76e957 1999-01-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcmd.c (ep_add_callback): Set Window's position to
	GTK_WIN_POS_MOUSE.
	(gnome_external_panelize): ditto.
	(gnome_filter_cmd): ditto.

	* gdialogs.c (file_progress_query_replace_policy): Set Window's
	position to GTK_WIN_POS_MOUSE.
	(file_progress_real_query_replace): ditto.
	(file_mask_dialog): ditto.

	* gdialogs.c: Tag the strings for localization.  Remove debugging
	messages.

	* gmain.c (gmc_window_setup_from_panel): Helper routine used to
	set the GTK_WIN_POS_MOUSE on a window and set the parent with
	gnome_dialog_set_parent (iff you have the WPanel * pointer to the
	parent).

	* gtools.c (query_dialog): Set the window position to GTK_WIN_POS_MOUSE.

	* gtkdtree.c (gtk_dtree_destroy): Kill the add_entry notification hook.
	(gtk_dtree_init): Install a notification function for treentry.
	removal.
	(entry_added_callback, entry_removed_callback): Implemented.  Now
	the tree is in sync with the panels and reload will update the
	tree correctly.

1999-01-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* treestore.c (tree_store_remove_entry_remove_hook): Missing
	function.  To remove a notification hook.
	(tree_store_notify_add, tree_store_add_entry_add_hook,
	tree_store_remove_entry_add_hook): New functions to notify of
	additions to the treestore.

	* tree.c (tree_destroy): Remove the callback hook when we go
	away.
1999-01-23 20:43:36 +00:00
Miguel de Icaza
40fd24d781 The CORBA setup actually works properly now :-) 1998-12-31 03:38:48 +00:00
Miguel de Icaza
94d3dbac8b use notebook instead of hack, fixes 1998-12-30 00:32:41 +00:00
Norbert Warmuth
ffb83af112 If someone experiences strange colors in the text edition
try "make clean; make".

Tue Dec 29 15:49:45 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* doc/mc.sgml, mc1.in (Color section): minor polishing
(Layout section): documented Highlight...

* gnome/gmain.c: According to the man page the color keyword for executable
files 	is `executable' and not `execute' -- changed.

* file.c (progress_update_one): Ignore files in subdirectories
when panel totals haven't been computed.

(erase_dir, erase_file): update progress bar (i.e. make it work
for OP_DELETE).

(panel_operate_flags): Don't compute panel totals for OP_MOVE.
When moving files on the same filesystem computing totals might
last much longer than the actual move operation.

(various places): adpations for the above changes.

* slint.c (try_alloc_color_pair): Changed hardcoded values into
defines.

* color.c, text.c: Added color "stalledlink" which is used for
stalled symbolic links. Formerly "viewunderline" was used for
this (IMO bad because function and name didn't match).
According to the man page the color keyword for executable files
is `executable' and not `execute' -- changed.

* color.c, color.h: When using SLang some color indexes are not
freely choosable (DEFAULT_COLOR clashed with A_BOLD_REVERSE).
Solved by adding holes in color_map.

* find.c (do_search): fixed possible memory leak
1998-12-29 16:52:49 +00:00
Miguel de Icaza
3b03faaa2e We want bug reports now 1998-12-13 20:28:01 +00:00
Miguel de Icaza
c7776d7577 1998-12-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (file_entry_from_file): Finished implementing
	file_entry_from_file().
	(struct desktop_icon_info): Removed the `type' field.  We now stat
	the file when needed to figure out the file type.
	(desktop_icon_info_event): Test whether the file is a directory by
	ourselves, and if it is, open a new panel for it.
	(drag_data_get): Generate the uri-list for internal desktop icon
	drags as well.
1998-12-07 02:36:47 +00:00
Miguel de Icaza
9bd86254e3 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* Makefile.in (codedirs): Dropped xv and tk ports from the
	distribution. include idl directory.

1998-12-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* configure.in (slang_use_system_installed_lib): Define slang
	here, to avoid having this on LIBS.

1998-11-26  Herbert Valerio Riedel  <hvr@hvrlab.ml.org>

	* gtkedit.c: changed occurence of 'va_list *ap' to 'va_list ap'

Thu Nov 26 12:20:06 1998  Pavel Roskin  <pavel_roskin@geocities.com>

	* config.h.in: Removed from CVS, added to .cvsignore

	* acconfig.h, macros/curses.m4, src/xcurses.c, src/tty.h,
	configure.in:
1998-12-06 21:01:30 +00:00
Miguel de Icaza
a2840e0a69 Forgot these files 1998-12-05 23:19:57 +00:00
Miguel de Icaza
aaa7b5e9a2 Lots of changes:
- GNOME edition now compiles without any trace of the text mode
  dependencies.

- We no longer link with libraries we do not use (crypt, gpm), this
  fixes the recent bug reports.

- More tree updates, enhancements.

Miguel.
1998-12-02 05:18:20 +00:00
Elliot Lee
6422f0f64d s/gtk_window_position/gtk_window_set_position/ 1998-12-01 05:15:12 +00:00
Miguel de Icaza
758e881d61 Small compilation fix - Federico 1998-11-12 21:35:04 +00:00
Miguel de Icaza
13bd569914 1998-11-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (session_save_state): Use gnome_geometry_string.
1998-11-12 18:08:53 +00:00
Elliot Lee
44936ff8a1 popt works better now (at least, the new popt should compile into
non-GNOME mc).
1998-11-04 19:03:44 +00:00
Miguel de Icaza
f64d6da2e4 1998-10-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c: We are now using the new desktop icon code.  It is
	not yet complete, but what is there does work.  We have icon
	creation, auto-layout and snapping.  Next step is drag and drop
	and popup menus.

	* glayout.c: #ifdef out the stuff that uses the old desktop code.
	I will replace it gradually.
	* gmain.c: Likewise.
	* gscreen.c: Likewise.
1998-10-30 23:22:35 +00:00
Miguel de Icaza
981d7d510c Minor fix 1998-10-21 23:11:24 +00:00
Miguel de Icaza
cd9efdc2dd Yes, we are a drop target. With all of the features requested on the
mail I got from DrMike some months ago :-)

It needs a bit of debugging still

Miguel
1998-10-21 18:05:08 +00:00
Miguel de Icaza
e591c91db2 - Make input handling work nicely on the icon list.
- First pass at the new drag and drop protocol, using the
  default handlers, more work on this tomorrow.
1998-10-20 05:37:45 +00:00
Miguel de Icaza
215cd45d16 Sync for laptop, do not touch this for now 1998-10-20 01:52:16 +00:00
Miguel de Icaza
c132ae4886 Add a warning about the code revamp 1998-10-18 22:43:02 +00:00
Miguel de Icaza
d6fcd9c2b7 VFS source code cleanup.
MC now depends on glib (currently only the assertions are used).
VFS structure declaration fixes.
Uses the new icon list (it is dog slow, need to fix this tonight at home).
1998-10-14 02:56:18 +00:00
Miguel de Icaza
8fac5dd743 More makefile fixes -mig 1998-09-25 20:00:42 +00:00
Carsten Schaar
f419d2dfe8 * gmain.c (session_management_setup): Replaced
'gnome_client_new_default' with 'gnome_master_client'.
1998-07-04 20:33:13 +00:00
Miguel de Icaza
eb1a6da0ef 1998-05-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (session_save_state): Perform shutdown if `shutdown'
	flag is set.
1998-05-26 17:49:41 +00:00
Miguel de Icaza
7a7f7a3d85 Integration of Pavel Machek's vfs code split and vfs syntax change.
The VFS code can now be used by other applications (if you compile the
libvfs.a target and link against this).

Syntax has changes internally from the url-like syntax to a new syntax
that does not have ambiguities.  A default conversor for the new syntax
will be provided in the future, also dealing with the user ~/.mc/ext files
is currently in a non-optimal state.

Keep an eye on this mailing list.

Miguel.
1998-05-26 00:53:24 +00:00
Tom Tromey
ae64700c0e Thu May 14 23:31:15 1998 Tom Tromey <tromey@cygnus.com>
* gmain.c (session_save_state): Use "+" instead of "%s" in format
	specification.  Free `argv'.
1998-05-15 05:43:31 +00:00
Miguel de Icaza
824b7198ea Icon View mode for GNOME/mc:
1. My icons suck.
	2. Keyboard handling is not finished.
	3. Save current-mode, load current-mode is not
	   implemented yet.
	4. Listing mode is not working, as I have hardcoded
	   the icon view for now.
	5. Will finish this tomorrow.  Not much is missing.
	6. No, this is not the final implementation.
	7. Yes, later I will put some scheme for using
	   more icons as discussed in the ethernal "Re: Icons"
	   thread.

Miguel.

1998-05-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gscreen.c (panel_icon_list_realized): Add drag and drop support
	to the icon list view;

1998-05-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gscreen.c (panel_fill_panel_icons): New function:  Fill up the
	icon list.
	(x_create_panel): Change in the approach:  we create both of the
	widget views at creation time and we now carefully show every
	component.  I attach everything to the table, but not necesarly
	show it.
1998-05-08 02:25:00 +00:00
Miguel de Icaza
55fa825b8b Get the global bindings working on gnome/mc
Miguel.
1998-05-05 05:49:57 +00:00
Miguel de Icaza
540e850b31 SM now supports no-windows-open setup -mig 1998-05-04 20:25:27 +00:00
Miguel de Icaza
530e74ff39 Added session management support to gmc 1998-04-30 06:03:17 +00:00
Miguel de Icaza
8c34e0837f i18n compilation fixes for the new gnome-i18n.h changes.
fix a bug in the panel-widget selection.
i18n changes from Andrej Borsenkow.
Menus renamed, better texts -- thanks Havoc.
lav's fixes for curses compilation.

Miguel
1998-04-28 04:29:19 +00:00
Miguel de Icaza
3acd011d4f Revert the color back to its previous state.
Amazingly this change apparently was not required and was
just a typo from Paul.

The syntax coloring is extremely nice.

Miguel.
1998-04-24 18:52:40 +00:00
Miguel de Icaza
3b2ad8a238 Lots of prototypes added, warnings removed -miguel 1998-04-17 00:59:58 +00:00
Miguel de Icaza
0f31fb67d0 Fixes 80% of the bugs reported by Elliot on his last email.
This does not fix some major "problems", which require some bigger
changes to the program.

Miguel.
1998-04-17 00:21:53 +00:00
Miguel de Icaza
f494ada890 Ok, most of the "Elliot Lee confidential bug report" has been dealt
with with this commit.  This also addresses a bunch of the comments
from the status.shtml from DrMike.

Miguel.

1998-04-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* screen.c (GT): Assign two spaces for the minimum size of the
	"type" field for the GNOME edition.  This gives some extra space
	for the icon that gets displayed.

	* dlg.c (remove_widget): New function:  used to remove a widget
	from an existing Dlg_head;
	(destroy_widget): Destroy a specific Widget.
	(add_widgetl): Extended to deal with the fact that a running
	Dlg_head can become empty.

	* panelize.c (l_call): Update the input line every time the user
	selects the entry with the mouse (pretty common in the gnome
	edition).

	* hotlist.c (add_new_group_input): Removed an extra field that was
	causing problems.

	* find.c (find_parameters): Tree button is gone for gnome until we
	get the tree function working on gnome.

	* cmd.c (save_setup_cmd): Per Elliot's suggestion, do not pop up a
	dialog box to inform the user about the saved setup.

1998-04-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gcmd.c (gnome_close_panel): Implement the close-the-panel
	functionality.

	* gscreen.c (x_panel_destroy): Implement the gnome mode way of
	destroying the panel.

	* gview.c (view_status): Add cacheing of the information status,
	to avoid excessive flicker.  It would be better if GtkLabel did
	not flicker though.
	(scrollbar_moved): Scroll correctly.  We now use
	view_move_backward and view_move_forward to adjust the scrollbar
	contents.  This displays the scrollbar correctly.

	* gwidget.c (x_listbox_select_nth): This may be invoked before the
	widget has been created, work around this problem.

	* gscreen.c (show_dir): Set the title bar for the window to the
	current directoy.  Reported by both Mike and Elliot.

	* layout: Updated to the new hotlist dialog box.
1998-04-16 02:45:53 +00:00
Miguel de Icaza
036af40392 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
* screen.c (string_file_nlinks): The buffer was too small and we
	were overwriting parts of it.

	* subshell.c (do_subshell_chdir): Memory leak fix.

	* find.c (do_search): Do not use undefined order of evaluation.

	* user.c: Do not use undefined order of evaluation.

	* dlg.c (init_dlg): Do init the default return value.
1998-04-15 06:05:34 +00:00
Miguel de Icaza
e0c843048c A bunch of extra TODO items from DrMike have been adressed.
- Double click should work.
- Dragging to other panels shoudl work
- Scrollbar in the viewer
- Entry widgets get their text selected at startup
- Prompts for command if default action does not exist for a filename
- Updated spanish translation.

Plus some other bugs I fixed.

Miguel
1998-04-09 04:58:24 +00:00
Miguel de Icaza
76496220cc Wed Apr 8 11:15:29 1998 Alex Tkachenko <alex@bcs.zp.ua>
* src/find.c: changes to find_parameters/find_file i18n.

	* src/widget.c: new function introduced, button_scan_hotkey();
	button_new() and button_set_text() fixed to use mentioned function.

	* src/key.[ch], src/dlg.c: changes to make recognition of ESC char as
	ALT(c) possible for 8-bit chars. (By replacing 'A'/'Z' comparisons with
	call to isalpha() in the way proposed by Norbert).

	* src/boxes.c: changes to display box i18n

	* src/learn.c: changes to learn key dialog i18n
1998-04-08 18:50:24 +00:00
Miguel de Icaza
ca2ffb99b6 Various fixes reported by DrMike:
- Nicer dialog destruction (no flicker)
- refresh of panels after a drop.
- Pause after run is gone in the gnome edition.
- Improved layout for options dialog box.
- Checkbox widgets are implemented, they now work.

Miguel.
1998-04-07 23:45:27 +00:00
Miguel de Icaza
c019ee5a56 Layout fixes -mig 1998-04-07 22:27:47 +00:00
Miguel de Icaza
ac70e34d02 MC goes Internationallsls./gmc Spanish translation almost complete -mig 1998-03-25 05:16:00 +00:00
Miguel de Icaza
f29db51778 cwd input line works/filter handling works/clipping label widget/flashing removed -mig 1998-03-24 05:25:56 +00:00
Miguel de Icaza
213a417181 We had time, so we wrote property pages for desktop, files and children all alike -mig and federico 1998-03-19 04:51:17 +00:00
Miguel de Icaza
84013cb8d5 Wed Mar 18 20:35:45 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_create_launch_entry): Support for the "Drop"
	target in mc.ext now.

	* Add support for dragging the icons on the desktop.

	(desktop_icon_make_draggable): new function.
	(drop_from_event): simplify.
	(my_create_transparent_text_window): Get the motion notify event.
	(drops_from_event): create a vector based on thge drop event.
	(drop_cb): splitted, call url_drop for regular drops, otherwise it
	is a icon drop.
	(artificial_drag_start): new routine, used now by gscreen.c and
	gdesktop.c
	(drop_on_directory): Check result value of operation.
	(desktop_icon_set_position): sane interface.
	(stop_desktop): Flush all of our state to disk.
1998-03-19 02:57:01 +00:00
Pavel Machek
46e8d43127 Some files in /gnome was not copied on "make dist"
Warning in gnome/gmain.c suppressed
"VERSION." is included instead of "VERSION" for Borland C++, otherwise it assumes VERSION.h
Mouse is not enabled for Windows NT edition
Warning about missing hotlist was shown incorrectly on NT and Linux console
1998-03-17 21:29:22 +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
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
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
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
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