Commit Graph

645 Commits

Author SHA1 Message Date
Miguel de Icaza
075ccc0046 2000-01-26 Federico Mena Quintero <federico@helixcode.com>
* idl/FileManager.idl (Desktop): Added arrange_icons() method and
	an ArrangeType enum.
2000-01-25 10:30:53 +00:00
Miguel de Icaza
6028fd42da 2000-01-02 Federico Mena Quintero <federico@helixcode.com>
* gaction.c (gmc_open_filename): Use gnome_mime_needsterminal()
	instead of gnome_mime_type_or_default().  This was a thinko.
	Thanks to Aaron Lehmann <aaronl@vitelus.com> for pointing this
	out.
2000-01-03 16:39:00 +00:00
Matthias Warkus
137cb9d4b5 Added icons. 1999-12-28 11:19:42 +00:00
Miguel de Icaza
38fd84c470 1999-11-29 Federico Mena Quintero <federico@redhat.com>
* gdesktop.c (desktop_arrange_icons): Return immediately if there
	are no icons in the desktop.  BUGFIX: bugs.gnome.org #3789.
	(desktop_popup): Desensitize the "arrange icons" commands if there
	are no icons in the desktop.
1999-11-29 21:17:14 +00:00
Pavel Machek
82b8ed4aa5 1999-11-01 Pavel Machek <pavel@ucw.cz>
* make_thumb.c: close symlink hole

       * *.c: add return_val_if_fail, it is better than crashing. Sorry
       about that *image = NULL, but gcc should be able to optimize
       out in non-debugging case.
1999-11-01 16:30:49 +00:00
Miguel de Icaza
d818919b23 1999-10-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop-init.c (desktop_init_at): Put an equal sign between the
	option and the rest.
1999-10-27 20:04:25 +00:00
Miguel de Icaza
1b0a9eaae1 1999-10-20 Federico Mena Quintero <federico@redhat.com>
* gdesktop.c (text_changed): Do not try to rename the file if the
	name did not change.  BUGFIX: GNOME bug tracker #2851.
1999-10-21 00:36:10 +00:00
Jonathan Blandford
cf94f9ae21 1999-10-06 Jonathan Blandford <jrb@redhat.com>
* gpopup2.c (create_actions): Now the Mount/Unmount/Eject device
	code will be lumped together with the other MIME_ACTIONS, even
	thought they're not controlled there.
1999-10-06 19:23:16 +00:00
Norbert Warmuth
f072b5cda1 1999-10-06 David Martin <dmartina@usa.net>
* po/POTFILES.in: added gdeskdop-init.c

* po/es.po, es_ES.po: updated


