Commit Graph

528 Commits

Author SHA1 Message Date
Miguel de Icaza
920858cfaf 1998-12-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gcmd.c: #include "../vfs/vfs.h"

	* gdesktop.c (setup_icon_dnd_actions): Moved the code that calls
	gtk_drag_source_set() for an icon here.
	(editing_started): Temporarily disable drags while the icon's text
	is being edited.
	(editing_stopped): Re-enable DnD from the icon once editing has
	stopped.
1998-12-11 03:18:40 +00:00
Miguel de Icaza
bf18aa8b56 UPdate .cvsignore 1998-12-11 02:59:36 +00:00
Miguel de Icaza
51d2d5aff1 1998-12-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcmd.c (gnome_close_panel): When a panel is destroyed, chdir to
	root directory, as the process will be holding the inode for the
	directory that was selected until an operation is performed in
	another panel.

	* gicon.c (gicon_get_icon_for_file): Invert the way the testing
	for icons is done to handle directories properly.
1998-12-11 02:58:48 +00:00
Jonathan Blandford
940cdf53c3 more gui. touch ups... The status bar is a bit more sane now 1998-12-11 02:47:09 +00:00
Owen Taylor
9022456a54 Thu Dec 10 21:38:55 1998 Owen Taylor <otaylor@redhat.com>
* gkey.c (delete_select_channel): Fixed list handling
	with g_list_remove().
1998-12-11 02:38:15 +00:00
Miguel de Icaza
30b4af8f26 1998-12-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (dnd_select_icon_pending): Added this flag that
	specifies whether a selection is pending for an icon if the user
	was holding the Control key down while clicking.  We have to delay
	selection in this case so that DnD will work correctly, just like
	Windows.
	(icon_button_press): New function that handles button presses on
	icons; it obsoletes the old desktop_icon_info_event().
	(icon_button_release): New function that handles button releases
	on desktop icons; it will do what is appropriate if there was a
	pending icon selection.
	(drag_begin): Handle pending selections as appropriate.
	(unselect_all): Added an paremeter that specifies which icon to
	exclude from unselection.
	(editing_started): Unselect all icons but the one for which
	editing has started.
	(dnd_icon_sources): Changed the MIME-types for internal drops to
	"application/x-mc-desktop-icon".
	(click_proxy_window): New variable that stores the proxy window
	for clicks on the desktop.
	(setup_desktop_clicks): New function that sets up clicks on the
	root window.
	(find_click_proxy_window): New function to find and set up the
	window for proxying clicks from the root window.

	* image.metadata.in: Added case for `jpg', as there was only a
	case for `jpeg'.
1998-12-11 02:05:19 +00:00
Miguel de Icaza
771413102b 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gicon.c (gnome_file_entry_color): If we do not have permissions
	for this directory, indicate this with a special icon.

	* gscreen.c (panel_icon_list_select_icon): Middle button opens a
	new panel on a directory.
1998-12-11 01:57:01 +00:00
Miguel de Icaza
2ea209b24d Sync to laptop; I'm in the process of re-arranging the desktop icon selection code - Federico 1998-12-10 00:46:14 +00:00
Miguel de Icaza
44a1b32eeb 1998-12-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c: Moved the old DnD cruft to olddnd.c to keep it there
	for reference purposes.

	* gmetadata.c: Removed the gmeta_get_icon_for_file() function, as
	it is obsoleted by gicon_get_icon_for_file().

	* gdesktop.c (desktop_icon_info_new): Made it use
	gicon_get_icon_for_file().

	* gdesktop-icon.c (set_icon): Now we handle things internally
	using an imlib image, not a filename.
	(desktop_icon_new): Now takes an imlib image for the icon instead
	of a filename.
	(desktop_icon_set_icon): Likewise.
1998-12-09 17:23:38 +00:00
Norbert Warmuth
188b975722 s/maksourcelinks/sourcelinks/g
Someone did only half the job.
1998-12-09 06:00:11 +00:00
Miguel de Icaza
c8f9650917 Create the directory, do not install the file blindly 1998-12-09 02:08:40 +00:00
Miguel de Icaza
2f018f6938 1998-12-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_new): Use imlib's visual and colormap.
1998-12-09 01:56:24 +00:00
Miguel de Icaza
1df4f2d736 Some made a typo here and we have all been typing dumbly make maksourcelinks. fixed 1998-12-09 00:59:23 +00:00
Miguel de Icaza
cbce86f610 Install image.metadata as well 1998-12-08 23:32:36 +00:00
Miguel de Icaza
240bbf8226 Use the new icons 1998-12-08 23:30:45 +00:00
Miguel de Icaza
b7adce5cf3 1998-12-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_drag_data_received): Doh.  Use the correct
	pathname when calling gdnd_drop_on_directory().
1998-12-08 23:21:15 +00:00
Miguel de Icaza
f41a3e71b8 1998-12-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_new): Do not stat the file, as we
	do not need that information anymore.
	(setup_icon_dnd_source): Moved the DnD-as-source code to here.
	(setup_icon_dnd_dest): New function to set up an icon as a DnD
	destination.
1998-12-08 01:31:17 +00:00
Elliot Lee
9678287cc7 mc.metadata is in . not $(srcdir) (for builds with builddir != srcdir). 1998-12-07 21:22:52 +00:00
Miguel de Icaza
23d7825dd2 1998-12-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_place): Doh, do not place icons
	past the edge of the *whole* screen :-)
	(dnd_press_x dnd_press_y): New variables to store the cursor
	hotspot for DnD icons.  Moved these over from the
	desktop_icon_info structure, as it does not make sense to have
	this inside every icon.
	(button_press): Use dnd_press_x and dnd_press_y.
	(drag_begin): Likewise.
	(drop_desktop_icons): Use dnd_press_x and dnd_press_y to fix the offsets.
	(drag_data_received): Fix the proxy window offsets for all types
	of targets.
	(drop_desktop_icons): Snap the coordinates as appropriate.
