Commit Graph

729 Commits

Author SHA1 Message Date
Miguel de Icaza 4318d82cd4 Missing icons 1998-12-06 20:52:14 +00:00
Radek Doulik 7404db0285 updated my email address to rodo@ucw.cz -- Radek 1998-12-06 10:15:15 +00:00
Miguel de Icaza a2840e0a69 Forgot these files 1998-12-05 23:19:57 +00:00
Miguel de Icaza b12350861b 1998-12-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdnd.c (get_action): Typo fix.
1998-12-05 22:53:30 +00:00
Miguel de Icaza 4a72b02987 Metadata-aware Midnight Commander. WEEEcvs update . 1998-12-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (load_imlib_icons): Make it use the new gicon files.

	* gicon.c, gicon.h: New files: they keep an image cache and
	provide the right icon to use based on the filename.  They use the
	GNOME metadata to fecth the "icon-filename" and "icon-inline-png"
	keys.

	* gdialogs.c (file_mask_dialog): Commented the help messages until
	the warnings are figured out.
1998-12-05 21:54:25 +00:00
Miguel de Icaza 6067afb1fc 1998-12-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_new): Connect the signals for DnD
	so that we can drag icons from the desktop.
	(drag_begin): New function to set the drag cursor for icons on the desktop.
	(button_press): New function that stores the hot spot position for
	DnD cursors.
	(drag_data_get): New function to fetch the URI-list of selected icons.

	* gdialogs.c: Fixed some includes.

	* gdesktop.h: Removed the DnD target enum from here, since it is
	specific to each submodule.

	* gdnd.h: Moved the DnD target enums to here.  Added a new
	TARGET_MC_DESKTOP_ICON.

	* gdesktop.c (get_icon_snap_pos): Fixed icon snapping; the
	coordinates not being updated correctly.

	* gscreen.c (panel_drag_data_get): Free the uri list; it was being leaked.
1998-12-05 01:01:13 +00:00
Miguel de Icaza c9ac26efb4 1998-12-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* cmd.c, tree.c: Updated to the new file.c api.

	* file.c: (copy_file_file, copy_dir_dir, move_file_file,
	move_dir_dir): Updated to work with the new updating stuff.

	* setup.c: New configuration option to compute the totals to be
	transfered.

	* file.c (compute_dir_size, panel_compute_totals): New routines to
	compute the total ammount of information that is going to be
	transfered.
1998-12-04 23:39:41 +00:00
Jonathan Blandford 86bed1cb80 removed obnoxious debugging stuff 1998-12-04 22:42:25 +00:00
Jonathan Blandford 77cc218e61 finished copy dialog. Move and delete are trivial now. Then, it's on to
error messages!!!
1998-12-04 22:35:23 +00:00
Miguel de Icaza 7d035cca51 Make the tree a drag source -mig 1998-12-04 21:32:19 +00:00
Miguel de Icaza 0fac6acd38 Move the old dnd code here for reference purposes 1998-12-04 20:57:29 +00:00
Jonathan Blandford aa42db1042 more dialog changes 1998-12-04 20:21:11 +00:00
Miguel de Icaza 2eab3ff5f6 1998-12-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (load_desktop_icons): Added arguments that specify
	where to place the newly-created icons.  This needs some tweaking still.
	(reload_desktop_icons): Now takes arguments for the position of
	the new icons.
	(drag_data_received): Pass in the drop position to reload_desktop_icons().

	* gscreen.c (panel_tree_drag_motion): Added missing variable declaration.

	* gdesktop.c (load_desktop_icons): Added an incremental flag that
	specifies whether icon creation is unconditional regardless of
	whether there is an icon for a file or not.
	(reload_desktop_icons): Use the incremental flag in load_desktop_icons().
	(drag_data_received): Reload the desktop incrementally, to avoid flicker.
	(desktop_icon_info_new): Use mc_lstat(), not mc_stat().  We do
	want to read symlinks, even dangling ones, if they exist.
	(load_desktop_icons): While we are reading the desktop directory,
	first place all the icons that have their metadata icon-position
	set, and build a list of the ones that don't.  *Then* place
	those.  This fixes overlapping icons on weird situations.

	* directory.xpm: Removed bogus garbage.  There was a stale pixmap here.

	* gdesktop.c (setup_desktop_dnd): Allow for GDK_ACTION_ASK as well.

	* gscreen.c (panel_widget_motion): The action argument to
	gtk_drag_begin() is a mask of possible actions, not a single action.

	* gdesktop.c (drag_data_received): Only reload the icons if the
	drop was successful.
