Commit Graph

331 Commits

Author SHA1 Message Date
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
Miguel de Icaza
ffbd234ae6 Two changes:
- Kill the stack in the treestore.  It was the wrong approach
	  at fixing the problem.  Now emit all of the change notifications
	  after the tree has been finished the check.

	- GtkCTree is not a tree internally but a list and the gaps
	  are, well, gaps.  Deal with it.

Miguel.
1999-02-07 06:16:30 +00:00
Miguel de Icaza
0108bdba8f 1999-02-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* treestore.h: Replaced TreeStore.check_name_list by a GSList, for
	minimal memory savings.

	* treestore.c (tree_store_remove_entry): Removed unused code for
	base_sublevel computation.

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

	* gtkdtree.c (gtk_dtree_insert_node): This function was never
	returning the newly-created sibling.
1999-02-07 05:04:09 +00:00
Timur Bakeyev
5cf1eca0cb Compile warnings.. 1999-02-07 02:38:49 +00:00
Miguel de Icaza
85e46b6b30 1999-02-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (apply_metadata_change): #include
	string.h and replace references to rindex to strrchr.
1999-02-07 01:00:49 +00:00
stric
9f85b779f5 1999-02-07 Tomas Ogren <stric@ing.umu.se>
* glayout.c, gnome-file-property-dialog.c: s/rindex/strrchr/
To get rid of BSDism and make it compile on solaris 2.6
1999-02-07 00:37:20 +00:00
ettore
eb560f7e15 Simple patch to make the location bar occupy all the available
horizontal space.
1999-02-06 22:43:17 +00:00
Miguel de Icaza
12199ba19c 1999-02-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (drag_data_get): Set the Netscape URL from the icon
	if it is available.  Wheee!  We can now drop icons onto Netscape.
1999-02-06 04:15:29 +00:00
Miguel de Icaza
9260355181 1999-02-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.h: Added prototype for gmc_open_filename().

	* gdesktop.c (desktop_icon_info_open): Fixed call to
	gmc_open_filename().  See why it is good to have prototypes? :-)

	* gdnd.c (perform_action): Oops.  Removed a leftover "break" that
	was causing the loop to exit, so you could not operate on more
	than one file.
1999-02-06 02:40:38 +00:00
Miguel de Icaza
dcd005a0ca 1999-02-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpopup2.c (popup_handle_properties): Update the URL information
	on change.

	* gnome-file-property-dialog.c (generate_actions_box): Fix memory leak.
	(create_general_properties): Fix memory leak.

	* gdesktop.c (desktop_icon_update_url): New function.  Updates any
	changes done to the url/caption on the file-property-dialog.

	* gnome-file-property-dialog.c
	(gnome_file_property_dialog_finalize): Release all of the
	resources allocated (metadata routines alwayre return an allocated
	block of memory).

	Add support for changing the url an icon points to and the caption.

	* gdnd.c (drop_url_on_directory): Better set the icon-filename
	metadata entry instead of hard coding it.
1999-02-06 01:57:26 +00:00
Miguel de Icaza
e3ab7e0c88 1999-01-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkedit/gtkedit.c: Hack to get a string defined in a macro into
	the catalog file.

1999-02-02  Tuomas Kuosmanen  <tigert@gimp.org>

	* new_icons/gnome-core.png: New icon for core files. Someone
	please add the code part :)
1999-02-05 23:59:13 +00:00
Jonathan Blandford
0dc1ef5771 1999-02-05 Jonathan Blandford <jrb@redhat.com>
* gcmd.c (gnome_reverse_selection_cmd_panel): new function -- does
	good things

	* gscreen.c (panel_icon_list_select_icon): uses new popup menu
	(panel_icon_list_button_press): ditto

	* gpopup2.c (gpopup_do_popup2): new implementation of popup
	menu.  Many changes -- almost all internal.  Much cleaner now...
	Off to England.
1999-02-05 23:52:44 +00:00
Miguel de Icaza
e67a8b9601 Code to display URL icons on the desktop as the urls. 1999-02-05 23:15:52 +00:00
Miguel de Icaza
c1fad92e34 1999-02-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_open): Run "execute" if the file
	is an executable.  I forgot that gmc_open does not test for
	executable-ness.
1999-02-04 22:30:54 +00:00
Jonathan Blandford
fc0a9456a0 1999-02-04 Jonathan Blandford <jrb@redhat.com>
* gnome-file-property-dialog.c (apply_uid_group_change): Bug fix.
	(apply_metadata_change): Another bug fix.
1999-02-04 18:53:25 +00:00
Miguel de Icaza
b698ebfe03 1999-02-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdnd.c (gdnd_validate_action): Show the correct feedback when
	dragging URLs.
1999-02-04 03:35:26 +00:00
Miguel de Icaza
e4e44b6b2a 1999-02-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_open): Use gmc_open_filename
	instead of the stuff that goes trough a file_entry as we loose the
	full pathname.

	* gnome-file-property-dialog.c (generate_actions_box): Tag "open"
	for translation
	(apply_metadata_change): Use fm-open instead of fm_open for the
	metadata keys.
