Commit Graph

362 Commits

Author SHA1 Message Date
Miguel de Icaza
8220628b18 Scanning devices now can run external program g-print 1999-02-25 05:11:35 +00:00
Miguel de Icaza
a57560f5dd 1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gicon.c (gicon_get_filename_for_icon): Return const char *, this
	tells the user of this routine "you better not touch or free this
	you dofus".

	* gnome-file-property-dialog.c (apply_metadata_change): Always set
	the name of the icon to the new value, as the entry will always
	match the imlib image anyways (due to the fixes I did to const
	correctness).
	(generate_icon_sel): Do not free the value.  We do not own this
	return value.

	* gdesktop.c (is_mountable): NULL terminate string returned from
	readlink.  Yes guys, readlink does not NULL terminate things.
	(do_mount_umount): ditto.

	* gnome-file-property-dialog.c (init_metadata): ditto
1999-02-25 04:08:43 +00:00
George Lebl
934532f95b Tue Feb 23 17:41:45 1999 George Lebl <jirka@5z.com>
* gmain.c: set the restart property of the gnome client to
          RESTART_IMMEDIATELY or RESTART_NEVER if we're gonna quit
1999-02-24 01:48:55 +00:00
Miguel de Icaza
009093222a 1. Allow symlink to executables to provide a drop action
2. Fix the DnD code to work in all places.,

Miguel.
1999-02-24 01:40:08 +00:00
Miguel de Icaza
ca444518b8 1999-02-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_drag_data_received): Simplify.

	* gscreen.c (panel_icon_list_drag_data_received): Pass the full
	path to gdnd_perform_drop.
	(panel_clist_drag_data_received): same.

	* gdnd.c (drop_on_directory): We no longer take a file_entry
	here.  The directory we get passed is already a fully qualified
	name of the target location.

	* gwidget.c (x_create_input): Hook to the changed signal and sync
	the input with our view of the entry.  This fixes the paste bug
	reported.
1999-02-23 19:21:35 +00:00
George Lebl
0f57dbd94e Tue Feb 23 01:57:22 1999 George Lebl <jirka@5z.com>
* gmount.c: fix obvious typos, use str in option_has_user, fix
          mt_opts typo and is_block_device_mountable can't return TRUE nor
          FALSE, so it returns NULL

this makes it actually compile
-George
1999-02-23 09:57:52 +00:00
Miguel de Icaza
f1120801b6 1999-02-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (apply_metadata_change): Fix memory leak.

1999-02-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gdesktop.c (desktop_reload_icons): Fix memory leak.

	* glayout.c (create_new_menu_from): Fix memory leak.
1999-02-23 06:14:02 +00:00
Miguel de Icaza
96a7f2c4f6 Sync 1999-02-23 02:53:30 +00:00
Miguel de Icaza
aca0afd352 1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_open): Launch a panel at the
	location of the mount point.

	* gmount.c (setup_devices): Use g_list_free, not g_free.  Fed,
	test your fixes to my code ;-)

	* glayout.c (create_container): Add a Desktop menu if the WM is
	not GNOME compliant.
1999-02-23 01:56:09 +00:00
Miguel de Icaza
0cacebab2a 1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (setup_motif_dnd_proxy): Use Window instead of
	gint32, fix from George Lebl.
	(setup_xdnd_proxy): ditto.
1999-02-22 22:59:58 +00:00
Miguel de Icaza
7aec2adddf 1999-02-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.h: Removed set_current_panel() since it was never used.

	* glayout.c (set_current_panel): Made static and renamed from
	set_new_current_panel().
	Removed old toolbar cruft.

	* gmount.c (get_mountable_devices): Made static.

	* Makefile.in (ICONS): Added i-floppy.png, i-cdrom.png,
	i-printer.png.  Thanks, Tigert!
1999-02-19 00:18:25 +00:00
Miguel de Icaza
b169beea0e 1999-02-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* setup.c: Declare extern int tree_panel_visible for the GNOME
	version.

1999-02-18  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gmount.c (gmount_setup_devices): New function to set up the
	mountable devices on the desktop directory.  Moved over from
	gdesktop.c.  Added an argument that specifies whether it should
	clean up the device list first.
	(cleanup_devices): Delete the metadata for the devices.
	(setup_devices): Free the list of device names.  Use the proper
	icon for each device.
	(create_device_link): Better error checking.

	* gdesktop.c (create_desktop_dir): Use gmount_setup_devices().
	(desktop_icon_info_destroy): Made static.
	(desktop_popup_items): The command for rescanning mountable
	devices should go here.
	(handle_rescan_devices): Call gmount and refresh the desktop.

	* gdesktop.h: Removed the declaration of tree_panel_visible, since
	it has nothing to do with the desktop.

	* glayout.c (gnome_panel_commands_menu): Removed the recreate
	devices command.

	* gdesktop.c (desktop_popup_items): Added a new command to create
	a file window.