1998-12-04 02:08:06 +00:00
Raja R Harinath 8366acf5cd * Makefile.am (EXTRA_DIST): Distribute files that the
BUILT_SOURCES depend on.
(mad.c, mad.h): Don't use GNU make specific features in rule.
(libvfs_la_SOURCES): Update from Make-mc.in.
1998-12-04 01:51:26 +00:00
Miguel de Icaza b950fa1a36 Small Makefile fix here 1998-12-04 00:55:33 +00:00
Miguel de Icaza 4d53e710d3 1998-12-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* ext.h: GNOME edition uses a different set of .ext files.

	* lib/mc-gnome.ext.in: New file with GNOME-specific bindings.
1998-12-04 00:48:50 +00:00
Jonathan Blandford 60c82468ae op_win dialog stuff next 1998-12-04 00:13:53 +00:00
Miguel de Icaza ce835ac9eb Small fix -mig 1998-12-03 23:50:05 +00:00
Miguel de Icaza dbf640d8ad 1998-12-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_tree_drag_motion): Improve interactivity
	(x_create_panel): Add a little decorating frame.
1998-12-03 22:08:04 +00:00
Miguel de Icaza ac7fc9b8b2 1998-12-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_create_icon_display, panel_create_file_list):
	Hook up to drag_begin and drag_end events.

	(panel_tree_drag_motion): Either queue a scroll on the tree, or
	queue an open-directory event.

	(panel_tree_scroll): Scroll the tree when the drag pointer is in
	one of the boundaries of the tree.

	(panel_tree_scrolling_is_desirable): new function to figure out if
	it is a good plan to scroll the tree view instead of opening it.

	(panel_chdir): Do not sync with the tree when we are in the middle
	of a drag and drop operation.

	(panel_drag_begin, panel_drag_end): New functions to keep track
	of the dragging operations.
1998-12-03 21:56:11 +00:00
Jonathan Blandford 0d0c748afa changing dialogs... 1998-12-03 21:11:36 +00:00
Miguel de Icaza e32b604fb3 Typo fixes - Federico 1998-12-03 16:11:01 +00:00
Miguel de Icaza 414df0f7b7 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_tree_drag_data_received): Perform drag and drop
	operations on the Tree.
1998-12-03 16:10:25 +00:00
Miguel de Icaza 301e7fbfc3 Many changes:
- Beginning of the CORBA support for the file manager.
	- Tk and XView code dropped.

Miguel
1998-12-02 23:44:06 +00:00
Miguel de Icaza c0ac4984ab 1998-12-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (setup_desktop_dnd): New function to set up drops
	to the root window.
	(setup_xdnd_proxy): Function by Owen Taylor to set up a DnD proxy
	window.
	(drag_data_received): Function to handle drops on the root window.
	(desktop_destroy): Destroy the DnD setup.
	(reload_desktop_icons): New function to reload the desktop.

	* gscreen.c (drag_types, drop_types): Removed url-list; only
	uri-list should be there.

	* gdesktop.h: Removed TARGET_URL_LIST from the DnD enumerations.
1998-12-02 23:37:27 +00:00
Miguel de Icaza bf682eb9d1 Warning fixes.
Miguel.
1998-12-02 21:27:27 +00:00
Miguel de Icaza befc99bf8d 1998-12-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_do_select_dir): Made static, as it is for
	internal use only.
	Fixed a little bunch of compiler warnings.

	* gscreen.c (x_fill_panel): Use gtk_dtree_select_dir(), not
	gtk_ctree_do_select_dir().

	* gpopup.c (gpopup_do_popup): Fixed incorrect assertion and
	actually create the menu (doh).
	(gpopup_do_popup): Do the same magic as in gnome-popup-menu to
	fetch the item that was activated in the menu.  Keep this code out
	of reach of children.
	(fill_menu): New function to fill the menu using the
	gnome-popup-menu magic for fetching the activated menu item.
	Removed ifdef'ed code.