1999-10-06  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gnome/gmain.c, gmain.h: removed disable_root_warning. This variable
wasn't defined anywhere.
1999-10-06 06:33:55 +00:00
Vincent Renardias
a2898e9795 1999-09-30 Vincent Renardias <vincent@ldsol.com>
* gmain.c, gmain.h: add a '--disablerootwarning' flag which
        disable the iritating "You're running gmc as root." dialog box.
        (idealy, that box should also contain a "don't show this
        message again" checkbox; any objection?).
1999-09-30 11:23:22 +00:00
Miguel de Icaza
7347dc591a 1999-09-29 Federico Mena Quintero <federico@redhat.com>
* gcorba.c (corba_activate_server): New function.  Activate the
	POA manager here, when we are actually ready to process requests,
	instead of at the beginning of initialization.

	* gmain.c (create_panels): Call corba_activate_server().
1999-09-29 20:14:43 +00:00
Miguel de Icaza
cf73615d4d 1999-09-22 Federico Mena Quintero <federico@redhat.com>
* gscreen.c (panel_chdir): Clear the lists if the chdir operation
	was not successful.

	* gtkflist.c (gtk_flist_button_press): Only emit the open_row
	signal if we are not on the empty area.
1999-09-22 17:18:07 +00:00
Miguel de Icaza
851413523a 1999-09-22 Federico Mena Quintero <federico@redhat.com>
* gnome-open-dialog.c (gnome_open_dialog_new): Expand the tree
	when we are done generating it.
1999-09-22 16:57:08 +00:00
Miguel de Icaza
b8bb09e58d 1999-09-21 Federico Mena Quintero <federico@redhat.com>
* gdesktop.c (desktop_reload_icons): Do not call x_flush_events()
	when we are done.
1999-09-21 21:24:07 +00:00
Miguel de Icaza
2bded57962 1999-09-21 Federico Mena Quintero <federico@redhat.com>
* gsession.c (create_panel_from_info): The widgets are not created
	yet, so just set the panel->list_type field.
1999-09-21 09:04:50 +00:00
Miguel de Icaza
c10db1f41c 1999-09-21 Federico Mena Quintero <federico@redhat.com>
* gscreen.c (x_create_panel): Do not change the dialog head's
	current pointer.

	* gmain.c (x_init_dlg): Only call x_focus_widget() if there is a
	current widget.
	(non_corba_create_panels): Removed the nasty hack that created a
	dummy panel and destroyed it in the idle loop.  Wheeeeeee!

1999-09-21  Federico Mena Quintero  <federico@redhat.com>

	* dlg.c (init_dlg): Walk the list of widgets only if it exists.
	(dlg_broadcast_msg_to): Use safer list-walking code for if someone
	inserts a widget inside the message broadcast.
1999-09-21 08:09:54 +00:00
Miguel de Icaza
0fbbead100 1999-09-21 Federico Mena Quintero <federico@redhat.com>
* dlg.c (init_dlg): Walk the list of widgets only if it exists.

1999-09-21  Federico Mena Quintero  <federico@redhat.com>

	* gmain.c (x_init_dlg): Only call x_focus_widget() if there is a
	current widget.
1999-09-21 05:50:22 +00:00
Miguel de Icaza
5309648718 1999-09-20 Federico Mena Quintero <federico@redhat.com>
* gdesktop.c (handle_recreate_default_icons): New option to
	re-create the default set of icons.

	* gdesktop-init.c (gdesktop_links_init): Create the link to the
	user's home directory here.
1999-09-21 00:40:21 +00:00
Miguel de Icaza
088cd306b7 ==> ChangeLog <==
1999-09-20  Federico Mena Quintero  <federico@redhat.com>

	* gcorba.c (WindowFactory_get_windows_by_directory): Fill in the
	sequence correctly.

	* gsession.c (load_panel_info): Doh.  Fix test for presence of the
	cwd info.
	(load_session_info): If we could not load the panel info, do not
	insert bogus data in the list.
1999-09-20 23:29:45 +00:00
Miguel de Icaza
b207905d3e 1999-09-20 Federico Mena Quintero <federico@redhat.com>
* gsession.c (load_panel_info): Doh.  Fix test for presence of the
	cwd info.
	(load_session_info): If we could not load the panel info, do not
	insert bogus data in the list.
1999-09-20 22:37:29 +00:00
Miguel de Icaza
248d2ef5cc 1999-09-20 Federico Mena Quintero <federico@redhat.com>
The following is a patch from Volker Braun
	<volker.braun@physik.hu-berlin.de> to fix column resizing in the
	file panels.

	* gcustom-layout.c (custom_layout_apply): Set the
	default_user_format to the new format.

	* gscreen.c (panel_fill_panel_list): Set the column widths
	according to the previously stored values.
	Nuked the old and hideous panel_file_list_configure_contents().
	(panel_file_list_configure): Connect to resize_column in the clist.
	(panel_create_file_list): Do not connect to size_allocate.
	(x_create_panel): Set the column width array for this panel.  Set
	the user format from the default one if it exists.

	* gsession.c (PanelInfo): Added information about column widths
	and the user format.
	(save_panel_info): Save the complete information.
	(load_panel_info): Load the complete information.
	(free_panel_info): Free the user format.
	(idle_create_panels): Set the user format and column widths.

1999-09-20  Federico Mena Quintero  <federico@redhat.com>

	The following is a patch from Volker Braun
	<volker.braun@physik.hu-berlin.de> to fix column resizing in the
	file panels.

	* setup.c (options): Declare the column width option values.
	(save_configure): Save the default user format.
	(load_setup): Load the default user format.

	* panel.h (WPanel): Added a field for the column widths.
1999-09-20 20:03:58 +00:00
Miguel de Icaza
4317569de1 1999-09-20 Federico Mena Quintero <federico@redhat.com>
* lib/startup.links: Changed the news link to Gnotices

1999-09-19  David Martin <dmartina@usa.net>

	* gtkedit/editcmd.c (edit_print_string): Use unsigned char so that
	8 bit chars from strftime get displayed when inserting date.

	* lib/mc.ext.in: Add entries for bzip2 compressed pages as used in
	Mandrake 6.0. The generic entry for bzip2 moved to the end of the
	file to avoid interferences. In this one I changed the extension check
	to a type check (as used for gzip) which might give problems in some
	systems.
1999-09-20 16:34:38 +00:00
Miguel de Icaza
356209d996 1999-09-17 Federico Mena Quintero <federico@redhat.com>
* smbfs.c: #define NO_CONFIG_H before including the samba
	includes; this way it will not re=define HAVE_LIBREADLINE.  This
	situation sucks.  Should we change the names of the widget.h
	history_*() functions?

1999-09-17  Federico Mena Quintero  <federico@redhat.com>

	* gmain.c (x_init_dlg): Display a warning if the GtkTed code path
	is ever reached.
	(xtoolkit_create_dialog): Likewise.
	(x_add_widget): Likewise.
1999-09-17 20:11:53 +00:00
Owen Taylor
94323db348 1999-09-16 Owen Taylor <otaylor@redhat.com>
* Remove the magicdev autoconf test in favor of just
	including the idl file. Otherwise we have a dependency
	loop between this and magicdev.

1999-09-16  Owen Taylor  <otaylor@redhat.com>

        * gmount.c: Remove the HAVE_MAGICDEV conditional.

	* Makefile.in magicdev.idl: Add the magicdev.idl file
	here to avoid creating dependency loops.
1999-09-17 03:03:32 +00:00
Norbert Warmuth
946ac9b60b This commit mainly adds a password dialog to smbfs. In the Gnome Edition
this dialog doesn't look perfect but at least it doesn't break gmc.


1999-09-14  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gnome/layout: Added the new samba password dialog.

* src/widget.[ch] (input_new): added const qualifier

* src/util.c (wipe_password): Check for NULL.


1999-09-14  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/smbfs.c (various places): Store filenames in memory with the unix
character set and convert it back to the dos character set when filenames
are passed back to the samba server. If samba is configured correctly
this will fix the problems with filenames which contain national characters.

(bucket_set_authinfo): Set domain, username and password which will
be used to log on and authenticate against the samba server and remember this
information on a host/share basis. If set use PASSWD to get the
password. If already authenticated against the host and share use this
information. If already authenticated against host and IPC$ use this
information. If neither of the former is true ask the user how to
log on.

(authinfo_get_authinfo_from_user): New function. Query the user for
domain, username and password to use for authentication.

(authinfo_free): New function. Free memory in authentication structure.

(authinfo_free_all): New function. Free the list used to remember
authentication information.

(authinfo_compare_host_and_share, authinfo_compare_host): New functions.
Helper functions used to search the authentication list.

(authinfo_add): New function. Add one authentication entry to the
authlist.

(authinfo_remove): New function. Remove one entry from the authlist.

(free_bucket): Free memory associated with one bucket.

(smbfs_get_free_bucket): Initialize the complete connection array
with 0. Free the memory allocated for a bucket and initialize the
bucket before reusing it.

(smbfs_open_link): use new functions to get authentication information

(get_stat_info, smbfs_stat): remove unused variables.
1999-09-14 18:20:02 +00:00
Owen Taylor
d42d8d60eb 1999-09-13 Owen Taylor <otaylor@redhat.com>
* Makefile.in (MAGICDEV_OBJS): Built common/stubs
	for magicdev if we found it.

	* gmount.c (automounter_is_running): If we detected
	magicdev support at compile time, use a CORBA query
	to detect if it is running.

	* gcorba.c (WindowFactory_get_windows_by_directory): Set the
	length of the sequence we are returning.

	* gmount.c (setup_devices): is_block_device_mounted expects
	mount point, not device.
1999-09-14 05:21:39 +00:00
Miguel de Icaza
1ccd17c8f3 1999-09-13 Miguel de Icaza <miguel@gnu.org>
* glayout.c: Add C-w for sopwith.
1999-09-14 01:44:59 +00:00
Miguel de Icaza
dfc790ac4e 1999-09-13 Federico Mena Quintero <federico@redhat.com>
* gtkdtree.c (scan_subtree): Do not set the current path here,
	just load the subtree.
	(gtk_dtree_get_row_path): Removed the column argument, since it
	was never used.
	(scan_subtree): Added a path argument that can be calculated
	upstream.
	(gtk_dtree_expand): Compute the path for scan_subtree().
	(gtk_dtree_select_row): Compute the path for scan_subtree(), and
	set the tree's current path here.  This is the right thing;
	setting the current path is completely orthogonal from scanning a
	subtree.
1999-09-13 23:27:18 +00:00
Miguel de Icaza
4a3609a4f7 1999-09-13 Federico Mena Quintero <federico@redhat.com>
* gtkdtree.c (gtk_dtree_class_init): Sigh.  Create a new signal,
	called "possibly_ungrab", used to request the client to ungrab the
	mouse at the proper time.  This is required because the stupid
	clist button press handler grabs the mouse, and we don't want that.
	(gtk_dtree_select_row): Emit the possibly_ungrab signal here.

	* gscreen.c (panel_tree_drag_motion): Set the
	panel->drag_tree_dragging_over flag.
	(panel_tree_drag_leave): Unset said flag.
	(panel_tree_possibly_ungrab): Ungrab the mouse here.
1999-09-13 20:34:53 +00:00
Owen Taylor
be7b43ab5b 1999-09-11 Owen Taylor <otaylor@redhat.com>
* gcorba.c (Window_close): Fixed typo in cast.
1999-09-12 02:44:11 +00:00
Miguel de Icaza
e13620fca5 1999-09-10 Federico Mena Quintero <federico@redhat.com>
* gmount.c (setup_devices): See if our supported automounter,
	magicdev, is running and only create links for mounted CD-ROMs if
	so.
	(automounter_is_running): For now just return TRUE; we have to
	wait for magicdev to export a CORBA server.

	* gcorba.c (corba_init_server): Initialize the POA here instead of
	in register_servers().
1999-09-10 19:24:57 +00:00
Miguel de Icaza
0f59a02894 1999-09-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (apply_uid_group_change): Fix more
	broken code.
1999-09-10 19:04:34 +00:00
Miguel de Icaza
3c37665ce8 1999-09-09 Federico Mena Quintero <federico@redhat.com>
* gcorba.c (WindowFactory_close_invalid_windows): Doh.  Walk the
	list properly, since it may change as we delete windows.
1999-09-10 01:14:29 +00:00
Miguel de Icaza
e5c80d6e71 1999-09-09 Federico Mena Quintero <federico@redhat.com>
* gmc-client.c: New file.  This is a small program to which you
	can pass arguments to call the GMC CORBA interface for you.  You
	can do stuff like create a directory window, rescan the desktop,
	etc.
1999-09-09 22:46:54 +00:00
Miguel de Icaza
ca6327c290 Sync to desktop - Federico 1999-09-09 16:17:18 +00:00
Miguel de Icaza
77ae49ad81 CORBA overhaul, part 1. This will not compile. HAH. I'm taking it home - Federico 1999-09-09 00:37:02 +00:00
Miguel de Icaza
5818c1b0ff 1999-09-06 Federico Mena Quintero <federico@redhat.com>
* gtkdtree.c (gtk_dtree_size_allocate): Do the "visibility" test
	the right way.
1999-09-06 22:32:45 +00:00
Miguel de Icaza
544f443121 1999-09-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_size_allocate): Small change to improve
	the non-tree loading feature of gmc.