1999-02-18 21:43:07 +00:00
Miguel de Icaza
b683efeda3 1999-02-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
* dir.c (if_link_is_exe): Made this function take in a directory
	argument as well -- the sought file may not be in the cwd, and
	file entries do not carry the directory the file refers to.

	* screen.c (do_enter_on_file_entry): Pass in the cpanel->cwd to
	if_link_is_exe().

1999-02-17  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdesktop.c (do_mount_umount): Removed unused variable.
	(do_eject): Return FALSE if there is no eject command.
	(setup_devices): Removed unused variable.

	* gdnd.c (drop_on_file): Pass the directory to if_link_is_exe().
	(gdnd_validate_action): Likewise.
	(gdnd_perform_drop): Made consistent with the rest of the code by
	taking the directory name along with the file entry.
	(gdnd_validate_action): Likewise.

	* gdesktop.c (icon_drag_motion): Pass the directory to the gdnd
	functions.
	(icon_drag_data_received): Likewise.
	(desktop_drag_motion): Likewise.
	(desktop_drag_data_received): Likewise.
	(desktop_icon_info_open): Pass the directory to if_link_is_exe().

	* gscreen.c (panel_icon_list_drag_data_received): Pass the
	directory to gdnd functions.
	(panel_clist_drag_data_received): Likewise.
	(panel_tree_drag_data_received): Likewise.
	(panel_clist_drag_motion): Likewise.
	(panel_icon_list_drag_motion): Likewise.
1999-02-18 00:07:26 +00:00
Miguel de Icaza
6eb9a08b29 1999-02-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (reload_desktop_icons): Load the information provided
	on the .desktop file for the desktop icon information: icon
	filename and text to be displayed.
1999-02-17 19:58:24 +00:00
Miguel de Icaza
2aa1314dba 1999-02-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpopup.c (create_actions): Add ejectable

	* gdesktop.c (do_eject): Add eject command.
1999-02-17 16:32:12 +00:00
Miguel de Icaza
e9f974dd11 1999-02-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpopup.c (create_actions): Add support for mountable icons.

	* gdesktop.c (try_to_mount): Add an option to automatically mount
	links on the desktop that point to devices.
	(is_mountable): Returns true if a pathname is mountable.

	* glayout.c: Add the dirsizes command here.

	* gmount.c: New file.  Implements support routines for
	mount/umount.
1999-02-17 02:18:12 +00:00
Miguel de Icaza
c6f07526b7 1999-02-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* i-symlink.png: Flipped the image around, since we are putting
	the little icons on the lower-right corner.
	* i-stalled.png: Likewise.
1999-02-17 01:12:21 +00:00
Miguel de Icaza
fda350b4ea 1999-02-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gicon.c (gicon_get_filename_for_icon): Doh, use image_hash here.
1999-02-17 00:51:45 +00:00
Miguel de Icaza
c52fde6398 1999-02-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gicon.c: Lots of changes to support the little symlink/stalled
	icons that get overlaid on the normal file icons.  We now have the
	concept of an icon set, which is a cache of normal icons plus
	their overlaid versions.

	* gnome-file-property-dialog.c (apply_metadata_change): Use
	gicon_get_filename_for_icon().
	(generate_icon_sel): Likewise.

	* gnome-file-property-dialog.c (create_general_properties): Use
	buffers of size MC_MAXPATHLEN.
	(init_metadata): Likewise.
1999-02-17 00:38:16 +00:00
Miguel de Icaza
6dbe424c38 1999-02-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmetadata.c: Removed the gmeta_del_icon_pos() function, since it
	is no longer used anywhere.

	* gdesktop.c (reload_desktop_icons): Use gnome_metadata_delete()
	instead of gmeta_del_icon_pos().
	(desktop_icon_info_delete): Likewise.
	(desktop_icon_info_destroy): Do not call gnome_metadata_delete().
1999-02-16 20:18:34 +00:00
Miguel de Icaza
53cfcf095d 1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (arrange_desktop_icons): I am such a doofus, I did
	not initialize two variables here.
1999-02-16 03:42:52 +00:00
Miguel de Icaza
d66cb8705a 1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (reload_desktop_icons): Take auto-positioning and
	snap-positioning into account.  This is the right thing to do.
	(get_icon_auto_pos): Do auto-positioning in two steps, first from
	the requested position to the end of the slot array, then from
	slot zero forwards if required.