1998-12-07 21:07:27 +00:00
Miguel de Icaza
8b23263b4e While we get other icons, use the crappy ones -mig 1998-12-07 17:37:47 +00:00
Miguel de Icaza
2c89bf372c Sample program to manually make thumbnails for your images using the Gnome metadata 1998-12-07 17:11:35 +00:00
Miguel de Icaza
44caa06a7b Small improvements 1998-12-07 17:08:59 +00:00
Miguel de Icaza
8942d7e613 1998-12-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (drop_desktop_icons): New function to perform a drop
	from desktop icons to the desktop.  It effectively moves the icons
	around.
	(desktop_icon_info_place): Do not place the icons past the edge of
	the screen.
1998-12-07 15:47:00 +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
4318d82cd4 Missing icons 1998-12-06 20:52:14 +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
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
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
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
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
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
7ee95e588f Sync sync - Federico 1998-12-01 00:33:02 +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
Miguel de Icaza
428265fbc5 1998-11-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_update_input): Use gtk_editable_changed on the entry.
	(x_create_listbox): Fix more CList api change.
	* gscreen.c (CLIST_FROM_SW): Adapt to new GtkScrolledWindow
	inheritance.
1998-11-29 03:40:23 +00:00
Miguel de Icaza
74c83737fd 1998-11-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* Makefile.in (OOBJS): Add filegui.o back until the GTK-specific
	filegui is written.

	* gdesktop.c (check_window_in_one_panel): Provide better error
	messages here for debugging purposes.

	Disable stubs for filegui.c until they are actually implemented.
	I need to debug stuff.

	* gdnd.c (find_panel_owning_window): Use the new
	gtk_drag_get_source_widget function to find out reliably if the
	drag source happens to be in this application.

	* gscreen.c (x_create_panel): Set the usize for the ministatus
	label to be (0, -1), this means: do not request any horizontal
	space, use any vertical space given.

	Put the ministatus inside an hbox, and use
	gtk_container_set_resize_mode in this hbox to stop any queue
	events from being propagated up in the hierachy of widgets

	This kills all of the CList/GnomeIconList/Scrollbar/Toolbar
	flickering now.
1998-11-28 03:12:13 +00:00
Miguel de Icaza
5fce940013 1998-11-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (x_create_panel): Set the usize for the ministatus
	label to be (0, -1), this means: do not request any horizontal
	space, use any vertical space given.

	Put the ministatus inside an hbox, and use
	gtk_container_set_resize_mode in this hbox to stop any queue
	events from being propagated up in the hierachy of widgets

	This kills all of the CList/GnomeIconList/Scrollbar/Toolbar
	flickering now.
1998-11-28 00:01:38 +00:00
Miguel de Icaza
624fc415ab 1998-11-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtree.c: More work on gtree.  It is basically ready to stick
	into gmc-window.c/mc  I just need to know when you are ready
	Federico.
1998-11-27 04:54:02 +00:00
Miguel de Icaza
2c04c48dfc add xpm files 1998-11-27 03:37:45 +00:00
Miguel de Icaza
c8ae734471 Minor fixlet - Federico 1998-11-26 00:17:05 +00:00
Miguel de Icaza
b7f32b7c2e Sync to laptop - Federico 1998-11-25 23:58:43 +00:00
Miguel de Icaza
beff48b8e0 Doh, it helps to add the files first - Federico 1998-11-25 03:48:20 +00:00
Miguel de Icaza
7b89c91ebb 1998-11-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_event): Run the popup menu for the
	icons in the desktop.

	* gpopup.[ch]: New files that take care of the popup menus for
	files in the desktop and in the panels.

	* Makefile.in: Added gpopup.[ch] to the list of sources.
1998-11-25 03:29:23 +00:00
Miguel de Icaza
0cd03f0e0c 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_place): Save the icon position
	when it is moved.
	(desktop_destroy): Removed the save_icons_pos() function and do
	not invoke it from desktop_destroy().
1998-11-24 03:58:05 +00:00
Miguel de Icaza
82a542076a 1998-11-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_list_insert): Make it work with the new CList
	policies.
1998-11-24 03:33:24 +00:00
Miguel de Icaza
e82ec47dd3 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c: Put in a bunch of stubs for the functions in
	filegui.h.  These will be removed as the dialogs get
	custom-written for Gnome.

	* gmetadata.[ch]: Changed the function names to "gmeta_*".

	* gscreen.c (CLIST_FROM_SW): Use scrolled_window->child, as
	viewport is obsolete.

1998-11-23  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
	(dlg_key_event): Return 1 if handled the tab key.

	* filegui.h: Added prototypes for file_progress_show_{source,target,deleting}().
1998-11-23 22:09:58 +00:00
Miguel de Icaza
1fa86c864e Initial import of the GNOME tree view for gmc, work in progress, this is just to sync laptop and server -mig 1998-11-23 19:41:49 +00:00
Miguel de Icaza
af807858c2 1998-11-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Makefile.in (OOBJS): Do not link ../src/filegui.o.  GMC does not
	link right now, but I guess I'll add stubs until we finish with
	the dialog boxes.

	* gdnd.c: #include <sys/types.h>

	* Makefile.in (checklinks): Fix sourcelinks -> maksourcelinks typo.
1998-11-20 05:14:38 +00:00
Miguel de Icaza
a7996c0a20 Weee!
Ok, finally splitted the GUI code that dealt with the file operations into
a separate file.  It is now possible to write a native Gtk version of this.

Until the Gtk-native version is done, the code in mc/gnome/ is linking with
filegui.c.