1999-09-06 20:56:25 +00:00
Jonathan Blandford
260d9840aa 1999-09-05 <jrb@redhat.com>
* mc.keys.in.in: changed image/x-xcf to be image/x-gimp.  Also,
	associated gimp with the various actions.  This prolly should be
	done distributed with gimp, but it's more useful here.
1999-09-05 06:56:17 +00:00
Miguel de Icaza
78fa313864 1999-09-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c: Added it here too.

	* glayout.c: Add File-new option here

	* gcmd.c (gnome_newfile_cmd): Added new routine.  Invoke when you
	want to create a new file.
1999-09-02 18:31:17 +00:00
Miguel de Icaza
0ac4d17dd9 1999-09-01 Federico Mena Quintero <federico@redhat.com>
* gscreen.c (panel_icon_renamed): Do nothing if the name did not
	change.
1999-09-01 19:28:57 +00:00
Miguel de Icaza
9e2bb07d6e 1999-08-30 Federico Mena Quintero <federico@redhat.com>
* gdnd.c (file_has_drop_action): New function to test whether a
	file has the drop-action metadata or MIME action property.
	(gdnd_validate_action): Take the drop-action metadata/MIME
	property into account.
	(gdnd_can_drop_on_file): New function to see whether a
	non-directory file can take drops.

	* gscreen.c (drop_on_panel): New helper function to drop stuff on
	a panel.  This uses gdnd_can_drop_on_file so that we have the
	correct behavior.  This enables dropping on executables and files
	with the drop-action metadata/MIME property again.
	(panel_icon_list_drag_data_received): Use drop_on_panel().
	(panel_clist_drag_data_received): Use drop_on_panel().  Normalize
	the Y coordinate to the clist_window.
1999-08-30 20:07:33 +00:00
Miguel de Icaza
871a880139 1999-08-27 Federico Mena Quintero <federico@redhat.com>
* ext.c (quote_block): How did this ever work?  People, if you
	realloc() things, don't keep pointers to stuff inside the original
	block.

	* screen.c (do_enter_on_file_entry): Pass in the full name to
	if_link_is_exe().

	* dir.[ch] (if_link_is_exe): Take in the full name, not the directory
	and the file entry.

1999-08-26  Federico Mena Quintero  <federico@redhat.com>

	* gscreen.c (panel_clist_drag_motion): Pass the full name to
	gdnd_validate_action().
	(panel_icon_list_drag_motion): Likewise.
	(panel_tree_drag_motion): Likewise.

	* gdnd.c (gdnd_perform_drop): Renamed the "directory" argument to
	"dest_full_name" for clarity.
	(gdnd_validate_action): Likewise.  Pass in the full name to
	if_link_is_exe().
	(drop_on_file): Do not compute the full name, since we are already
	get it from the caller.
	(drop_on_file): Pass in the full name to if_link_is_exe().

	* gscreen.c (panel_tree_drag_data_received): Free the pathname.

	* gdesktop.c (icon_drag_data_received): Pass the full name of the
	file to gdnd_perform_drop(), not just the desktop directory.
1999-08-27 05:01:08 +00:00
Miguel de Icaza
af568f447e 1999-08-23 Federico Mena Quintero <federico@redhat.com>
* gdesktop-prefs.[ch]: New files that handle the desktop
	preferences page.  Now we have a nice way to configure the
	position of desktop icons.

	* gprefs.c (create_prop_box): Use desktop_prefs_new() to create
	the desktop preferences page.
	(apply_page_changes): Do not update the desktop here.
	(apply_callback): Take the desktop page into account.

	* gdesktop.c (desktop_use_shaped_text): Renamed from
	desktop_use_transparent_text.

	* Makefile.in: Added gdesktop-prefs.[ch] to the list of sources.
1999-08-23 23:13:31 +00:00
Miguel de Icaza
f433b2ae87 1999-08-16 Federico Mena Quintero <federico@redhat.com>
* gmain.c (default_edition_colors): "brightred" is not a standard
	X color; use "red" instead.
	(get_color): Take into account the result of gdk_color_parse().
1999-08-16 20:02:27 +00:00
Miguel de Icaza
d80cba67cc 1999-08-08 David Martin <dmartina@usa.net>
* gtkedit/syntax.c (upgrade_syntax_file): Mark error strings for
	translation.

	* gtkedit/editmenu.c (edit_about_cmd): Mark text in "about" for
	translation as it used to be.
1999-08-13 22:45:07 +00:00
Miguel de Icaza
39a1938a5f 1999-08-13 Federico Mena Quintero <federico@redhat.com>
* gscreen.c (panel_fill_panel_list): Select or unselect the rows
	as appropriate, not just select them.  This is needed because the
	clist changes the selection under us when appending rows.
	Finally, do not call select_item() at the end; just reset the
	panel->selected value.
	(panel_fill_panel_icons): Likewise.
	(tree_drag_open_directory): Disabled the auto-collapse
	functionality yet again, since it has numerous problems.  BUGFIX:
	GNOME bug tracker #1656.

	* gcmd.c (gnome_reverse_selection_cmd_panel): Re-enabled this
	function.  The reverse selection bug was somewhere else after all.

	* glayout.c (gnome_panel_edit_menu): Re-inserted the item for
	reverse selection.  It was pointing to the wrong callback, that is
	why it never worked.
1999-08-13 19:42:32 +00:00
Miguel de Icaza
3ba5595791 1999-08-08 David Martin <dmartina@usa.net>
* gtkedit/syntax.c (upgrade_syntax_file): Mark error strings for
	translation.

	* gtkedit/editmenu.c (edit_about_cmd): Mark text in "about" for
	translation as it used to be.
1999-08-12 23:15:03 +00:00
Jonathan Blandford
b2af161b6d 1999-08-12 Jonathan Blandford <jrb@redhat.com>
* gpopup2.c (handle_unmount): We refresh when we unmount/mount a cdrom.

	* gscreen.c (queue_reread_cmd): We refresh when we make a change.
1999-08-12 22:50:25 +00:00
Miguel de Icaza
fe7d83f1d0 1999-08-12 Federico Mena Quintero <federico@redhat.com>
The two following entries are BUGFIX: GNOME bug tracker #1789.

	* gscreen.c (panel_fill_panel_list): Do not allow selection of "..".
	(panel_icon_list_select_icon): Likewise.

	* glayout.c (gnome_panel_edit_menu): Removed the Invert Selection
	command.  It is completely broken for the expected GNOME
	semantics.