1999-02-04 01:37:33 +00:00
Miguel de Icaza
06e379de33 1999-02-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_file_list_configure_contents): Make the icon on
	the type column be displayed.
	(panel_file_list_select_row): Removed dead code.
	(panel_file_list_press_row): Select the row before calling
	gpopup_do_popup.
1999-02-03 21:55:11 +00:00
Miguel de Icaza
912d258e8a 1999-02-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (drop_types): Allow dropping URLs on file panels.
1999-02-03 11:49:33 +00:00
Miguel de Icaza
04c4abd818 1999-02-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdnd.c (gdnd_validate_action): Added an "on_desktop" argument;
	this specifies that the user is dragging over the desktop.  Added
	cases for drags of desktop icons and URLs.
	(gdnd_perform_drop): New public function to handle drops.  This is
	now the master function to handle drops -- use this to make all of
	MC consistent.
	(drop_on_directory): Made static and renamed from
	gdnd_drop_on_directory().  Made it fit for use by
	gdnd_perform_drop().
	(drop_url_on_directory): New function to drop an url on a
	directory, moved over from gdesktop.c.
	(drop_uri_list_on_directory): New function to handle drops of URI
	lists on a directory.
	(drop_on_file): New function to handle drops on a non-directory
	file entry.  This is moved over from gdesktop.c,
	desktop_icon_drop_uri_list().  This is yet to be finished.

	* gdesktop.c (desktop_icon_drop_uri_list): Fix memory leak.
	(desktop_drag_motion): Use gdnd_validate_action().
	(dnd_icon_targets): Allow dropping URLs on icons.
	(icon_drag_motion): Use gdnd_validate_action().
	(desktop_drag_data_received): Use gdnd_perform_drop().
	(icon_drag_data_received): Use gdnd_perform_drop().

	* gscreen.c (panel_icon_list_drag_data_received): Use
	gdnd_perform_drop().
	(panel_clist_drag_data_received): Use gdnd_perform_drop().
	(panel_tree_drag_data_received): Use gdnd_perform_drop().

	* gcmd.c (gnome_about_cmd): Fixed Foundation typo, and updated the
	copyright date.
1999-02-03 11:46:01 +00:00
Miguel de Icaza
eae99facd9 1999-02-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (create_general_properties): Use
	strrchr instead of rindex
1999-02-02 21:41:26 +00:00
Miguel de Icaza
e0328ad911 1999-02-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c: Init gicon here to avoid crashing when we have the
	metadata database locked.  Not really important, but makes the
	code cleaner (in terms of fixes).
1999-02-02 03:31:39 +00:00
Miguel de Icaza
64aeddb117 1999-02-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_drag_motion): If the user is dragging a
	Netscape url, allow ACTION_LINK.
	(setup_desktop_dnd): Now we use a single GtkInvisible widget to
	proxy both DnD and clicks on the desktop.
	(setup_motif_dnd_proxy): New function to set up a widow as a Motif
	DnD proxy (to allow drops from Netscape, for example).
	(setup_desktop_click_proxy_window): Use the proxy_invisible widget.
	(drop_url): Reload desktop icons after creating the url entry.
	(desktop_icon_info_place): Allow a drop from something other than
	a desktop icon to be placed where the user wants.
	(desktop_drag_motion): Unconditionally specify ACTION_MOVE if we
	are dragging a desktop icon.
	(desktop_icon_info_place): Remove the icon from its slot before
	calling the smart-positioning routines.
1999-02-02 02:34:46 +00:00
Miguel de Icaza
4ef71a33c2 1999-01-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (reload_desktop_icons): Reload the icon image for a
	file that already exists in the desktop, because it may have
	changed.

	* gdesktop-icon.c (desktop_icon_reshape): Center the text
	correctly if the user is using huge icons.
1999-02-01 06:26:55 +00:00
Timur Bakeyev
4638935351 gscreen.c mods...
Mon Feb  1 00:49:18 1999  Timur Bakeyev <mc@bat.ru>

	* gscreen.c (panel_configure_file_list): Add central justification,
	as we got it (useless, imho :)
1999-01-31 23:08:33 +00:00
Norbert Warmuth
f75a6470ca Rerun configure when you have problems with missing slang.h.
Sun Jan 31 20:04:13 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/vfs.c (vfs_strip_suffix_from_filename): Whoever replaces every
occurance of 0 with NULL should stop this stupidy. And replacing '\0'
with NULL is plain wrong!!. Reverted this replacement.

* vfs/ftpfs.c (load_no_proxy_list): ditto


Fri Jan 29 22:55:56 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* slang/slang.h: renamed to slang-mc.h

* slang/Makefile.in: delete slang.h on "make clean"