Miguel
1998-11-18 02:31:23 +00:00
Miguel de Icaza
df043d5454 More work - Federico 1998-11-18 02:15:09 +00:00
Miguel de Icaza
ad2348b8e9 Sync sync - Federico 1998-11-17 02:03:46 +00:00
Miguel de Icaza
b8789662e8 More work, sync to desktop - Federico 1998-11-13 17:30:08 +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
Miguel de Icaza
9d4d510214 1998-11-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the
	WPanel structure, we now have a single opaque pointer to UI data,
	called port_ui.  GUI stuff specific to each port should be here.
	This is a work in progress.
1998-11-12 02:31:53 +00:00
Miguel de Icaza
32b49aba7d One liner upgrade -mig 1998-11-11 22:05:23 +00:00
Miguel de Icaza
c346f8892e 1998-11-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Makefile.in: Removed gtrans.c from the list of sources.

	* gdesktop-icon.c: #ifdef cleanups.

	* gscreen.c (panel_create_file_list): Doh.  Return the scrolled
	window, not the clist.

	* gdnd.c (get_action): Implement the DnD actions menu.

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

	* setup.c: Removed the icons_snap_to_grid and
	want_transparent_{icons,text} options.
1998-11-11 00:05:12 +00:00
Miguel de Icaza
2c1226f796 The clist is not working, I'll fix that when I get home - Federico
1998-11-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdnd.c: New file that handles all the DnD stuff.  Mainly used to
	clean up gdesktop.c.

	* gscreen.c (panel_icon_list_drag_data_received): Use
	gdnd_drop_on_directory().
	(CLIST_FROM_SW): Added this macro to fetch the clist from the
	scrolled window in panel->list.
	(panel_create_file_list): Create a scrolled window and put the
	clist inside it.  This is required per the new clist API.
	(panel_configure_file_list): Use the scrolled window's adjustment.
	(panel_file_list_size_allocate_hook): Use the scrolled window
	instead of the clist.
	(panel_file_list_compute_lines): Use the scrolled window instead
	of the clist.
	(panel_file_list_configure_contents): Use the scrolled window
	instead of the clist.
	(panel_create_file_list): Do the DnD setup here, not in the
	realization callback.
	(x_create_panel): Do not realize the panel explicitly.
	(panel_create_pixmaps): Create the pixmaps using imlib instead of
	Gdk.
1998-11-10 02:28:34 +00:00
Miguel de Icaza
615609b324 Sync - Federico 1998-11-07 01:19:53 +00:00
Miguel de Icaza
d414f76816 Sync sync - Federico 1998-11-05 23:24:47 +00:00
Miguel de Icaza
b058121a8b Sync sync - Federico 1998-11-04 23:01:24 +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
146fbe25fb 1998-11-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (select_icon): Raise the icon when it is selected.
1998-11-04 16:51:57 +00:00
Elliot Lee
db30df14d0 more popt 1998-11-03 23:36:58 +00:00
Miguel de Icaza
75eb5db939 1998-11-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (select_range): Doh.  Fix dii -> ldii typo.  Also,
	use Windows semantics -- ranges are considered rectangular instead
	of linear.
1998-11-03 16:29:47 +00:00
Miguel de Icaza
2f091b9509 1998-11-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c: Now desktop icons are stored in the layout_slots
	array.  We need to know which icons are in which slots.
	(unselect_all): Use the layout_slots array.
	(desktop_icon_info_place): Append the icon to the list in the
	proper slot.
	(desktop_icon_info_new): Initialize the position and slot fields
	in the desktop icon info structure.
	(desktop_icon_info_free): Remove the icon from its slot.
	(desktop_destroy): Destroy the layout slots and the icons
	properly.
	(remove_from_slot): New convenience function to remove an icon
	from the slot it is in.
	(get_icon_snap_pos): Do a bit nicer snapping by really using the
	closest slot.
	Added a last_selected_icon variable to keep track of the icon that
	was last selected, for shift+click selections.
	(select_icon): Finish selection semantics and clean up.  Now it is
	nice and simple and complete.
	(select_range): New function that handles range selections.
1998-11-03 01:32:38 +00:00
Miguel de Icaza
4aeaf0099f Make it compile 1998-11-02 07:26:19 +00:00
Miguel de Icaza
5fa467aa00 1998-11-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop-icon.h (DesktopIcon): Added a child item for stippling
	the icon when it is selected.

	* gdesktop-icon.c (desktop_icon_select): Show/hide the stippling
	as appropriate.

	* gdesktop.c (desktop_icon_info_event): Handler for events on
	desktop icons.
	(select_icon): New function that handles icon selection based on
	mouse clicks and modifier keys.

	* gdesktop.c (struct desktop_icon_info): Added a type field to the
	structure.  It specifies the type of icon (file, directory), and
	is used to determine the DnD and menu behavior.
1998-11-01 23:21:24 +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
8e3b730338 Small warning fixes.
Miguel.
1998-10-30 17:51:28 +00:00
Miguel de Icaza
f15ee9faf9 Increased version number to 4.5.2
Documentation update.

1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* fish.c (command): Replace vnsprintf with g_strdup_vprintf.  This
	is both safe and more correct, as there is no limit on the
	pathname.

	* ftpfs.c (command): Same as above.

	* util-alone.c (print_vfs_message): Same as above.

1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* layout.c (print_vfs_message): Use g_snprintf instead of
	vnsprintf.
1998-10-30 17:45:43 +00:00
Miguel de Icaza
e704d53f77 sync sync - Federico 1998-10-30 17:08:03 +00:00
Miguel de Icaza
903eb5a880 Sync to laptop; I ifdef-ed the old code just so that it will compile - Federico 1998-10-30 00:47:54 +00:00
Miguel de Icaza
612019d206 1998-10-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop-icon.c (create_window_shape): Use shaped icons only
	when the user has selected them.
	(desktop_icon_reshape): New public function to recompute the shape
	of the icon.  This should be used when the global
	desktop_use_shaped_icons flag changes.
	Added documentation comments to the public functions.