1999-02-15 22:44:18 +00:00
Miguel de Icaza
1370e6c166 Notice: release coming in about 90 minutes.
Miguel.

1999-02-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gcmd.c (gnome_open_terminal_with_cmd): New routine, based on the
	gnome_open_terminal routine, that will allow the user to specify a
	command to execute (used internally).

	* gaction.c (gmc_edit_filename): Support for the GNOME editor
	environment properties.

	* gdesktop.c (create_desktop_dir): Support GNOME_DESKTOP_DIR
	variable to configure the desktop directory.
1999-02-15 21:19:03 +00:00
Miguel de Icaza
39d815d7e9 1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* mc.keys.in.in: Use "gnome-moz-remote file:%d/%f" for the html
	file actions.
1999-02-15 20:59:09 +00:00
Miguel de Icaza
79340b3015 1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (toolbar): Added a "rescan" button.
1999-02-15 20:34:07 +00:00
Miguel de Icaza
573cf10675 1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gprefs.c (create_prop_box): Make the preferences dialog modal.
	Also, set the window title and set the window's parent.
	Removed some unused functions.
1999-02-15 20:14:11 +00:00
Miguel de Icaza
2c1f45565b 1999-02-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_popup): Handle popup menus for the desktop.
	(arrange_desktop_icons): New function to auto-arrange the desktop
	icons.
	(reload_desktop_icons): Take care of positioning the new icons by
	ourselves; do not rely on desktop_icon_info_new() to do it.
	(remove_from_slot): Reset the icon's slot to -1.
	(reload_desktop_icons): Show all the icons after they have been
	loaded, instead doing it one by one.

	* gscreen.c (file_list_popup): Handle popup menus for the blank
	areas of the file panels.
	(panel_icon_list_button_press): Call file_list_popup().
	(panel_file_list_press_row): Likewise.
1999-02-15 17:59:49 +00:00
Sergey Panov
c0782a21c0 * glayout.c: Fixed my own stupid typo( stock ID instead of NULL)
it was not critical. A few minor, rather cosmetic changes in
        GnomeUIInfo structures.
1999-02-15 09:09:01 +00:00
Miguel de Icaza
11a4f1fd61 1999-02-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* mc.keys.in.in: Use Tigert's new icon for man pages.
1999-02-13 20:23:36 +00:00
Miguel de Icaza
cae3f1b9ab Various typo fixes in gnome-file-property-dialog.c. nd in gdialogs.c.
It does not look as it was tested a lot.

Miguel

v
1999-02-13 20:12:35 +00:00
Miguel de Icaza
3b6b98dc2f 1999-02-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* new_icons/Makefile.in (ALLICONS): Added Tigert's new icons for
	PS and EPS files.  Thanks, Tigert!

1999-02-12  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* mc.metadata.in: Added a regexp for EPS files.

	* mc.keys.in.in: Use Tigert's new icon for Postscript files.
	Possible FIXME: are there different MIME types for PS and EPS
	files?
1999-02-12 22:16:32 +00:00
Miguel de Icaza
5cd0eeb455 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop-icon.c (set_icon): Do not destroy the image if it is
	the same as the old one.  Sigh, imlib really needs proper
	refcounting.

	* gscreen.c: Use gpopup_do_popup() until the new version is
	finished.

	* gpopup2.c (create_actions): Made the action selection logic
	simpler.
	(gpopup_do_popup2): Now can only operate on panels.
	(file_actions): Sanitized the actions a bit.

	* gutil.c (my_system_get_child_pid): sa_handler must be
	gnome_sigchld_handler, not gnome_sigchld_installed.

	* gpopup.c (dicon_properties): Do not call reread_cmd().  This is
	a hack until the menus for panels/desktop are finished.

	* gscreen.c (panel_file_list_press_row): Use gpopup_do_popup2().
1999-02-12 02:15:17 +00:00
Miguel de Icaza
9d41043798 1999-02-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gutil.c (my_system_get_child_pid): Implement a erase-temp-file
	when child dies instead of waiting for child that was launched
	from shell/temp-file to finish.
1999-02-11 21:16:36 +00:00
Miguel de Icaza
2fae6571f9 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_place): Better icon placement by
	rounding to the proper slot number.
	(select_range): Simpler range selection for exact Windows behavior.
1999-02-11 18:24:08 +00:00
Miguel de Icaza
793afd03de 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdnd.c (drop_on_directory): Do not ask for the action twice.
	This was a leftover from a bit of code reorganization.