* configure.in: link slang/slang-mc.h to slang/slang.h when the
included slang is used. Problem was that MC's slang.h was used
when we compiled with an already installed SLang and the systems
header file were included with <slang/slang.h>.
Unfortunatly I can't use AC_LINK_FILES to make the links because
if we needn't make any links AC_LINK_FILES makes a link from
srcdir to top_builddir (builddir != srcdir).

Temporary add $LGPM to $LIBS when checking for the resizeterm
and keyok functions (ncurses might be linked against GPM).

Substitude PACKAGE (intl/Makefile makes use of it)


Sun Jan 31 19:42:47 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gnome/Makefile.in (install_mx): make it work with srcdir != builddir
(gmc.gnorba is located in $srcdir)

* src/hotlist.c (add_new_entry_input, add_new_group_input): Make the
quick_widget arrays static and various changes needed because they
are now static. add_widgets_i18n recalculates button positions
which get lost when the quick_widget arrays are non static.

* src/screen.c (to_buffer): nul terminate string when using strncpy

* src/setup.c: Save and restore new option ftpfs_first_cd_then_ls.


Sun Jan 31 19:57:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (insert_dot): New function. Insert a "." into the linked
list. Stat'ing the root directory of a ftpfs fails if the dot is
missing.

(retrieve_dir): insert "." into the linked list if the ftp server
haven't send it.

Sun Jan 31 19:50:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* The following changes make ftpfs work with a remote AmiTCP
server are the result of somehow longish EMail debugging session. I
don't know any public server of this kind but I was told the
combination Unix/Amiga boxes are often used in intranets.

* vfs/ftpfs.c (translate_path): New function. Translate a Unix path,
i.e. MC's internal path representation (e.g. /somedir/somefile) to
a path valid for the remote server. Every path transfered to the
remote server has to be mangled by this function right prior to
sending it. Currently only Amiga ftp servers are handled in a
special manner.

* vfs/ftpfs.c (various places): use translate_path

* vfs/ftpfs.c (login_server): Assume we have to mangle pathnames if
the greatings string from the server contains the word Amiga. If
this assumption is wrong I have to find another way to turn on
path translation.

* vfs/ftpfs.c (ftpfs_get_current_directory): Prepend a leading slash
if it is missing. MC needs it as seperator between hostname and
path in its internal url representation.
1999-01-31 20:28:13 +00:00
Miguel de Icaza
e4cd1393d6 1999-01-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (reload_desktop_icons): Move metadata_unlock after
	the positioning loop (as we use the metadata there too).
	(desktop_icon_info_new): Accept a new parameter: url.
	(drop_url): New function.  Creates the files that represent urls
	on the desktop.
	(text_changed_url): New routine to handle url-renames

	Use the metadata "desktop-url" property to figure out if an icon
	represents an url.
1999-01-30 21:52:40 +00:00
Jonathan Blandford
abc8c20b29 1999-01-28 Jonathan Blandford <jrb@redhat.com>
* gnome-file-property-dialog.c (create_settings_pane): We only let
	you set info if we are a regular file, or a link to a regular file.

	* gdesktop-icon.c (desktop_icon_reshape): Cut-n-paste error fixed
	by Quartic.

1999-01-27  Jonathan Blandford  <jrb@redhat.com>

	* gnome-file-property-dialog.h (struct _GnomeFilePropertyDialog):
	Now make open field mandatory and icon selection optional.
	* gnome-file-property-dialog.c: as above

	* gpopup.c (panel_action_properties): only allow setting images if
	we_can_afford_the_speed.

	* gicon.c: make we_can_afford_the_speed non-static
1999-01-28 05:48:02 +00:00
Miguel de Icaza
53c34b967d 1. Long filename bug fix.
2. corba-gmc is now the default "gmc" installed
3. corba-gmc now by default tries to activate a running instance
   instead of registering a server.

Miguel.
1999-01-28 04:37:47 +00:00
Timur Bakeyev
4c17f82857 Thu Jan 28 02:15:48 1999 Timur Bakeyev <mc@bat.ru>
* gdialogs.c: fixed "regexp.h" -> "eregexp.h" conversion.

	* olddnd.c: Replaced copy_strings() with g_strconcat().
1999-01-27 23:22:50 +00:00
Miguel de Icaza
c44dd59069 1999-01-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_clist_motion): Stop the emission of the
	motion_notify_event signal so that it does not reach the clist.
	We do not want it to select rows while dragging.
	Replaced copy_strings() with g_strconcat().

	* gdnd.c (gdnd_validate_action): Do not override GDK_ACTION_ASK.

	* gdesktop.c: Updated the TODO list at the top of the file.
1999-01-27 02:55:43 +00:00
Timur Bakeyev
be7cbf3768 Glibing... (3)
Wed Jan 27 03:14:46 1999  Timur Bakeyev <mc@bat.ru>

	* Converted memory managment to Glib - where it wasn't done. Now we
	use g_new()/g_malloc()/g_strdup()/g_free() routings. copy_strings() re-
	placed by g_strconcat(), and sprintf() by g_snprintf(). Some other,
	minor changes.
1999-01-27 01:14:57 +00:00