1998-10-29 01:07:38 +00:00
msw
12f7db92e9 Wed Oct 28 14:34:22 EST 1998 Matt Wilson <msw@gimp.org>
* gnome/gdesktop.c, gnome/gdesktop-icon.c:
	  s/desktop-icon.h/gdesktop-icon.h/g
1998-10-28 19:31:04 +00:00
Miguel de Icaza
22a0026bde 1998-10-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Makefile.in: Fixed for gdesktop-icon.
1998-10-28 19:23:51 +00:00
Miguel de Icaza
4ce383d64b 1998-10-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* desktop-icon.c (reshape): Position the icon text item correctly.
1998-10-28 17:04:58 +00:00
Miguel de Icaza
18cd0a5259 Step one at DnD in clist -mig 1998-10-28 02:06:34 +00:00
Miguel de Icaza
3a4a872fd2 Sync from laptop: Get CList mode working; Parts of the window detection code -mig 1998-10-28 01:47:57 +00:00
Miguel de Icaza
1f01162672 1998-10-27 Federico Mena Quintero <federico@nuclecu.unam.mx>
* desktop-icon.c (desktop_icon_new): Do now reshape more than
	needed by splitting the set_icon and set_text functions apart.
1998-10-28 00:53:11 +00:00
Miguel de Icaza
c5dca5a751 1998-10-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_set_position): Do not lower the
	window.  The gnome-compliant wm will know what to do with windows
	on the Desktop layer.
	(post_setup_desktop_icon): Likewise.

	* desktop-icon.c (create_window_shape): Fetch the mask of the
	image "by hand", as we cannot rely on the canvas item having
	created it yet.

	* desktop-icon.c (desktop_icon_realize): Doh.  We need to
	initialize the gnome_win_hints before we set any of the hints.
1998-10-26 23:19:37 +00:00
Miguel de Icaza
c7b818533c 1998-10-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* desktop-icon.c (desktop_icon_realize): Doh.  We need to
	initialize the gnome_win_hints before we set any of the hints.
1998-10-23 18:54:28 +00:00
Miguel de Icaza
772cae09e0 Fixes for desktop icons - Federico 1998-10-23 14:31:02 +00:00
Miguel de Icaza
e7911e2b15 Sync sync - debugging time - Federico
1998-10-21  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdesktop.c (create_desktop_icon): Renamed from
	my_create_transparent_text_window.  Now uses the DesktopIcon
	widget for its work.
	(get_desktop_icon_for_dentry): Renamed from
	get_transparent_window_for_dentry.  Uses the DesktopIcon widget.
	(get_desktop_icon_for_di): Renamed from
	get_transparent_window_for_di.
	(desktop_icon_properties): Do not size_request the icon, since now
	we can get its dimensions directly from the DesktopIcon structure.

	* desktop-icon.[ch]: New file that takes care of desktop icons.
	It provides the spiffy widget that is used for them.

	* Makefile.in: Added desktop-icon.[ch] to the list of sources.
	MC should use Automake, I think.
1998-10-22 00:32:21 +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
7b74fc9f5f Work in progress - Federico 1998-10-21 03:41:56 +00:00
Miguel de Icaza
809d80eb90 Ok, Midnight Commander is now a nice, wonderful Drag source for the
new DnD.  Boy, is it cute.

Question:  should I use the default icon for DnD provided by Gtk+
or use the old icons I have? the old icons are a bit more sexy.

Miguel.
1998-10-21 01:09:50 +00:00
Miguel de Icaza
114209e3eb copy files trough cvs 1998-10-20 23:44:39 +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
0a024abfb5 In-line icon renames actually rename the file. WEEEEEEEEEE! 1998-10-14 06:26:05 +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
Pavel Roskin
6fcef05d42 It is not needed to remove gnome/gui.tcl because it is never created here 1998-10-01 16:17:28 +00:00
Miguel de Icaza
181774a7fa Solaris compilation fix 1998-09-29 17:52:59 +00:00
Miguel de Icaza
20157ab85e 1998-09-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c: Hook to invoke the editor from the context menu.
1998-09-25 23:07:23 +00:00
Miguel de Icaza
8fac5dd743 More makefile fixes -mig 1998-09-25 20:00:42 +00:00
Miguel de Icaza
6b449b8ae8 Removed the toolbar.
Guys: please, if you make changes to the Midnight Commander, please
fill in a ChangeLog entry.

Miguel.
1998-09-25 01:31:52 +00:00
Paul Sheer
004d818a54 toolbar added 1998-09-20 14:23:53 +00:00
Pavel Roskin
b81161f131 "make clean" tried to erase tkmc instead of gmc 1998-09-18 18:30:44 +00:00
Pavel Roskin
58f09ff469 URL updated 1998-09-18 18:21:47 +00:00
Pavel Roskin
3745c22c69 make should not rebuild gmc every time. 1998-09-18 12:55:02 +00:00
johne
49643c9ffb gdesktop.c: launcher-program.xpm to png. 1998-09-17 05:42:05 +00:00
Paul Sheer
5036dfc48f call to edit added for gnome, menus and F4 key now works 1998-09-14 20:35:21 +00:00
Miguel de Icaza
b09d70e07e Forgot to commit this 1998-09-08 03:36:40 +00:00
Pavel Roskin
c50ea17db9 Minor corrections to make CVS ignore gmc, tkmc and mxc respectively 1998-09-07 19:30:02 +00:00
Owen Taylor
86d9078964 Mon Aug 31 10:46:32 1998 Owen Taylor <otaylor@redhat.com>
* gscreen.c (display_mini_info): Removed calls to
	gtk_clip_label_set() hack, since its cut-n-paste code didn't work
	with new GTK's. If excessive resizes are a problem, they can be
	solved by adding an adjustment around the label, and calling
	gtk_container_set_resize_mode().
