Commit Graph

489 Commits

Author SHA1 Message Date
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