Commit Graph

413 Commits

Author SHA1 Message Date
Jonathan Blandford
0a28a308b3 1999-03-19 Jonathan Blandford <jrb@redhat.com>
* gcmd.c (dentry_apply_callback): new function.
	(gnome_new_launcher): We can now create new

1999-03-19  Jonathan Blandford  <jrb@redhat.com>

	* file.c (panel_operate): Ugly hack for GNOME.  We only treat the
	copy as if it were many files, and skip the only_one branch.
1999-03-19 17:13:33 +00:00
Miguel de Icaza
c30a2e3bcc 1999-03-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpopup2.c (create_mime_actions): Free full_name, just once, not
	once per action.
1999-03-19 14:16:27 +00:00
Miguel de Icaza
ba56e04c4c 1999-03-19 Paul Raines <raines@slac.stanford.edu>
* gtkdtree.c (gtk_dtree_load_path): Uses a phantom node to get
	directories with the expandable flag.  Avoids loading directories
	at two levels.
1999-03-19 11:15:12 +00:00
Miguel de Icaza
256467b407 Do not popup a window if it fails to mount the device.
Reported by Tim Janik.

Miguel.
1999-03-18 18:43:52 +00:00
Timur Bakeyev
470d754497 Thu Mar 18 14:59:12 1999 Timur Bakeyev <mc@bat.ru>
* gnome-open-dialog.c (read_directory): s/basename/x_basename/g
1999-03-18 12:09:37 +00:00
Jonathan Blandford
fbc07a11d4 1999-03-17 Jonathan Blandford <jrb@redhat.com>
* main.c (main): Put in a warning when run as root.

1999-03-17  Jonathan Blandford  <jrb@redhat.com>

	* gnome-file-property-dialog.c (generate_icon_sel): I don't know
	who broke this, but it was a mess.  It now does the right thing,
	and works...
1999-03-17 19:21:16 +00:00
Jonathan Blandford
56d2b086aa 1999-03-16 Jonathan Blandford <jrb@redhat.com>
* gnome-open-dialog.c (read_directory): We now honor .order files.
1999-03-17 03:23:39 +00:00
Miguel de Icaza
86adbc6678 1999-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gicon.c (get_icon_set): Use iset->filename (which is a
	strdup()ed string) instead of filename as a key in the hash table,
	since the user will very likely free filename.
1999-03-17 03:20:59 +00:00
Miguel de Icaza
7313fee0b0 1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* boxes.c (symlink_dialog): Put this inside an "#ifndef
	HAVE_GNOME" since we now provide a nicer version of the dialog.

	* wtools.c (real_input_dialog_help): Removed un-needed #ifdef.

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

	* gdialogs.c (symlink_dialog): Finished implementing the new
	symlink dialog.
1999-03-16 20:46:47 +00:00
Miguel de Icaza
7a96008267 1999-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_event): I'm an idiot.  Someone teach me boolean
	logic again.  Fixed edit-on-release for icons.
1999-03-16 20:08:35 +00:00
Miguel de Icaza
eb864a4949 1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* cmd.c (edit_symlink_cmd): Generate the title of the dialog after
	we have computed the source filename.
	(edit_symlink_cmd): Use g_strdup_printf() instead of g_strconcat()
	for better internationalization.

	* wtools.c: Removed unused function input_dialog_help_2().
	(real_input_dialog_help): Put this inside an "#ifndef HAVE_GNOME",
	because now the Gnome version implements its own pretty dialog.

1999-03-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdialogs.c (real_input_dialog_help): Now we use a
	gnome_request_dialog() for generic input dialogs.  They look
	prettier and consistent now.
	(file_progress_show): Update the progress bars.  Thanks to Greg
	for noticing this!

	* Makefile.in: Removed references to gpopup.[co].
1999-03-16 00:11:32 +00:00
Gregory McLean
150cc7de1c Mon Mar 15 17:09:37 1999 Gregory McLean <gregm@comstar.net>
* gdialogs.c (file_progress_show_bytes): Fixed a GTK Warning when
	done / total >= 1.0
	* file.c : Actually update the progress bar when copying files around.