1999-02-11 18:02:07 +00:00
Miguel de Icaza
3db04c2bb5 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_icon_list_button_press): Fixed "=" -> "!="
	typo.
1999-02-11 17:11:18 +00:00
Miguel de Icaza
1266ed6d73 Bunch of changes:
1. desktop entries on the desktop work.
2. Update the mc.keys.in for using some gnome-libs icons
instead of the old ones.
3. Find command rewritten for GNOME.

miguel.
1999-02-11 05:52:55 +00:00
Miguel de Icaza
2352737144 1999-02-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Makefile.in (ICONS): Added i-fifo.png to the list of icons.

	* gicon.c (gicon_init): Load the proper FIFO and socket icons.
	(gnome_file_entry_color): Return the proper icon for FIFOs.

	* i-fifo.png: Added this file, and made i-sock.png be the right
	image (thanks, Tigert!).
1999-02-10 22:07:39 +00:00
Miguel de Icaza
aab8269cca 1999-02-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* main.h: Added prototype for main_corba_register_server().

1999-02-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gscreen.c (ILIST_FROM_SW): New macro to extract the icon list
	from the scrolled window.
	(panel_create_icon_display): Create a scrolled window and put the
	icon list inside it.  Changed the rest of the code to know about
	this.

	* gcorba.c (do_window_close): It turns out that we *do* need to
	call CORBA_free().  It was a bug in ORBit which was causing this
	to crash.
1999-02-10 21:03:04 +00:00
Miguel de Icaza
e4ef9c4bae 1999-02-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gcorba.c (do_window_close): It turns out that we *do* need to
	call CORBA_free().  It was a bug in ORBit which was causing this
	to crash.
1999-02-10 20:01:13 +00:00
Miguel de Icaza
2dddadbdc0 1999-02-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (drag_end): Reload the desktop when a drag from the
	desktop terminates (the user may have moved something away).
1999-02-10 03:51:56 +00:00
Miguel de Icaza
7109c92eae 1999-02-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcorba.c (do_window_close): Removed call to CORBA_free, as
	PortableServer_POA_deactivate_object already calls CORBA_free on
	the object.
1999-02-10 02:13:23 +00:00
Miguel de Icaza
0afe42d919 1999-02-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* glayout.c (gnome_close_panel_event): This function should return
	FALSE.

	* gcorba.c (corba_init): Cast poa to PortableServer_POA.
	(impl_GNOME_FileManagerWindow_close): Call gnome_close_panel(); do
	not destroy the widget by hand.

	* gcmd.c (gnome_close_panel): This function should be void.

	* gpopup2.c (popup_handle_rescan): Call reread_cmd().

	* gscreen.c (panel_icon_list_button_press): Return TRUE if we
	handled a popup menu.
1999-02-10 01:50:08 +00:00
Miguel de Icaza
a08bebe655 1999-02-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcorba.c (impl_GNOME_FileManagerFactory_create_window): Fix bug
	spooted by federico.  I was connecting to the wrong signal.
1999-02-09 23:56:23 +00:00
Miguel de Icaza
1dfa5305cf 1999-02-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_class_init): Added two new signals,
	scan_begin and scan_end.
	(gtk_dtree_expand): Call scan_begin() and scan_end().
	(gtk_dtree_select_row): Call scan_begin() and scan_end().
	(gtk_dtree_expand): Use gtk_ctree_select(), not gtk_dtree_select_row().
	(gtk_dtree_collapse): Select the node when it is collapsed.

	* gscreen.c (panel_create_tree_view): Added handlers for the
	scan_begin and scan_end signals of the tree -- these will set the
	cursor to a watch while the tree is being scanned.
1999-02-09 20:10:10 +00:00
Miguel de Icaza
9036590857 Keep the gnome-metadata in sync with the actions of the
file manager.

Miguel.
1999-02-09 00:31:57 +00:00
Miguel de Icaza
c4426b3f8a 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (entry_click): On mouse clicks, mark the input as
	changed-without destroy.
1999-02-07 21:01:21 +00:00
Miguel de Icaza
c3a9b75fa8 1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_create_panel): Removed a couple unused variables.
1999-02-07 10:39:42 +00:00
Miguel de Icaza
2d77bf3f10 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_select_row): Disable row selection when
	were are removing entries from the tree.
1999-02-07 07:23:41 +00:00
Miguel de Icaza
faa8560535 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gutil.c (my_system_get_child_pid): Fix.  We always wait for the
	child process.
1999-02-07 07:04:04 +00:00