1999-08-12 22:14:07 +00:00
Miguel de Icaza
d087dd3350 1999-08-12 Federico Mena Quintero <federico@redhat.com>
* gnome-file-property-dialog.c (perm_group_new): If the file
	belongs to an unknown user/group, use the group's number as a
	string for the entry box.  BUGFIX: GNOME bug tracker #1414.
	(perm_owner_new): Do the same thing for the user.
1999-08-12 19:38:09 +00:00
Miguel de Icaza
5b14d415a6 1999-08-08 David Martin <dmartina@usa.net>
* gtkedit/syntax.c (upgrade_syntax_file): Mark error strings for
	translation.

	* gtkedit/editmenu.c (edit_about_cmd): Mark text in "about" for
	translation as it used to be.
1999-08-12 19:26:09 +00:00
Miguel de Icaza
c7c7c0feb1 Sync sync sync - Federico 1999-08-10 22:10:36 +00:00
Miguel de Icaza
c314133465 1999-08-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdialogs.c (file_mask_dialog): Sigh, disabled background
	operations, since they are completely hosed.  Re-aligned the
	widgets in the dialog.
1999-08-10 21:52:06 +00:00
Miguel de Icaza
d8e892cb48 1999-08-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (editing_icon_list): New function to figure out
	whether an icon in the icon list is being edited.  This is a
	FANTASTICALLY UGLY HACK, but we cannot add new functions to the
	icon list at this point as it would break forwards compatibility.
	Sigh.  BUGFIX: GNOME bug tracker #382, #1065.

	* glayout.c (gnome_panel_desktop_menu): Added some underline
	accelerators.

	* gdesktop.c (desktop_arrange_icons_items): Renamed to the desktop
	namespace.  Added underline accelerators.
	(handle_arrange_icons_name): Made static.
	(handle_arrange_icons_type): Likewise.
	(handle_arrange_icons_size): Likewise.
	(handle_arrange_icons_access): Likewise.
	(handle_arrange_icons_mod): Likewise.
	(handle_arrange_icons_change): Likewise.
	(desktop_arrange_icons): Made static.
	(strip_tearoff_menu_item): Made it return the number of items in
	the menu, not the list of children.
	(desktop_icon_info_destroy): Remove the icon from the icon hash
	table.
	(text_changed): Update the icon hash table information.

	* gdesktop.h: Cleaned up some unused prototypes.

	* gview.c (view_status): Use the correct g_snprintf() format
	argument.

	* gcmd.c (sort_get_func_from_type): Indented according to the MC
	conventions.  People, *PLEASE* follow the Gnome Programming
	Guidelines, especially when modifying existing code.

	* gdesktop.c (swap): Likewise.
	(auto_pos): Likewise.
	(get_icon_auto_pos): Likewise.
1999-08-09 22:54:02 +00:00
Richard Hestilow
3d88953c11 1999-08-08 Richard Hestilow <hestgray@ionet.net>
* gcmd.[ch]
        * glayout.c
        * gprefs.c
        * gdesktop.[ch] (mostly auto_pos and desktop_arrange_icons):
        Reworking of the desktop's Arrange Icon code -- in addition to
        being able to sort by various criteria now (name, file size, etc),
        there are now 3 options (Right to Left, Bottom to Top, Rows instead
        of Columns) controlling layout positioning. (Located in the "Desktop"
        Preferences tab)
1999-08-09 03:41:39 +00:00
Norbert Warmuth
ccdd7f5bce 1999-08-08 David Martin <dmartina@usa.net>
* gtkedit/syntax.c (upgrade_syntax_file): Mark error strings for
translation.

* gtkedit/editmenu.c (edit_about_cmd): Mark text in "about" for
translation as it used to be.

* po/POTFILES.in: Removed symbolic links, and outdated
gmc-window.[ch] and olddnd.c. These don't repport any new strings,
increase compile time and make po files large. Basically adds
gaction.c, g,mount, smbfs.c to the pre-previous file.

* po/es.po: Added new strings with latest editor changes. Added
strings in gaction.c. Merged with a new mc.pot after the changes
in POTFILES.in.

* gnome/gaction.c (mainly gmc_unable_to_execute_dlg): Moved g_strconcat
to g_strdup_printf, to get compact strings and make coherent
translations. Translate atomic actions (open, edit, view) when
calling this function.

* src/menu.c: (create_menu): Adjust "#ifdef ENABLE_NLS" so that menus
get the right size even when NLS is disabled.



1999-08-08  Norbert Warmuth  <nwarmuth@privat.circular.de>

* po/POTFILE.in: Removed gpopup.c as it is not compiled.
1999-08-08 12:43:32 +00:00
Miguel de Icaza
a98d957baa 1999-08-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (try_rename): New function to rename a desktop icon's
	file by using a file operation context.
	(text_changed): Use try_rename() instead of fiddling with the VFS
	directly.  BUGFIX: GNOME bug tracker #707.  Also, destroy the old
	icon before updating the desktop.
1999-08-06 20:10:34 +00:00
Norbert Warmuth
972271c9e2 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
* gnome/gconf.h (PORT_STATIC_IN_STRING_FILE_XTIME): new port specific
feature. The Gnome edition first calls all string_file functions
and then uses the return values of these functions. Therefore additional
static buffers in string_file_[acm]time are needed.

* src/screen.c (string_file_[amc]time): These three functions use
file_date which returns a pointer to a static buffer. In the
Gnome edition this buffer has to be coppied to a static buffer
which isn't used in the other two functions (Fix Bug #1766).

* src/util.c, util.h: Moved some constants to util.h

* vfs/tar.c (read_header): Don't segfault when a symlink points to the
root directory.


1999-08-04  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/widget.c (push_history): Add SMB Link to the list of input dialogs
where urls are input without vfs prefix.

Translate the titles of these input dialogs only once.

Removed Gnome specific code because the Gnome edition doesn't use
the input history any more.

* src/util.c (strip_password): Add /#smb: to the list of urls which might
be input with password.
1999-08-06 19:24:04 +00:00
Miguel de Icaza
3e988d4f1f 1999-08-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-file-property-dialog.c (perm_group_new): Set the correct
	group name in the group entry box.  BUGFIX: Red Hat bugzilla #3244.

	* gmount.c (get_mountable_devices): Return the list in getmntent()
	order.  BUGFIX: Red Hat bugzilla #3621.

	* gprefs.c (help_callback): New help callback for the preferences
	dialog.  It loads the "gmcprefs.html" section from the GMC user's
	guide.  We need a better framework for this; we need to be able to
	map DocBook identifiers (<foo id="bar">) to HTML files or
	whatever.  BUGFIX: Red Hat bugzilla #3194.

1999-08-05  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* doc-gnome/C/gmc.sgml: Set the book element's id to "index" so
	that the correct index.html will be generated.
1999-08-05 20:58:36 +00:00
Norbert Warmuth
fc05bf2408 1999-08-01 David Martin <dmartina@usa.net>
* gnome/gcmd.c (gnome_about_cmd): Change strings in gmc "about" to
static as they only translated once.

* src/menu.c (create_menu, menubar_drop_compute, menubar_paint_idx):
Discount '&' for hotkeys when checking menu widths to avoid the
extra blank space.
Moved this accounting from the drawing to the creating function.

* src/widget.c: Translate History box tittle.

* po/es.po, po/es_ES.po: added translation for history box title



1999-08-01  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/vfs.c: Don't close a function definition with "};". SunCC from
2.5.1 chokes on the extra semicolon.