1998-12-02 20:24:25 +00:00
Sebastian Wilhelmi 8b8a943b6e 1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* fish.c (FISH_OP): changed snprintf to g_snprintf, as glib is
        used anyway.

        * xdirentry.h (LINK_NO_FOLLOW):
        * tar.c (read_header):
        * direntry.c (vfs_s_resolve_symlink):
        (vfs_s_inode_from_path):
        (vfs_s_open): renamed NO_FOLLOW and FOLLOW to LINK_NO_FOLLOW and
        LINK_FOLLOW resp. to avoid problems on solaris, where FOLLOW and
        NO_FOLLOW are defined in an enum.

        * vfs.h (ELAST): define it to 300, if not already defined, thats a
        bad hack, but what can we do....
1998-12-02 13:17:24 +00:00
Miguel de Icaza c983d57dd2 Duh. Here is the correct ChangeLog: 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (tree_drag_open_directory, panel_tree_drag_motion,
	panel_tree_drag_leave): Drag and Drop support routines for the
	tree to auto-expand the tree when the user stays still on top of a
	directory.
1998-12-02 06:52:11 +00:00
Miguel de Icaza dabe341f88 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>
1998-12-02 06:51:40 +00:00
Miguel de Icaza e265fe2067 1998-12-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* glayout.c (file_menu): Use view_cmd and view_simple_cmd in the
	menu instead of panel_action_view and
	panel_action_view_unfiltered, respectively.

	* gpopup.c (create_regexp_actions): Create the menu items using
	gnome-app-helper, for visual consistency.
	(create_actions): Likewise.  Also, fixed S_ISLNK() confusion.
	(get_label_text): Extract the label from the GnomeUIInfo item in
	an ugly way.
1998-12-02 06:33:07 +00:00
Miguel de Icaza 52a9fd62f5 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_load_path): Further speed increase
1998-12-02 06:04:55 +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
Sung-Hyun Nam af1a952ea0 * direntry.c (vfs_s_new_super): Added the missing return value. 1998-12-02 05:11:48 +00:00
Jonathan Blandford b081558a24 moved functions around... 1998-12-02 04:33:26 +00:00
Miguel de Icaza a065078165 1998-12-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_switch_new_display_mode): Destroy the old
	widget.  Add the list view to the proper table.

	* glayout.c: Remove the exit menu option.

	* gtree.c (gtk_dtree_contains): New routine used to avoid
	duplicate entries in the tree display.
1998-12-01 21:56:54 +00:00
Pavel Machek 1de20c8f87 Added myself to list of authors 1998-12-01 11:02:44 +00:00
Miguel de Icaza 3d5d03a3a0 Tempo hack 1998-12-01 06:27:57 +00:00
Miguel de Icaza 4dbadb32ec Sync to laptop - Federico 1998-12-01 06:23:50 +00:00
Miguel de Icaza deec804b4a More work on the tree. It is duplicating entries, you have been warned -mig 1998-12-01 06:12:34 +00:00
Elliot Lee 6422f0f64d s/gtk_window_position/gtk_window_set_position/ 1998-12-01 05:15:12 +00:00
Elliot Lee d21198eb61 s/gtk_container_border_width_/gtk_container_set_border_width/
Remove OBJ_DIR junk from autogen.sh.
1998-12-01 05:13:40 +00:00
Miguel de Icaza b20b135eba Define stderr_fd 1998-12-01 05:06:15 +00:00
Miguel de Icaza 7ee95e588f Sync sync - Federico 1998-12-01 00:33:02 +00:00
Miguel de Icaza bd88c6ae00 1998-11-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* panel.h (WPanel): Added the missing tree/pane/view_table fields
	to the Gnome part of the structure.
1998-11-30 22:46:07 +00:00
Miguel de Icaza 43931af464 Sync from laptop to desktop - Federico 1998-11-30 16:59:23 +00:00
Manish Vachharajani 8b3af01184 Remove more deprecated gnome-dialog functions 1998-11-29 17:14:25 +00:00
Miguel de Icaza c0c4e48cca Small TODO update 1998-11-29 08:24:33 +00:00
Miguel de Icaza a175deb9c5 Disable the Tree autosync until I make it less stupid to avoid expensive rescans -mig 1998-11-29 08:22:20 +00:00
Miguel de Icaza 1a9c7f3274 IconList changes for gmc 1998-11-29 07:50:44 +00:00