1998-08-31 14:40:49 +00:00
Miguel de Icaza
b95d74c493 Make it work with recent Gtk changes 1998-08-29 21:38:02 +00:00
Miguel de Icaza
77c27f6130 Make program relocatable trough MCHOME variable, patch from Ludovic Drolez 1998-08-26 20:23:10 +00:00
Raja R Harinath
25ed8288b9 * gdesktop.c: Include "mad.h", for xmalloc.
* gkey.c: Likewise.
* gscreen.c: Likewise.
(panel_create_file_list): Use `g_free', not `free'.
1998-08-20 22:04:52 +00:00
The Rasterman
5240be11ae Wed Aug 19 19:45:16 EDT 1998 The Rasterman <raster@redhat.com>
* gdesktop.c - changed dnd setting routine for desktop icon to set
	events on child window...
	* gtrans.c - chnaged routines to make window with
	child rawing area and set shape on parent window
1998-08-19 23:39:57 +00:00
Miguel de Icaza
3f35312dad Minimal fix 1998-08-14 19:38:50 +00:00
Vincent Renardias
3bc1fbeb25 Tue, 7 Jul 1998 13:16:38 +0200 [Vincent]
* de.po: completed translation (contributed by <joey@debian.org>)
1998-07-07 11:18:51 +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
Vincent Renardias
ff3c190818 Fri, 3 Jul 1998 13:57:37 +0200 [Vincent]
* Updated de.po + typo corrections contributed by joey@debian.org
1998-07-03 11:58:26 +00:00
Pavel Roskin
947942f488 If cd failed on "make uninstall" mc.hlp and gnome icons were deleted from
the source directory.
1998-06-26 09:41:17 +00:00
Miguel de Icaza
96e34093a7 Use new gtk exported function 1998-06-23 17:22:02 +00:00
Manish Vachharajani
1194fd272b Changlogs ... 1998-06-23 03:33:30 +00:00
Manish Vachharajani
7ee5ddf7b0 Make things compile with gtk-1.1, also removed arfs from the Makefile since it seems not to exist 1998-06-23 02:27:34 +00:00
Pavel Roskin
2f1eda7776 "make install" and "make uninstall" did not handle icons correctly 1998-06-18 07:37:15 +00:00
Pavel Roskin
a7a330d75d Leading spaces replaced with tabs in all makefiles. 1998-06-09 13:09:19 +00:00
Miguel de Icaza
a533715938 Cosmetical fix for using the new rounded boxed selection in gnome-icon-list -mig 1998-06-08 00:30:18 +00:00
Miguel de Icaza
465cd6bda9 VFS changes from the list; A lot of fixes for the GNOME interface
that have been reported.  More to come.
1998-06-03 14:08:47 +00:00
Norbert Warmuth
a6736ce62a Sun May 31 13:19:59 1998 Norbert Warmuth <k3190@fh-sw.de>
* Makefile.in: use @LIBVFS@ when referring to libvfs-mc.a (one
reference wasn't converted, yet).
1998-05-31 20:18:40 +00:00
Miguel de Icaza
d537538609 1998-05-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gwidget.c (x_create_input): Set the entry's visibility if it is
	a password field.
1998-05-30 19:09:01 +00:00
Miguel de Icaza
08dc3ad481 Only process drop events for the data types we actually know.
Should help Jaka's MDI.

Miguel
1998-05-27 00:21:32 +00:00
Marc Ewing
37c46d866c 1998-05-26 Marc Ewing <marc@redhat.com>
* Makefile.in: use @LIBVFS@ when referring to libvfs-mc.a
1998-05-26 19:41:44 +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
24116079fb *** empty log message *** 1998-05-26 05:01:24 +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
Miguel de Icaza
fa9cc8e6a9 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_create_directory_entry): Fix, make a
	g_strdup copy of the name. Fixes bug report #78.
	(desktop_icon_context_popup): Simplified this routine as we are
	using file_popup now anyways.