(mc_munmap): Don't dereference function pointer when checking for
NULL (this check is supposed to prevent a segfault instead of
causing one). This haven't got noticed up to now becaue there's no
file system with mmap but without munmap.
1999-08-01 11:37:25 +00:00
Jonathan Blandford
d8513ecd2c 1999-08-01 <jrb@redhat.com>
* glayout.c: moved Preferences to a settings menu.
1999-08-01 05:18:12 +00:00
karsten
c3171bda9e 1999-07-17 Karsten Weiss <karsten@addx.au.s.shuttle.de>
* mc.keys.in.in: changed "x11amp" references to "xmms" (xmms is
        the new name of x11amp).
1999-07-17 12:14:29 +00:00
Miguel de Icaza
2080f6d2bd 1999-07-13 Miguel de Icaza <miguel@gnu.org>
* gnome-file-property-dialog.c (perm_group_new): the return values
	from the group functions in libc return pointers to static buffers
	in the library.  Duplicate all return values and free them at the
	end.
1999-07-13 18:27:05 +00:00
Miguel de Icaza
8cf053cea7 4.5.37 1999-07-13 04:32:46 +00:00
Miguel de Icaza
da70c26149 1999-07-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (perm_group_new): Patch from
	Germano Leichsenring <germano@jedi.cs.kobe-u.ac.jp> that fixes the
	display of groups for non-root users.
1999-07-12 20:22:47 +00:00
Jonathan Blandford
eff5f7b312 1999-07-07 <jrb@redhat.com>
* mc.keys.in.in: updated a few values.
1999-07-07 20:03:17 +00:00
Miguel de Icaza
ea6b8036f5 1999-07-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gcorba.c (corba_create_window): Ensure that the directory we
	pass to the CORBA server is not NULL.

	* gscreen.c: Removed a bunch of unused functions for filters.
1999-07-01 23:15:08 +00:00
Miguel de Icaza
f085b40d57 1999-06-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_select_item): Removed icon list hacks.
1999-06-30 19:21:56 +00:00
Norbert Warmuth
4519b43ebc 1999-06-24 Norbert Warmuth <nwarmuth@privat.circular.de>
* gnome/gmc-chargrid.c (update_strip): Paint every character with the
assigned fore and background color instead of using the colors of
the first character for the whole line.


1999-06-24  smil@linuxfan.com

* src/view.c (view_update_bytes_per_line, display): show correctly the
offset of the file (full 8 digit), display offset in bold colour

(view_labels): use goto_addr instead of goto_line in hex mode

(goto_addr): New function. Goto offset address in hex mode.

* src/view.h: use unsigned long for hexedit cursor position in file
1999-06-24 21:53:40 +00:00
Miguel de Icaza
9f81821878 1999-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* acconfig.h: Add WITH_SMBFS

	* macros/gnome-vfs.m4: Support conditional samba support.

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

	* gsession.c (create_default_panel): Use directory specified in
	command line.

	* gcorba.c (corba_create_window): Pass the directory we receive or
	cwd if this value is NULL.

	* gmain.c (non_corba_create_panels): Use parameter for startup
	directory (use the this_dir external directory for this).
	(create_panels): Pass this_dsir to non_corba_create_panels and
	corba_create_window.
1999-06-22 21:02:08 +00:00
Norbert Warmuth
c1fb49b689 David's "Hex View in GMC & some June patches" sent on June 14 (don't blame
David for the ChangeLog entries).

1999-06-22  David Martin <dmartina@usa.net>

* gnome/gnome-file-property-dialog.c (switch_metadata_box): Tag some
strings for localization.

* gnome/gnome-open-dialog.c (gnome_open_dialog_new): Don't assemble
label_string from seperate strings (makes it easier to translate).

* src/view.c (display): added view_gotoxy's in order to make hex mode
work in the gnome edition.

* gtkedit/gtkedit.c (tb_items): Mark strings for localization.

1999-06-22  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gnome/gview.c (viewer_size_changed): Update internal viewer state used
in hex mode.


And some fixes to the bug reported on mc-bugs ("Two Big Bugs in
Quickview@mc").

1999-06-22  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/cmd.c (quick_view_cmd): Change panel when the file we want to
view isn't in the current panel (prevents a "file not found"
error).

* src/menu.c (menubar_execute): De-activate the menubar previous to
invoking the callback. This is needed to make change_panel in
quick_view_cmd work (the activated menubar doesn't allow unfocus,
i.e. dlg_one_down|up don't change anything).

* src/view.c (do_view_init): improved error handling w.r.t quick view
(mc used to dump core when the file to view couldn't be opened).
1999-06-22 10:29:29 +00:00
Miguel de Icaza
7a22a993e7 1999-06-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (set_icon_wmclass): New function to set the wmclass
	and wmname for desktop icons.  This lets them be managed correctly
	by WMs who try to manage X11R5 clients decently.
	(text_changed): Call set_icon_wmclass().
	(desktop_icon_info_new): Call set_icon_wmclass().

	* gdesktop-icon.c (desktop_icon_realize): Do not clear the
	WM_CLIENT_LEADER property.
1999-06-17 22:42:01 +00:00
Miguel de Icaza
b24460e51c 1999-06-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_is_in_area): Fixed off-by-one error in
	intersection computation.

	* gdesktop-icon.c (desktop_icon_reshape): Set the correct values
	for dicon->text_x and dicon->text_y.
1999-06-14 22:50:45 +00:00
Miguel de Icaza
85b9ee430a 1999-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* complete.c (complete_engine): Put an #ifndef HAVE_GNOME around
	the completion/query engine.  Make the Gnome version just beep
	instead.  We do not have the completion/query engine for Gtk.

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

	* gwidget.c (x_update_input): Unblock the changed signal *after*
	we call gtk_editable_changed().
1999-06-11 16:56:28 +00:00
Miguel de Icaza
d579290936 1999-06-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop-icon.[ch]: Removed the background hack for desktop
	icons.  Now the GnomeIconTextItem does the right thing.

	* gdesktop-icon.c (desktop_icon_reshape): Use the correct size for
	the icon text item.
1999-06-10 00:57:26 +00:00
Miguel de Icaza
2030141d95 1999-06-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (new_terminal): New function to open a terminal from
	the popup menu.  If the user opens a terminal from the desktop,
	then its cwd should be the user's home directory, not the desktop
	directory.  Fixes bug #2868 in the Red Hat bugzilla.
1999-06-07 22:14:55 +00:00
Miguel de Icaza
eb785b90dc 1999-06-04 Robert Brady <rwb197@ecs.soton.ac.uk>
* gscreen.c (panel_list_configure_contents): Prevent
	divide by zero error. (Fixes bug #1360)
1999-06-06 03:47:19 +00:00
Miguel de Icaza
924b4e22ff 1999-06-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (xtoolkit_init): Ignore SIGTTIN and SIGTTOU.
1999-06-02 21:55:14 +00:00
Miguel de Icaza
9ffbc3ae81 1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
* gnome/gdesktop-icon.h:
	* gnome/gmc-chargrid.c: Replace gdk_font_load() with
	gdk_fontset_load(), and change the default font names.

1999-06-01  Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>

	* util.c (is_printable): in GNOME all characters are printable.
1999-06-01 22:38:56 +00:00
Miguel de Icaza
ef3fe0dafe 1999-06-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop-icon.c (desktop_icon_select): Show the
	dicon->background.
	(desktop_icon_init): Initialize backgorund as a rectangle that
	fills all of the space used by the icon.
1999-06-01 19:15:47 +00:00
Kjartan Maraas
2b671bbfdd 1999-05-31 Kjartan Maraas <kmaraas@online.no>
* glayout.c (gnome_panel_about_menu): Hooked up the
		  new help file in the menu.
1999-05-31 18:57:05 +00:00
Miguel de Icaza
259a376b85 1999-05-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gprefs.c (create_prop_int): Translate this label too.

	* gnome-open-dialog.c: Add config.h here.  Otherwise there is no
	way to translate this dialog.  Thanks to David Martina for
	pointing this out.

1999-05-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>
1999-05-29 19:22:51 +00:00
Miguel de Icaza
9e6058809a 1999-05-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_tree_button_press): Beginning of context menu
	on tree.

	* gtkdtree.c (gtk_dtree_load_path): Comment out the phantom code.
	Need to review this code.  Lets fix the problem Federico needs
	solved now.
1999-05-28 05:41:18 +00:00
Miguel de Icaza
7a0defee61 Fix bug #1293: 1999-05-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpopup.c (panel_action_properties): Hanlde properly
	gnome_dialog_run here.

	* gpopup2.c (handle_properties): ditto

	* gmain.c (gnome_check_super_user): Use dialog_run_and_close here.

	* gpopup.c (dicon_properties): Handle propery gnome_dialog_run

	* gdialogs.c (file_mask_dialog): Fix usage of gnome_dialog_run
	here.  Handle case == -1.

	* gcmd.c (gnome_select): Fix usage of gnome_dialog_run here
	(handle case == -1)
1999-05-27 02:06:27 +00:00
Miguel de Icaza
e082388cb9 1999-05-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_fill_panel_icons): Add a hack to work around
	gnome-libs/gnome-icon-list bug that did not reset the proper
	values.  A fix will be available in gnome-libs-1.0.10.

	Fixes bug #1338.