1999-03-15 22:23:02 +00:00
Miguel de Icaza
d1b80d6f09 1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_select_item): It is not necessary to call
	gnome_canvas_update_now() here.

	* gdesktop-icon.c (set_icon): Do not destroy the icon image.

	* gnome-file-property-dialog.c
	(gnome_file_property_dialog_finalize): Do not destroy the icon
	image, since it is a shared resource.
1999-03-15 18:01:37 +00:00
Miguel de Icaza
3829bc2fce 1999-03-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (text_changed): If the file has the "icon-caption"
	metadata set, then change that instead of renaming the file.  This
	can be used by URLs and is also needed by the mountable device
	icons.
	(text_changed_url): Removed this function now that text_changed()
	can handle all cases.

	* gdnd.c (drop_url_on_directory): Set the "icon-caption" metadata
	for URLs.

	* gdesktop.c (icon_event): Handle button-2 clicks and drags
	properly.
1999-03-15 00:00:00 +00:00
Miguel de Icaza
d3aa1fc39a 1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmount.c (get_mountable_devices): Show error message if the
	/etc/fstab is not readable by the user.
1999-03-14 23:31:50 +00:00
Miguel de Icaza
30a80d6c8a 1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* dlg.c (dlg_select_nth_widget): Handle the case where h->current
	points to NULL.
1999-03-14 23:18:25 +00:00
Miguel de Icaza
824fdcc5b8 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* file.c (erase_file): Here we need to mc_lstat(), not mc_stat().
	Since we use the resulting buf.st_size to update the progress, we
	need the size of unresolved links.  This also makes it consistent
	with screen.c:do_file_mark().

	* screen.c (select_item): Return immediately if this is a desktop
	panel.

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

	* gdesktop.c (create_panel_from_desktop): Do not assert that
	panel->count > 0, because we may actually not have any icons in
	the desktop.
	(desktop_popup): Reload the desktop once the popup menu is done.
	(create_panel_from_desktop): Be consistent with the way totals are
	computed in screen.c:do_file_mark().
1999-03-13 01:02:29 +00:00
Miguel de Icaza
26556bcf3b 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (create_panel_from_desktop): Do not assert that
	panel->count > 0, because we may actually not have any icons in
	the desktop.
	(desktop_popup): Reload the desktop once the popup menu is done.
1999-03-12 23:48:36 +00:00
Miguel de Icaza
49570e5d3e 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-file-property-dialog.c (gnome_file_property_dialog_init):
	Set the dialog to not destroy-on-close.
1999-03-12 17:37:21 +00:00
Miguel de Icaza
b3a1fd790c 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gpopup2.c (gpopup_do_popup2): Fixed Miguel's code.
1999-03-12 05:45:43 +00:00
Jonathan Blandford
77e65821e3 fixed bug where changing the name of a file in the properties box also
changed the icon whether or not it had actually changed.
1999-03-12 03:03:08 +00:00
Miguel de Icaza
a369d4a8d8 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpopup2.c (gpopup_do_popup2): Until Federico look over this, I
	am fixing this crash.
1999-03-12 02:43:26 +00:00
Miguel de Icaza
bd86803f3e 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (text_changed): Rename the metadata and refresh the
	desktop.  This also fixes bug #573.
1999-03-12 00:26:47 +00:00
Jonathan Blandford
c6a3431459 1999-03-11 Jonathan Blandford <jrb@redhat.com>
* gnome-file-property-dialog.c (create_settings_pane): change the
	wording to be a tad clearer.
1999-03-12 00:22:42 +00:00
Miguel de Icaza
68ed301272 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gpopup2.c (create_mime_actions): Do not free the file name here,
	since it is passed on to the callback.  It will be freed on the
	destroy handler instead.
1999-03-11 23:38:31 +00:00
Miguel de Icaza
1b0258b1d6 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gpopup2.c (escape_underlines): New function to escape the
	underlines in a string so that GtkLabel will include them in the
	final result.
	(create_mime_actions): Escape the underlines from the MIME action
	descriptions.
1999-03-11 23:22:47 +00:00
Miguel de Icaza
3fd381cc32 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
Fix bug #261: inconsistent labels in view menu and toolbar,
	unsynchronized items.

	* glayout.c (panel_view_menu_uiinfo panel_view_toolbar_uiinfo):
	Made the view names consistent with the toolbar names.  Also,
	added underscore accelerators to the menu items.
	(copy_uiinfo_widgets): New function to copy the widgets from an
	uiinfo array into a widget array.
	(create_container): Copy the uiinfo widgets to the panel
	structure.

	* gcmd.c (set_view_type): New function to set the list view type
	and synchronize the menu and toolbar items.
	(gnome_close_panel): Free the view menu/toolbar item arrays.