1998-05-25 22:16:11 +00:00
Miguel de Icaza
0baa6ae099 Weee! First bugs fixed from the Bug tracking system:
1. Selecting text in an input line and typing a char
   now does the expected thing (Bug #17)

2. Drag and drop betwen icon view was broken (Bug #16
   (This is a bug introduced by the fact that when Icon
   View was introduced, I left the testing for the view
   mode here and there)

Extra stuff: runtime warnings fixed when creating a new window;
moved the "new window" option to the "file" menu, it makes more
sense there.  Force event flushing when I change the progress
status for vfs code.

Miguel
1998-05-24 22:21:56 +00:00
Miguel de Icaza
a416ee4f7b Cool changes:
1998-05-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gwidget.c (x_create_input): Disable the use of the GNOME entries
	for now, as they are very slow.  We need to figure out what is
	wrong with this.

	With this change, dialog boxes close quickly instead of taking
	ages to close.

	* gscreen.c, gdesktop.c (file_popup_add_context, file_popup):
	Share the context menu code in gdesktop.c and gscreen.c.  The
	desktop pop up menus now include all of the stuff that would have
	appeared in the Panel.

	* gdesktop.c (desktop_icon_remove): Remove the file associated
	with this desktop entry if it is on the ~/desktop directory.
1998-05-23 00:55:03 +00:00
Miguel de Icaza
f7851d17c2 1998-05-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (load_dnd_icons): Remove the code and the icons that
	we had here privately.  Use new gnome-stock functionality
	instead.
1998-05-22 01:07:00 +00:00
Miguel de Icaza
3c06d7ee5e Do not lower on expose -mig 1998-05-21 18:52:35 +00:00
Elliot Lee
22118c031b Lower icons on expose 1998-05-21 17:21:59 +00:00
Miguel de Icaza
b57ee04233 Changes:
- We now provide both url:ALL and file:ALL drag types.  This
	  allows applications that are not vfs-aware (all of them
	  right now :-) to work even if the files dragged are from a
	  remote site.

	  If the files are remote, and the target only accepts
	  file:ALL, a temporary file is created (or files, if multiple
	  files are dragged) and the names of the temporary file names
	  are transfered.

	- Added ABOUT-NLS file :-)

Miguel.
1998-05-21 04:16:15 +00:00
Miguel de Icaza
477a46d49e 1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (set_window_text): Pass new justification parameter to
	gnome_icon_paint_text().
1998-05-20 23:06:52 +00:00
Miguel de Icaza
d6e872a113 1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gpageprop.c (item_properties): Restore the arrow cursor for the
	desktop icon windows.

	* gdesktop.h (desktop_icon_t): Removed unused title field.
1998-05-20 22:10:06 +00:00
Miguel de Icaza
9c120a91b0 1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (set_window_text): Made it use the new
	GnomeIconTextInfo functions.

1998-05-18  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gscreen.c (panel_create_icon_display): Set some good separator
	characters for the file icon list.
1998-05-20 19:57:32 +00:00
Miguel de Icaza
9f5523e4e9 Bug fixing from the TODO . 1998-05-20 06:49:08 +00:00
Miguel de Icaza
4de36e79d8 1998-05-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpageprop.c (item_properties), gprop.c: Add executable editing
	(command, and terminal).  Save the dentry after modification

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

	* gprop.c (change_icon): Test for gp, as the combobox emits the
	"changed" signal when shutting down.  Great.

	* gdesktop.c (desktop_reload): Missing mc_closedir
	(desktop_setup_icon): Fix memory leak.
	(get_desktop_icon): Fix memory leak.
	(desktop_create_directory_entry): Set the size of the exec
	vector.
	(desktop_create_launch_entry): Same.

	We now create launch entries instead of trying to support
	regular dropped stuff on the desktop, this makes things easier and
	more consistent.

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

	* ext.c: Memory leak fixed.
1998-05-20 05:49:16 +00:00
Miguel de Icaza
3a3c99ed4c Pass1 of the QNX port of mc from Tamasi Gyorgy 1998-05-20 02:12:06 +00:00
Miguel de Icaza
96c55ff5bb Various memory leak fixes.
Miguel.
1998-05-19 18:37:03 +00:00
Miguel de Icaza
0dad671321 1998-05-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_select_item): Test for full icon visibility instead
	of partial visibility only.