1999-05-27 01:46:22 +00:00
Miguel de Icaza
8c90a5a44d 1999-05-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcmd.c (gnome_close_panel): Remove filter_w

	* gscreen.c (x_filter_changed): Update nothing.

1999-05-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
1999-05-26 23:04:34 +00:00
Miguel de Icaza
2dd341f2a5 1999-05-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-open-dialog.c (gnome_open_dialog_generate_tree_helper):
	Invoke closedir here as well.

	* gdesktop-init.c (desktop_init_at): Invoke closedir here.
1999-05-24 22:46:26 +00:00
Miguel de Icaza
1504246e7f 1999-04-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
* chmod.c (chmod_cmd): Missing _ in _().
	(chmod_cmd): Added braces around nested if/else.

	* widget.c (is_in_input_map): Added braces around nested if/else.
	(listbox_remove_current): Likewise.

	* subshell.c (read_subshell_prompt): Likewise.

	* view.c (view_status): Likewise.

1999-04-29  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdialogs.c (file_progress_show_count): Use correct formats for
	snprintf().
1999-05-03 18:57:48 +00:00
Tuomas Kuosmanen
c56e4206b8 Added new, better looking folder icons.. /tigert 1999-05-02 22:26:46 +00:00
Miguel de Icaza
6b8d2323bd 1999-05-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcmd.c (gnome_new_link): Allow users to create url shortcuts on
	the desktop menu.
1999-05-01 13:58:00 +00:00
Miguel de Icaza
49061a6fc1 1999-04-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (click_proxy_motion): Terminate rubberbanding if the
	event mask does not contain GDK_BUTTON1_MASK.  There is a race
	condition where we will not get the button release event if we
	manage to grab the server in the button_press handler before the
	window manager proxies the button release to us.
	(perform_release): New function to terminate rubberbanding; this
	used to be in click_proxy_button_release().  Also, update the drag
	selection based on the last known mouse position, not on the
	current one (which is not meaningful if the race condition
	mentioned above kicks in).
	(click_proxy_button_release): Use perform_release().
1999-04-21 00:22:30 +00:00
Miguel de Icaza
ce7f0886e4 1999-04-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdialogs.c (file_op_context_create_ui): Handle the "close"
	signal from the progress dialog; do not let GnomeDialog close it
	for us.  This fixes bug #2203 in Red Hat's Bugzilla.
1999-04-19 20:38:53 +00:00
Miguel de Icaza
9cd7859448 1999-04-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (perm_group_new): Small typo fix
	that fixes crash (#958)
1999-04-19 16:30:20 +00:00
Miguel de Icaza
800ab829b2 1999-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (create_general_properties): Mark
	some more strings for translations.  Thanks to David Martina for
	pointing these out.

	* mc.keys.in.in: New icons from Tim Davis <davist@cs.man.ac.uk>
1999-04-18 22:35:42 +00:00
Miguel de Icaza
2c66e8180a 1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c: Include the glib.h header file here.
1999-04-17 06:37:42 +00:00
Miguel de Icaza
60f80115f3 1999-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* treestore.c (tree_store_save_to): Moved the functionality from
	tree_store_save() to here.
	(tree_store_save): Save the tree in the default location in an
	atomic fashion.
	(tree_store_load_from): Moved the functionality from
	tree_store_load() to here.
	(tree_store_load): Load the tree from the default location.

	* treestore.h (MC_TREE_TMP): Added a #define for the temporary
	name we'll use when saving the tree.  Moved the #defines from
	tree.h over to here.

	* main.c (main): Use tree_store_load() and tree_store_save().
	Removed the mc_tree_store_load/save() versions.

	* tree.c (load_tree): Use tree_store_load().
	(save_tree): Use tree_store_save().
1999-04-16 22:02:09 +00:00
Miguel de Icaza
1270687440 1999-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_tree_check_auto_expand): Enabled auto-collapse
	functionality again.  Made the code a simpler by using
	gtk_dtree_is_ancestor().

	* gtkdtree.c (gtk_dtree_is_ancestor): New function to test whether
	a node is an ancestor of a child.  This does the same as
	gtk_ctree_is_ancestor(), but much more efficiently.  GtkCTree
	seems to use the pessimal algorithm for this.
	(gtk_dtree_collapse): Slight optimization: do not re-select if the
	node is already selected.
	(gtk_dtree_collapse): Do not freeze/thaw the tree while
	collapsing/selecting.

	* gmain.c: Removed crufty old SM code.
1999-04-16 18:25:00 +00:00
Miguel de Icaza
99d97479f0 1999-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_setup_drag_scroll): Made it not return
	anything, since scrolling is independent from any other
	prelighting actions.
	(panel_tree_drag_begin): Do not print debugging message.
	(panel_drag_data_get): Assert that we were requested a valid data
	type.
	(panel_create_tree_view): Only specify GTK_DEST_DEFAULT_DROP for
	the tree, since we want to present the correct feedback when the
	user is hovering over the blank area in the tree.
	(panel_build_selected_file_list): Made it return char *.
	(panel_tree_drag_end): Free dtree->drag_dir, not dtree->current_path.
	(tree_drag_open_directory): Use panel->drag_tree_node instead of
	the coordinates hack.

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

	* gscreen.c (panel_setup_drag_scroll): Made it not return
	anything, since scrolling is independent from any other
	prelighting actions.
	(panel_tree_drag_begin): Do not print debugging message.
	(panel_drag_data_get): Assert that we were requested a valid data
	type.