1999-03-11 22:17:36 +00:00
Miguel de Icaza
f96fdd9bbc 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gpopup2.c (perform_mount_unmount): Set the icon's cursor while it is
	being operated on.
	(handle_mount): Use perform_mount_unmount().
	(handle_unmount): Likewise.
	(handle_eject): Set the icon's cursor while it is being ejected.

	* gdesktop.c (desktop_icon_set_busy): New function to set a watch
	or normal cursor for a desktop icon.
1999-03-11 19:37:24 +00:00
Miguel de Icaza
7458010662 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_open): Set the cursor to a watch
	while the icon is being opened.  Also, fixed memory leaks.
	(do_eject): Added a missing return value.
1999-03-11 19:23:23 +00:00
Miguel de Icaza
cbebd9cd27 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (do_mount_umount): Use g_readlink here.

	* gpopup2.c (handle_eject): Small tuning.  And use g_readlink :-).

	* gmount.c (mount_point_to_device): New function.  Mapes a mount
	point to its device.  Required since we are now using the mount
	point (as this is not ambiguous) as the key for the devices and
	the eject command needs the device name, not the mount point.

	* gdesktop.c (desktop_icon_info_open): First try to see if
	filename is mountable.  Then do the directory tests and the file
	launching tests.  Fixes mount-by-double click.

	* gmount.c (setup_devices): Use new tigert icon.
1999-03-11 07:53:26 +00:00
Miguel de Icaza
9be5d13eb3 1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* glayout.c (save_panel_types): Do not save the setup of a desktop
	panel.

	* gpopup2.c (handle_mount): Use get_full_filename().
	(handle_unmount): Likewise.
	(handle_eject): Likewise.
	(handle_open): Likewise.
1999-03-11 04:49:55 +00:00
Miguel de Icaza
0bd0f7dac2 1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (update_url): Made static.
	(desktop_reload_icons): Call update_url() when updating an
	existing icon.

	* gpopup2.c (handle_properties): Do not update the icon url here.
1999-03-11 03:18:48 +00:00
Miguel de Icaza
ca1437548b 1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
This is a semi-big slew of changes to integrate the DESKTOP_BRANCH
	into the main trunk.  Now the gdesktop code creates a temprary
	WPanel structure and passes it on to the core file management
	functions.  Also, the menu code is improved (we now use gpopup2;
	gpopup should go away shortly and gpopup2 should replace it).
	This makes the desktop act consistently with the file panels.
	Thanks to Jonathan for his help with this branch.

	* gdnd.c (perform_action): Use mc_lstat(), not mc_stat().

	* glayout.c (update_panels): Do not update the panels that are
	desktop panels.

	* gdesktop.c (icon_is_in_area): An icon is not considered to be in
	a 0x0 area.

	* gpopup2.c (handle_open): Fetch the desktop icon from the
	filename and call desktop_icon_info_open().

	* gdesktop.c (desktop_icon_info_get_by_filename): New function to
	look up a desktop icon by its filename.

	* glayout.c (create_new_menu_from): Test for the ".desktop" suffix
	correctly.

	* gpopup2.c (handle_properties): If the file comes from a desktop
	panel, always allow edition of the icon image.

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

	* file.c (erase_dir): Erase metadata for directories as well.
	(erase_dir_iff_empty): Likewise.
	(copy_file_file): Delete/copy the metadata even for
	char/block/sock/fifo files.  Same thing for when copying symlinks.
	(copy_dir_dir): Delete/copy the metadata.
	(move_dir_dir): Delete/move the metadata.
	(recursive_erase): Delete the metadata.
1999-03-11 02:40:53 +00:00
Miguel de Icaza
0559c128f7 1999-03-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdialogs.c: Support ui->ctx to be NULL, as file.c will set this
	to NULL for background operations.