1998-05-19 04:02:33 +00:00
Miguel de Icaza
f4a5f85ecf Moved the text icon layout code from here. 1998-05-18 22:48:48 +00:00
Tom Tromey
7c515a1b5c Sat May 16 02:29:51 1998 Tom Tromey <tromey@cygnus.com>
* gdesktop.c (url_dropped): `exec' field of desktop entry now a
        vector.
        (dentry_execute): Likewise.
        (desktop_icon_remove): Likewise.
        (get_transparent_window_for_dentry): Likewise.
        (desktop_create_directory_entry): Likewise; also initialize
        exec_length.
1998-05-16 20:54:28 +00:00
jaka
3fd39ad792 1998-05-16 Jaka Mocnik <jaka.mocnik@kiss.uni-lj.si>
* gscreen.c (create_popup_submenu): fixed bug which caused it to require
	0 instead of 1 marked files for F_SINGLE file_actions.
	* gscreen.c (file_popup): first item in the menu displays "..." when
	multiple files are selected.
1998-05-16 13:01:23 +00:00
Tuomas Kuosmanen
1c4c051ed8 Updated the icon a bit... - should look better. / tigert 1998-05-16 07:42:48 +00:00
Tuomas Kuosmanen
b3e735f98c Added the EXECUTABLE-icon (running stuff, like an engine, ya know :) - tigert 1998-05-16 04:21:06 +00:00
Miguel de Icaza
809fbb32d6 Fixed problem with context popup menu not showing anything.
I should really learn C :-)

Miguel.
1998-05-15 20:01:11 +00:00
Tuomas Kuosmanen
c4bf161f3f CORE icon... "Your code sucks! Debug!..." :) - tigert 1998-05-15 19:29:57 +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
c08415b616 1998-05-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtrans.c (create_transparent_text_window): Removed the hack to
	lower the window on exposes.  Guess what happens when you have two
	icons on the same spot.
1998-05-15 01:08:46 +00:00
Tuomas Kuosmanen
29ad62715a Added 'general file' icon :) - tigert 1998-05-14 03:39:41 +00:00
Norbert Warmuth
6029deefa6 Thu May 14 01:56:11 1998 Norbert Warmuth <k3190@fh-sw.de>
* configure.in: Don't add -lintl to LIBS when included gettext is
used (further checks for libraries would fail because libintl.a
isn't build, yet). Instead use and substitute LINTL.

* src/Makefile.in (OURLIBS):      add @LINTL@
* gnome/Makefile.in (EXTRALIBS):  add @LINTL@
* tk/Makefile.in (EXTRALIBS):     add @LINTL@
* vfs/Makefile.in (LIBS):         add @LINTL@
* xv/Makefile.in (EXTRALIBS):     add @LINTL@
1998-05-14 00:13:36 +00:00
Tuomas Kuosmanen
d695aec85b Added a new folder icon for the gmc BIG icon view - tigert 1998-05-13 21:56:14 +00:00
Elliot Lee
bf7a1621e7 Whenever we receive an expose_event for one of the icons on the desktop,
gdk_window_lower() it. This makes it seem like icons are really part of
the desktop.
1998-05-13 16:31:16 +00:00
Miguel de Icaza
309a9ae50f Make switch buttons work -mig 1998-05-12 20:43:42 +00:00
Miguel de Icaza
595c9f87d8 Keyboard works on iconic view. It is basically done.
We now just need to get some nice icons.

I am also revamping a little the toolbar, to have a switch to
icon mode and switch to listing mode icons.  To make people
happy.  More on this tomorrow.

Miguel.
1998-05-12 04:26:21 +00:00
Miguel de Icaza
d3d6d4530e Icon View/Listing view dialog box is working.
Next project: put a toolbar so that people that dont bother to
check "Display mode" menu entry will be able to change the mode.

Miguel.
1998-05-10 22:35:07 +00:00
Miguel de Icaza
d51b0cacff 1998-05-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtrans.c (set_window_text): draw pixmaps without transparency
	correctly.
1998-05-09 22:39:54 +00:00
Miguel de Icaza
9d3dafcc3e Do not hard code the libraries used -mig 1998-05-09 22:36:59 +00:00
Miguel de Icaza
4feaae8ed4 My wish list for DnD support in Gtk:
Really, you really need to:

	1. Let the drag source window act as a drag target.

	2. Let the drag shapped window re-enter the source window.
	   You have to fight with the shaped window to drag it
	   inside the origin window.

Miguel.
1998-05-08 03:31:32 +00:00
Miguel de Icaza
3bcbc2856b Forgot this as well: Load the icons from the $prefix/... directory.
Miguel.
1998-05-08 02:28:46 +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
e82bcc2bfc Various changes:
- Fix for the gmc crashes when no window is open and you
	  start a program.

	- Bad attempts at fixing the sigwinch propagation.

	- Internationalization fixes from Alex (ru.po and
	  bunch of updates to the text mode edition to deal
	  wiht this).

Miguel.
1998-05-06 20:04:08 +00:00
Miguel de Icaza
41871990d5 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_drag_start): Do not attempt to use
	icons if we could not load the images for the icon.
1998-05-05 08:08:56 +00:00
Miguel de Icaza
4ab86b1b5b Weeeee! Fix frenezi
1998-05-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gwidget.c (x_update_input): Keep the cursor always visible.

	* gview.c (view): Use a buttonbar widget.

	* gwidget.c (buttonbar_clicked): Provide a trivial implementation
	of the buttonbar that only responds to key sequences.

	* gmain.c (dialog_panel_callback): Call midnight_callback to get
	the main bindings working.

	* gdesktop.c (perform_drop_manually): Use p to walk the dropped
	data.  This is an important bug fix.

	* gmain.c (idle_destroy_window), main.c: Session management now
	supports not showing a toplevel window (in case all of the windows
	were closed).

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

	* view.c (view_quit_cmd): Use dlg_stop.

	* main.c (ctl_x_cmd): Implement ctl-x handling as a state of the
	key press events.  Drop the usage of mi_getch to acomplish this
	task.
	(midnight_callback): Deal with the current map depending on the
	c-x state.
1998-05-05 06:18:55 +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
6e4c1d461d 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (perform_drop_manually): Use p to walk the dropped
	data.  This is an important bug fix.
1998-05-05 02:47:43 +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
29726d03dc Simple fix for dnd symlinks -mig 1998-05-04 04:33:53 +00:00
Miguel de Icaza
df1c003f37 Better you-can-not-drop-here icon -mig 1998-05-03 18:50:10 +00:00
Miguel de Icaza
bb969259ad Put hack back -mig 1998-04-30 23:55:40 +00:00
Miguel de Icaza
f0e14b4328 removed old workaround for imlib bug -mig 1998-04-30 23:38:29 +00:00
Miguel de Icaza
6f4e21db18 Image cache fixed -mig 1998-04-30 06:15:29 +00:00
Miguel de Icaza
530e74ff39 Added session management support to gmc 1998-04-30 06:03:17 +00:00
Miguel de Icaza
aa4e089bfd 1998-04-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gprop.c (gprop_general_new): Added an simple icon preview to the
	icon selector.
1998-04-30 04:04:39 +00:00
Miguel de Icaza
98ff71d81f - Simplified the update_panels routine to only care about the current
panel, the old way of using it was an historic relic.

- This now works properly with the GNOME edition.

- Finished/fixed the implementation of the desktop-remove-icon
  functionality.

- Raster's new multi-ok window.  For some reason this is not getting
  loaded.   I am compiling gdb 4.17 now, as it is better for egcs
  output.

Miguel.
1998-04-30 03:21:52 +00:00
Norbert Warmuth
097fe43280 I improved the movement keys of the internal viewer a little bit.
Now in wrap mode the End key and cursor up key behave much better
(e.g. when viewing binary files with lots of wrapped lines).
It's not perfekt but it's better than it used to be.



Tue Apr 28 06:52:24 1998  Norbert Warmuth  <k3190@fh-sw.de>

* gnome/gcmd.c (gnome_open_terminal): Changed my_system(1,...) to
my_system(EXECUTE_AS_SHELL,...)


Tue Apr 28 06:06:03 1998  Norbert Warmuth  <k3190@fh-sw.de>

* vfs/extfs.c (extfs_open, extfs_close): Changed my_system(1,...)
to my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
copyout in 4.1.32.


Tue Apr 28 06:11:08 1998  Norbert Warmuth  <k3190@fh-sw.de>

* view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
of bottom_first (we mustn't use an already calculated and cached
value because it is invalid for the new mode and the End key would
not move to the end of the file).

* configure.in: Renamed the option `--with-our-slang' to
`--with-included-slang' (this one looks better because we also
have an `--with-included-gettext').
Make the option `--with-ext2undel' recognice a given path.

* cmd.c (view_file_at_line): In plain view (F13) set the default
magic flag to zero in order to view the file content unprocessed
(esp. don't uncompress files if they are compressed). The
view_simple_cmd got broken when the default magic flag in view.c
was changed from 0 to 1.

* view.c (do_view_init, goto_line): Set wrap mode temporary off
to make goto line number work, i.e. `line number' now always means
line number in file and not line number on screen (in wrap mode
one long line wrapped once is displayed in two lines on the screen).
That's important when the viewer is invoked from the find file
dialog to display even in wrap mode approxiamtly the part of the
file where we found the content we searched for.