1999-04-15 23:19:36 +00:00
Jonathan Blandford
3365e8122c 1999-04-15 <jrb@redhat.com>
(gmc_unable_to_execute_dlg): oops. forgot this.
1999-04-15 19:25:31 +00:00
Jonathan Blandford
4d2f528b3e 1999-04-15 <jrb@redhat.com>
* gaction.c (gmc_unable_to_execute_dlg): really ugly hack to set label.
1999-04-15 19:24:29 +00:00
Miguel de Icaza
5daec90384 1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_destroy): Memory leak fix: destroy
	current_path and requested_path
1999-04-14 00:03:24 +00:00
Jonathan Blandford
5ea6f63177 *** empty log message *** 1999-04-13 18:49:29 +00:00
Andrew T. Veliath
9e7e543cef src/
* main.c (_do_panel_cd): If we are using GNOME, and the panel is a
	desktop panel, open up a new panel for the contents.

gnome/
	* gdesktop.c (create_panel_from_desktop): Assign selected_index
	when we find the last selected icon.
	(desktop_icon_info_open): Desktop directory open case moved to
	main.c to handle both general and action cd commands.

vfs/
	* extfs.c (extfs_unlink):
	(extfs_mkdir):
	(extfs_rmdir):
	(remove_entry): New functions.
	(vfs_extfs_ops): Add unlink, mkdir and rmdir functions to table.
	Add descriptions for these to the extfs README.
1999-04-13 02:05:15 +00:00
Tuomas Kuosmanen
007cc2edfd oohh! my first gmc commit! Run for shelter! (actually I just changed one
menu icon to a better suitable one..)

 /tigert
1999-04-11 21:35:04 +00:00
Miguel de Icaza
9f68cc2df5 1999-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_icon_list_button_press): Ignore double clicks.
	(panel_widget_motion): Don't do anything if the button state does
	not match the button we are expecting.

	* gtkflist.c (gtk_flist_button_press): Remove pending selections
	when we receive a double click.

	* gaction.c: #include "view.h"
1999-04-10 00:54:10 +00:00
Miguel de Icaza
aa723d5ddd 1999-04-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmount.c (is_block_device_mountable): Allow root to mount
	devices.
1999-04-10 00:40:32 +00:00
Miguel de Icaza
cdeefae1ec 1999-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtkflist.[ch]: New files.  This is a "file list" widget derived
	from GtkCList that does several things:

		- Overrides all mouse and keyboard event handlers.

		- Implements its own, *sane* selection behavior, unlike
		GtkCList's, which is broken.

		- Implements the same selection behavior as the desktop,
		which is a) correct, and b) consistent.

	* gscreen.c (panel_create_file_list): Use the GtkFList widget.
	(panel_widget_motion): Changed the drag thresholds to be the same
	as in gtkdnd.c.
	(start_drag): New convenience function to begin a drag operation.
	(panel_widget_motion): Use start_drag().
	(panel_clist_scrolling_is_desirable): Offsets must be with respect
	to the clist_window, not to the allocation.
	(panel_clist_drag_motion): Normalize the y coordinate of the
	motion event to the clist_window.

	* gdesktop.c (desktop_icon_info_destroy): Reset the
	last_selected_icon to NULL if it is destroyed.

	* Makefile.in: Added gtkflist to the list of files.
1999-04-09 21:13:04 +00:00
Rosanna Yuen
a372e9a375 * gnome/gaction.c (gmc_view): We now have consistant actions
everywhere; every time you invoke a file.
	* src/screen.c (do_enter_on_file_entry): split GNOME version and
	non-gnome version.
	(parse_display_format): listen to the warning.
1999-04-09 12:58:10 +00:00
Jonathan Blandford
22fab3851b 1999-04-08 Jonathan Blandford <jrb@redhat.com>
* gaction.c (gmc_unable_to_execute_dlg):
	now actions do the right thing (TM).

no change in screen.c other than formatting.
1999-04-09 01:18:06 +00:00
Owen Taylor
fa95649cfa 1999-04-07 Owen Taylor <otaylor@redhat.com>
* gsession.c (session_save): Set a discard command
	to get rid of the per-session information.
1999-04-08 02:13:21 +00:00
Jonathan Blandford
a92adc1479 1999-04-06 Jonathan Blandford <jrb@redhat.com>
* gscreen.c: make sure that we bring up an open_with if
	open it.

	* gcmd.c (gnome_select): new selection dialog.

	* gdesktop-init.c (desktop_init_at): do not use access for it is
	poor when you are root.

1999-04-07  Jonathan Blandford  <jrb@redhat.com>

	* screen.c (do_enter_on_file_entry): added a consistent behaviour
	for GNOME stuff.
1999-04-07 23:26:49 +00:00
Miguel de Icaza
b069f7b995 1999-04-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* glayout.c (create_container): Use gtk_window_set_default_size(),
	not gtk_widget_set_usize().

	* gdesktop.c (get_slot_from_pos): Clamp the slot positions to be
	inside the screen.

	* gmain.c (gnome_check_super_user): Improved the message a bit.
1999-04-07 01:49:22 +00:00
Miguel de Icaza
0ef58f89a5 1999-04-06 David Martin <dmartina@usa.net>
* gcmd.c: marked message for translation.


1999-04-06  David Martin <dmartina@usa.net>

	* info.c (text out of box and locale layout).

	* util.c: If gmc uses strftime() why mc doesn't?

	* view.c: a) Tune status line so it does fit in a Quick View Panel
	b) Let Hex View resize cleanly. I think it's fixed for panel
	re-split and SIGWINCH signal in xterm. gmc still fails. There was
	a tiny risk of division by zero when pressing F4 in a very small
	box. True hard work... Must try and check it.

1999-04-06  David Martin <dmartina@usa.net>

	* Updated es.po
1999-04-06 19:00:16 +00:00
Miguel de Icaza
af67e06272 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmetadata.c (gmeta_del_icon_pos): New function to delete the
	icon position metadata from a file.

	* gcmd.c: Removed unused function gnome_quit_cmd().

1999-04-05  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* main.c (main): Call mc_tree_store_save() when the program
	terminates.
1999-04-06 03:49:34 +00:00
Miguel de Icaza
4ee4ff8680 Toys + fixes from Ronald.
1999-04-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gprefs.c: Add new page for desktop properties.

1999-04-05  Ronald de Man <deman@win.tue.nl>

	* gnome-file-property-dialog.c (create_general_properties): Use
	local time here.

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

	* setup.c: Save desktop information.
1999-04-06 01:00:20 +00:00
Miguel de Icaza
8ca4c59e39 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gcorba.c: #include "../vfs/vfs.h"
1999-04-05 21:38:50 +00:00
Miguel de Icaza
c7a8f4846e 1999-04-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (file_list_popup_items): Use "New Directory", not "New
	Folder", to be consistent with the desktop and File menus.  Thanks
	to Kevin Fox for pointing this out.
	(panel_icon_list_drag_data_received): Update the panels properly.
	(panel_clist_drag_data_received): Likewise.
	(panel_tree_drag_data_received): Likewise.

	* gcmd.c (gnome_close_panel): Doh.  Do not access g_free()d
	memory.

	* glayout.c (copy_uiinfo_widgets): Return the copied array as a
	return value, not in an argument.

	* gcmd.c (set_view_type): Added a sanity check.
1999-04-05 05:39:26 +00:00
Miguel de Icaza
5c38a4b03b 1999-04-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtkdtree.c (scan_subtree): Moved the functionality to scan a
	subtree to this function.  Also, do not emit the DIRECTORY_CHANGED
	signal here.
	(gtk_dtree_select_row): Call scan_subtree() and emit the
	DIRECTORY_CHANGED signal here.
	(gtk_dtree_expand): Do not select the just-expanded node.  Call
	scan_subtree().
	(gtk_dtree_collapse): Only select the node if it is an ancestor of
	the currently-selected node.  This should really go in the
	GtkCTree sources.
	(gtk_dtree_init): Bad hack: unset the GTK_CAN_FOCUS flag to avoid
	the broken focusing behavior of GtkCTree.