1999-03-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* utilunix.c (g_readlink): New function.  Wraps all the nonsense
	of readlink into a nice routine.

	* filegui.c: Support ui->ctx to be NULL, as file.c will set this
	to NULL for background operations.

	* background.c (do_background): Handle EINTR in dup2.
1999-03-11 02:00:12 +00:00
Miguel de Icaza
d80cea83fa 1999-03-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (icon_drag_data_received): Pass the full directory
	name to gdnd_perform_drop.

	* gpopup.c (create_regexp_actions): This routine no longer creates
	the default copy/move/delete context menu entries.

	(file_actions): Include the copy/move/delete options here.  This
	also enabled me to reorder things to put "Delete" closer to the
	top, as it is a pretty common operation.
1999-03-10 17:54:33 +00:00
Miguel de Icaza
cb800625fc 1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (session_save_state): Add call to gnome_config_sync().
1999-03-09 04:34:05 +00:00
Miguel de Icaza
83818189e0 1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gutil.c (my_system_get_child_pid): reset SIGPIPE to a sensible
	value.
	(my_system_get_child_pid): Close also stdin/stdout/stderr

	* gdesktop.c (is_mountable): Allow user-nfs devices to be mounted
1999-03-09 03:56:54 +00:00
Miguel de Icaza
f3a438eae3 1999-03-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (can_drop_on_clist): New function to figure out if the
	user is trying to drop on a valid region of a GtkCList.  It sucks
	to have to poke into its internal geometry, though.
1999-03-09 00:13:07 +00:00
Miguel de Icaza
dc5611105e 1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (apply_metadata_change): only set
	the needs-terminal property if we actually created such entry.
1999-03-08 21:00:33 +00:00
Sergey Panov
30052d80eb * gcustom-layout.c, gprefs.c: Make the preferences dialog
translatable. (include files in gcustom-layout.c and use of
        the _() macro in gprefs.c)
1999-03-08 05:18:50 +00:00
Miguel de Icaza
8b195d8760 1999-02-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (create_settings_pane): Simplify
	the test and fix it.
1999-03-01 01:18:40 +00:00
Miguel de Icaza
1caafe5ce5 1999-02-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdnd.c (drop_on_file): Fix these so that they can use the
	metadata drop-action.
1999-03-01 00:54:47 +00:00
Miguel de Icaza
3d0c3214fa 1999-02-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_open): Ugly.  Needs to share more
	code here.  Use the metadata first, and the is_exe to find out how
	to launch an application.
1999-03-01 00:11:40 +00:00
Miguel de Icaza
3a6fa38650 1999-02-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (perm_group_new): Check the return
	value of getgrgid.
	(perm_group_new): Do not use a grp if it does not exist.
1999-02-28 07:19:33 +00:00
Miguel de Icaza
cf5ce5b680 1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* glayout.c (my_app_create_menus): New function, used to create
	our menus and set the realy properly, to make cpanel (ie,
	current_panel) always consistent with what the user users.

	So, no need to kill the tearoff menus in gmc now.
1999-02-27 00:04:40 +00:00
Miguel de Icaza
80d26de170 1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmount.c (is_block_device_mountable): compare the device name
	here.
1999-02-26 19:18:51 +00:00
Miguel de Icaza
e432e1fa4b Enhanced the device detection, should catch most cdroms now.
It also scans all the devices, instead of stopping in the
first device.

Miguel
1999-02-26 09:12:17 +00:00
Miguel de Icaza
9a938c3ae9 Internal viewer no longer "jumps" when dragging the scrollbar.
Miguel.
1999-02-26 07:26:40 +00:00
Miguel de Icaza
8578ca5e2e 1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_open): Add needs terminal support.

	* gnome-file-property-dialog.c (create_settings_pane): Add Needs
	terminal check box

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

	* gaction.c (gmc_open_filename): Add support for needsterminal.

	* gscreen.c: Add New Folder option to the panel popup.
1999-02-26 07:17:51 +00:00
Owen Taylor
f197b80587 1999-02-24 Owen Taylor <otaylor@redhat.com>
* fileopctx.h file.c: Moved recursive delete query
	dialog into gdialogs.c for GNOME.

1999-02-25 Owen Taylor  <otaylor@redhat.com>

	* gdialogs.c (file_delete_query_recursive): GNOME
	replacement for recursive delete query dialog.
1999-02-26 00:27:23 +00:00