(move_forward2): In wrap mode lines were sometimes counted wrong
causing cursor up to move more than one line.

(move_backward2): Fixed the movement in wrap mode.

(change_viewer): Always re-init viewer when we have a filename,
i. e. if the viewer is invoked with simple_view_cmd then we can switch
with the F8 key between unprocessed file content und uncompressed
file content.
(view_init): re-init view also when magic flag was altered
1998-04-28 14:19:48 +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
e5fdb6db9c Fix for the radio button -mig 1998-04-25 23:05:30 +00:00
Miguel de Icaza
f037975889 1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_create_radio): Fix the WRadio widgets.
1998-04-24 23:55:44 +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
9f508487f2 . 1998-04-23 19:31:32 +00:00
Miguel de Icaza
301a9f4846 Put desktop icons on bottom 1998-04-23 18:23:32 +00:00
Miguel de Icaza
c02bca1dac All mighthy sync! -mig 1998-04-22 06:01:38 +00:00
Miguel de Icaza
f1afd65290 Property changes on the desktop -mig 1998-04-17 02:23:29 +00:00
Miguel de Icaza
b4dadfbecd Minor fix -mig 1998-04-17 01:21:27 +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
8a6020da6b Layout for two dialog boxes that I had missed. Thanks Elliot! -miguel 1998-04-16 18:15:39 +00:00
Miguel de Icaza
6981cf6275 Compilation fixes, bugs reported by DrMike -mig 1998-04-16 18:08:08 +00:00
Miguel de Icaza
8f56dbcab1 More more more more -mig 1998-04-16 04:27:44 +00:00
Miguel de Icaza
482e8af0fb My vain attempts at getting Radio Buttons working properly -mig 1998-04-16 04:22:56 +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
506094f44a 1 line fix-mig 1998-04-15 22:38:36 +00:00
Miguel de Icaza
41eeb94d42 1998-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (create_transparent_text_window): Destroy the cursor
	properly.
1998-04-15 07:45:51 +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
515e64efdc 1. Use the old artificial drag start code.
2. Load/Save desktop-icon transparent state.
3. Add arrange icons code.
4. Add snap to grid option (default now).
5. Fixed viewer crash.

Still left to do:
- Nice config dialog to set the above variables.
1998-04-15 03:16:29 +00:00
Miguel de Icaza
1ff37554b8 1998-04-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.h: Added extern declarations for the
	want_transparent_icons and want_transparent_text variables.

	* gtrans.c (set_window_text): Now we use the new global variables
	want_transparent_icons and want_transparent_text to decide how to
	paint the pixmap and mask.  The want_transparent_* variables can
	thus be configured for the smartness/speed of your X server when
	using shaped windows.
1998-04-14 19:08:15 +00:00
Norbert Warmuth
fd6cdb19cc Fri Apr 12 02:40:41 1998 Norbert Warmuth <k3190@fh-sw.de>
* gwidget.c (x_create_input): return 1 if the widget has been
        initialized manually (there was no return value)

        (x_create_buttonbar): to few arguments to sprintf (button number
        was missing); return a value.

Sun Apr 12 02:48:26 1998  Norbert Warmuth  <k3190@fh-sw.de>

        * xv/xvscreen.c: removed duplicate (conflicting) definition
        of do_enter()
1998-04-12 00:52:13 +00:00
Miguel de Icaza
95ac574288 Sync to my tree -mig 1998-04-11 02:53:35 +00:00
Miguel de Icaza
de86596546 Assorted bug fixes -mig 1998-04-09 21:59:32 +00:00
Miguel de Icaza
2f0f1be529 Nicer back/forward implementation -miguel 1998-04-09 05:05:14 +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
30252eccf8 Fixes, fixes, fixes, fixes, fixes.
Thanks DrMike for the detailed listing of problems.

Miguel.
1998-04-07 19:08:31 +00:00
Miguel de Icaza
3c6328b4de updated todo list with Mike's (msf@redhat.com) comments 1998-04-02 17:47:45 +00:00
Marc Ewing
3bbe4851e0 - added gdkprivate.h to gscreen.c
- tk Makefile tweak to use menu.* instead of tkmenu.*

(someday my commit will work!)

-Marc <marc@redhat.com>
1998-04-01 19:18:05 +00:00
Miguel de Icaza
0842a5390c 1998-03-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcache.c: Added an Image cache for all of the imlib-loaded
	images to avoid destroying/reloading the images.

	* gdesktop.c, gtrans.c: Use the image cache.
1998-04-01 00:52:33 +00:00
Miguel de Icaza
8c4cee34c3 Temporary work around for the buggy DnD implementation in Gdk:
Gdk should not be sending drag_begin_events if a drag event has not
finished.

Gdk has some wierdo way of moving the shaped window, it flashes a
*lot*.

This basically avoid leaving garbage on the desktop, but it is not
the best fix.

Miguel.
1998-03-31 07:35:38 +00:00
Miguel de Icaza
a424615f54 Small menu stubs, will be gone soonish -mig 1998-03-30 21:29:31 +00:00
Miguel de Icaza
54442413ee Finishing touches to new dirhist Makefiles. - mig 1998-03-30 21:26:14 +00:00
Miguel de Icaza
2b79792d85 Move the MSG_ERROR testing to query_dlg 1998-03-29 21:07:37 +00:00
Miguel de Icaza
391f08d9e5 Initialize dentry->geometry -mig 1998-03-25 19:29:12 +00:00