1999-04-02 00:29:05 +00:00
Miguel de Icaza
584cac757f 1999-04-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcmd.c (gnome_about_cmd): Internationalize about box.  And put
	the right address for bug reports.
1999-04-01 21:31:55 +00:00
Miguel de Icaza
b3bb157ad5 These are a bunch of changes to fix CORBA and session management. They
are almost complete (i.e. to handle all nitty gritty cases), but they
seem to be working OK right now.  SM should be much more stable now.
Please tell me if you find any weird behavior - Federico

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

	* gdesktop-icon.c (desktop_icon_realize): Remove the
	WM_CLIENT_LEADER property from icon windows so that window
	managers will not store SM information for them.

	* gnome-open-dialog.c: Added missing #includes.

	* gdesktop-init.c (desktop_init_at): Removed an unused variable.

	* gdesktop.h: Added some missing prototypes.

	* gmain.h: Added some missing prototypes.

	* Makefile.in: Added gsession.[ch] to the list of sources.

	* gmain.c (create_panels): Consider whether we have a CORBA server
	and session management.

	* gdesktop.c: #include "gdesktop-init.h"
	* gdesktop.c: Added a missing cast to GNOME_DIALOG.

	* gmain.c (create_panels): Removed the run_desktop global
	variable.

	* glayout.c (create_container): Set the wmclass of the panel to
	include its unique ID.

	* gsession.[ch]: New file with the functions that deal with
	session management.

	* glayout.c (gnome_exit): Use session_set_restart().

	* gcorba.c (corba_init): Now returns an int with an error value.
	(corba_init_server): Initialize the server properly.
	Fixed all the object implementation code.
	(corba_create_window): New function used to create a window with
	the CORBA server.

	* gmain.c (gnome_check_super_user): Now the check for running as
	root is done here.  There should be no GUI code in src/.

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

	* dlg.c (dlg_run_done): Do not call the callback of a NULL current
	widget.

	* setup.h: Added missing prototype for setup_init().

	* filegui.c (check_progress_buttons): Added a missing return
	value.

	* dlg.c (remove_widget): Added a missing return value.

	* main.c: Removed the global directory_list variable.
	Removed the main_corba_register_server() function.

	* main.h: Removed the global run_desktop variable.

	* panel.h: Now the panel structure has a unique numerical ID used
	for session management.

	* screen.c (panel_new): Maintain a unique ID for each panel.

	* main.c (maybe_display_linksdir): Handle display of the desktop
	init dir here.
	(main): Call gnome_check_super_user().
	(init_corba_with_args): Call corba_init_server().

	* main.c (init_corba_with_args): Do CORBA initialization here.  Also
	removed the global force_activation option.

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

	* vfs.c (vfs_add_current_stamps): Only do stamping of the panels
	if they exist.

	* mcserv.c: #include <sys/wait.h>
	(get_client): Put `#ifdef __EMX__' around an otherwise-unused
	variable.

	* utilvfs.c (vfs_split_url): Fix NULL <-> 0 confusion when
	comparing characters.

	* ftpfs.c (retrieve_dir): Removed unused variable dot_dot_found.

	* extfs.c (extfs_init): Assign `key' to c, not `&key'.
1999-03-30 06:09:56 +00:00
Jonathan Blandford
05e0754f46 1999-03-29 Jonathan Blandford <jrb@redhat.com>
* gdesktop.c (create_desktop_dir): improved wording.
	(create_desktop_dir): improved wording.
1999-03-29 21:45:59 +00:00
Miguel de Icaza
d2b3c007b3 4.5.28 - Federico 1999-03-26 20:37:48 +00:00
Jonathan Blandford
9fba0a4e27 1999-03-25 Jonathan Blandford <jrb@redhat.com>
* gdesktop.c (set_background_image): now we can set the background
	from GMC.
1999-03-25 23:17:55 +00:00
Miguel de Icaza
ff1a8f6a3b Ok, I am finally back.
Basically, I had to setup an ssh tunnel to be able to use CVS.  After
5 hours trying to get the damn thing to cvs update it was clear to me
why the .es people do not like to use the gnome cvs.

We really need a tunnel for .es hackers (as they have excellent connectivity
to the rest of Europe, they are just routed trough a 2 byte link to the US).

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

	* treestore.c (process_special_dirs): Free memory here.

	Fix test: Skip only "." and "..", before it could skip "?.".

1999-03-22  David Martin <dmartina@mailexcite.com>

	* wtools.c (real_input_dialog_help): Do a strncmp with the lenght
	of th same translated "Password:" string.

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

	* glayout.c (create_new_menu_from): closedir after running.

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

	* gnome-file-property-dialog.c (apply_metadata_change): Fix the
	test for setting the icon.  It was being done incorrectly and thus
	it was never possible to change the icon.

	* glayout.c (gnome_launch_mime_editor): Add mime-type-edit command
	to the menu: this launches mime-type-capplet

1999-03-22  David Martin <dmartina@mailexcite.com>

	* ftpfs.c: Internationalize the messages that are displayed as
	hints.

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

	* extfs.c (extfs_init): Fix the code here:  If the key is empty or
	only contains a new line, C would be pointing into an invalid location.
1999-03-24 12:16:52 +00:00
Miguel de Icaza
e0db072382 1999-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-file-property-dialog.c (apply_metadata_change): Fixed
	incorrect logic when testing whether the icon changed or not.
	This makes icons change correctly again.

	* Makefile.in (GNOMEHDRS): Added gdesktop-init.h.
1999-03-23 20:39:29 +00:00
Jonathan Blandford
d82dfc7aa7 1999-03-22 Jonathan Blandford <jrb@redhat.com>
* gdesktop-init.c (gdesktop_init): Do what the documentation says.
1999-03-23 20:33:48 +00:00
Miguel de Icaza
9207af342d COOL CODE! OH MAN! I AM GOOD!
Ok, so this time I got the stuff to auto-load desktop startup links.
This means you can ship stuff to pre-configure the desktop of the
users now.

We support program-based setup and url-links.

Details on the lib/README.desktop file
1999-03-20 18:08:52 +00:00
Miguel de Icaza
6263497852 1999-03-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpopup2.c (create_mime_actions): Attach to the menu, not the uiinfo.
1999-03-20 12:06:38 +00:00
Jonathan Blandford
55615776fe 1999-03-19 Jonathan Blandford <jrb@redhat.com>
* gscreen.c (panel_tree_drag_motion): Dragging now automatically
	highlights the tree.  God does it flicker... )-:

	* gtkdtree.h (gtk_dtree_construct): removed unused prototype.

	* gscreen.c (panel_tree_check_auto_expand): removed the
	auto-collapse of trees, as it is confusing to the user.
1999-03-19 21:59:34 +00:00
Jonathan Blandford
aec84e1075 'head -n 4 ChangeLog' 1999-03-19 19:41:32 +00:00
Jonathan Blandford
4c205131ec 1999-03-19 Jonathan Blandford <jrb@redhat.com>
* gdialogs.c (file_progress_show_bytes): bug fix proposed by Max
	Weninger <max@takefive.co.at>
1999-03-19 19:09:43 +00:00
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