Commit Graph

256 Commits

Author SHA1 Message Date
Miguel de Icaza
e265fe2067 1998-12-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* glayout.c (file_menu): Use view_cmd and view_simple_cmd in the
	menu instead of panel_action_view and
	panel_action_view_unfiltered, respectively.

	* gpopup.c (create_regexp_actions): Create the menu items using
	gnome-app-helper, for visual consistency.
	(create_actions): Likewise.  Also, fixed S_ISLNK() confusion.
	(get_label_text): Extract the label from the GnomeUIInfo item in
	an ugly way.
1998-12-02 06:33:07 +00:00
Jonathan Blandford
b081558a24 moved functions around... 1998-12-02 04:33:26 +00:00
Miguel de Icaza
a065078165 1998-12-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (panel_switch_new_display_mode): Destroy the old
	widget.  Add the list view to the proper table.

	* glayout.c: Remove the exit menu option.

	* gtree.c (gtk_dtree_contains): New routine used to avoid
	duplicate entries in the tree display.
1998-12-01 21:56:54 +00:00
Miguel de Icaza
4dbadb32ec Sync to laptop - Federico 1998-12-01 06:23:50 +00:00
Miguel de Icaza
7ee95e588f Sync sync - Federico 1998-12-01 00:33:02 +00:00
Miguel de Icaza
43931af464 Sync from laptop to desktop - Federico 1998-11-30 16:59:23 +00:00
Miguel de Icaza
1a9c7f3274 IconList changes for gmc 1998-11-29 07:50:44 +00:00
Miguel de Icaza
428265fbc5 1998-11-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_update_input): Use gtk_editable_changed on the entry.
	(x_create_listbox): Fix more CList api change.
	* gscreen.c (CLIST_FROM_SW): Adapt to new GtkScrolledWindow
	inheritance.
1998-11-29 03:40:23 +00:00
Miguel de Icaza
74c83737fd 1998-11-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* Makefile.in (OOBJS): Add filegui.o back until the GTK-specific
	filegui is written.

	* gdesktop.c (check_window_in_one_panel): Provide better error
	messages here for debugging purposes.

	Disable stubs for filegui.c until they are actually implemented.
	I need to debug stuff.

	* gdnd.c (find_panel_owning_window): Use the new
	gtk_drag_get_source_widget function to find out reliably if the
	drag source happens to be in this application.

	* gscreen.c (x_create_panel): Set the usize for the ministatus
	label to be (0, -1), this means: do not request any horizontal
	space, use any vertical space given.

	Put the ministatus inside an hbox, and use
	gtk_container_set_resize_mode in this hbox to stop any queue
	events from being propagated up in the hierachy of widgets

	This kills all of the CList/GnomeIconList/Scrollbar/Toolbar
	flickering now.
1998-11-28 03:12:13 +00:00
Miguel de Icaza
5fce940013 1998-11-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (x_create_panel): Set the usize for the ministatus
	label to be (0, -1), this means: do not request any horizontal
	space, use any vertical space given.

	Put the ministatus inside an hbox, and use
	gtk_container_set_resize_mode in this hbox to stop any queue
	events from being propagated up in the hierachy of widgets

	This kills all of the CList/GnomeIconList/Scrollbar/Toolbar
	flickering now.
1998-11-28 00:01:38 +00:00
Miguel de Icaza
624fc415ab 1998-11-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtree.c: More work on gtree.  It is basically ready to stick
	into gmc-window.c/mc  I just need to know when you are ready
	Federico.
1998-11-27 04:54:02 +00:00
Miguel de Icaza
b7f32b7c2e Sync to laptop - Federico 1998-11-25 23:58:43 +00:00
Miguel de Icaza
7b89c91ebb 1998-11-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_event): Run the popup menu for the
	icons in the desktop.

	* gpopup.[ch]: New files that take care of the popup menus for
	files in the desktop and in the panels.

	* Makefile.in: Added gpopup.[ch] to the list of sources.
1998-11-25 03:29:23 +00:00
Miguel de Icaza
0cd03f0e0c 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_place): Save the icon position
	when it is moved.
	(desktop_destroy): Removed the save_icons_pos() function and do
	not invoke it from desktop_destroy().
1998-11-24 03:58:05 +00:00
Miguel de Icaza
82a542076a 1998-11-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_list_insert): Make it work with the new CList
	policies.
1998-11-24 03:33:24 +00:00
Miguel de Icaza
e82ec47dd3 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c: Put in a bunch of stubs for the functions in
	filegui.h.  These will be removed as the dialogs get
	custom-written for Gnome.

	* gmetadata.[ch]: Changed the function names to "gmeta_*".

	* gscreen.c (CLIST_FROM_SW): Use scrolled_window->child, as
	viewport is obsolete.

1998-11-23  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
	(dlg_key_event): Return 1 if handled the tab key.

	* filegui.h: Added prototypes for file_progress_show_{source,target,deleting}().
1998-11-23 22:09:58 +00:00
Miguel de Icaza
af807858c2 1998-11-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Makefile.in (OOBJS): Do not link ../src/filegui.o.  GMC does not
	link right now, but I guess I'll add stubs until we finish with
	the dialog boxes.

	* gdnd.c: #include <sys/types.h>

	* Makefile.in (checklinks): Fix sourcelinks -> maksourcelinks typo.
1998-11-20 05:14:38 +00:00
Miguel de Icaza
13bd569914 1998-11-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (session_save_state): Use gnome_geometry_string.
1998-11-12 18:08:53 +00:00
Miguel de Icaza
c346f8892e 1998-11-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Makefile.in: Removed gtrans.c from the list of sources.

	* gdesktop-icon.c: #ifdef cleanups.

	* gscreen.c (panel_create_file_list): Doh.  Return the scrolled
	window, not the clist.

	* gdnd.c (get_action): Implement the DnD actions menu.

1998-11-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* setup.c: Removed the icons_snap_to_grid and
	want_transparent_{icons,text} options.
1998-11-11 00:05:12 +00:00
Miguel de Icaza
2c1226f796 The clist is not working, I'll fix that when I get home - Federico
1998-11-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdnd.c: New file that handles all the DnD stuff.  Mainly used to
	clean up gdesktop.c.

	* gscreen.c (panel_icon_list_drag_data_received): Use
	gdnd_drop_on_directory().
	(CLIST_FROM_SW): Added this macro to fetch the clist from the
	scrolled window in panel->list.
	(panel_create_file_list): Create a scrolled window and put the
	clist inside it.  This is required per the new clist API.
	(panel_configure_file_list): Use the scrolled window's adjustment.
	(panel_file_list_size_allocate_hook): Use the scrolled window
	instead of the clist.
	(panel_file_list_compute_lines): Use the scrolled window instead
	of the clist.
	(panel_file_list_configure_contents): Use the scrolled window
	instead of the clist.
	(panel_create_file_list): Do the DnD setup here, not in the
	realization callback.
	(x_create_panel): Do not realize the panel explicitly.
	(panel_create_pixmaps): Create the pixmaps using imlib instead of
	Gdk.
1998-11-10 02:28:34 +00:00
Miguel de Icaza
615609b324 Sync - Federico 1998-11-07 01:19:53 +00:00
Miguel de Icaza
d414f76816 Sync sync - Federico 1998-11-05 23:24:47 +00:00
Miguel de Icaza
b058121a8b Sync sync - Federico 1998-11-04 23:01:24 +00:00
Miguel de Icaza
146fbe25fb 1998-11-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (select_icon): Raise the icon when it is selected.
1998-11-04 16:51:57 +00:00
Miguel de Icaza
75eb5db939 1998-11-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (select_range): Doh.  Fix dii -> ldii typo.  Also,
	use Windows semantics -- ranges are considered rectangular instead
	of linear.
1998-11-03 16:29:47 +00:00
Miguel de Icaza
2f091b9509 1998-11-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c: Now desktop icons are stored in the layout_slots
	array.  We need to know which icons are in which slots.
	(unselect_all): Use the layout_slots array.
	(desktop_icon_info_place): Append the icon to the list in the
	proper slot.
	(desktop_icon_info_new): Initialize the position and slot fields
	in the desktop icon info structure.
	(desktop_icon_info_free): Remove the icon from its slot.
	(desktop_destroy): Destroy the layout slots and the icons
	properly.
	(remove_from_slot): New convenience function to remove an icon
	from the slot it is in.
	(get_icon_snap_pos): Do a bit nicer snapping by really using the
	closest slot.
	Added a last_selected_icon variable to keep track of the icon that
	was last selected, for shift+click selections.
	(select_icon): Finish selection semantics and clean up.  Now it is
	nice and simple and complete.
	(select_range): New function that handles range selections.
1998-11-03 01:32:38 +00:00
Miguel de Icaza
5fa467aa00 1998-11-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop-icon.h (DesktopIcon): Added a child item for stippling
	the icon when it is selected.

	* gdesktop-icon.c (desktop_icon_select): Show/hide the stippling
	as appropriate.

	* gdesktop.c (desktop_icon_info_event): Handler for events on
	desktop icons.
	(select_icon): New function that handles icon selection based on
	mouse clicks and modifier keys.

	* gdesktop.c (struct desktop_icon_info): Added a type field to the
	structure.  It specifies the type of icon (file, directory), and
	is used to determine the DnD and menu behavior.
1998-11-01 23:21:24 +00:00
Miguel de Icaza
f64d6da2e4 1998-10-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c: We are now using the new desktop icon code.  It is
	not yet complete, but what is there does work.  We have icon
	creation, auto-layout and snapping.  Next step is drag and drop
	and popup menus.

	* glayout.c: #ifdef out the stuff that uses the old desktop code.
	I will replace it gradually.
	* gmain.c: Likewise.
	* gscreen.c: Likewise.
1998-10-30 23:22:35 +00:00
Miguel de Icaza
f15ee9faf9 Increased version number to 4.5.2
Documentation update.

1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* fish.c (command): Replace vnsprintf with g_strdup_vprintf.  This
	is both safe and more correct, as there is no limit on the
	pathname.

	* ftpfs.c (command): Same as above.

	* util-alone.c (print_vfs_message): Same as above.

1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* layout.c (print_vfs_message): Use g_snprintf instead of
	vnsprintf.
1998-10-30 17:45:43 +00:00
Miguel de Icaza
e704d53f77 sync sync - Federico 1998-10-30 17:08:03 +00:00
Miguel de Icaza
903eb5a880 Sync to laptop; I ifdef-ed the old code just so that it will compile - Federico 1998-10-30 00:47:54 +00:00
Miguel de Icaza
612019d206 1998-10-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop-icon.c (create_window_shape): Use shaped icons only
	when the user has selected them.
	(desktop_icon_reshape): New public function to recompute the shape
	of the icon.  This should be used when the global
	desktop_use_shaped_icons flag changes.
	Added documentation comments to the public functions.
1998-10-29 01:07:38 +00:00
Miguel de Icaza
22a0026bde 1998-10-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Makefile.in: Fixed for gdesktop-icon.
1998-10-28 19:23:51 +00:00
Miguel de Icaza
4ce383d64b 1998-10-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* desktop-icon.c (reshape): Position the icon text item correctly.
1998-10-28 17:04:58 +00:00
Miguel de Icaza
1f01162672 1998-10-27 Federico Mena Quintero <federico@nuclecu.unam.mx>
* desktop-icon.c (desktop_icon_new): Do now reshape more than
	needed by splitting the set_icon and set_text functions apart.
1998-10-28 00:53:11 +00:00
Miguel de Icaza
c5dca5a751 1998-10-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_set_position): Do not lower the
	window.  The gnome-compliant wm will know what to do with windows
	on the Desktop layer.
	(post_setup_desktop_icon): Likewise.

	* desktop-icon.c (create_window_shape): Fetch the mask of the
	image "by hand", as we cannot rely on the canvas item having
	created it yet.

	* desktop-icon.c (desktop_icon_realize): Doh.  We need to
	initialize the gnome_win_hints before we set any of the hints.
1998-10-26 23:19:37 +00:00
Miguel de Icaza
c7b818533c 1998-10-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* desktop-icon.c (desktop_icon_realize): Doh.  We need to
	initialize the gnome_win_hints before we set any of the hints.
1998-10-23 18:54:28 +00:00
Miguel de Icaza
e7911e2b15 Sync sync - debugging time - Federico
1998-10-21  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdesktop.c (create_desktop_icon): Renamed from
	my_create_transparent_text_window.  Now uses the DesktopIcon
	widget for its work.
	(get_desktop_icon_for_dentry): Renamed from
	get_transparent_window_for_dentry.  Uses the DesktopIcon widget.
	(get_desktop_icon_for_di): Renamed from
	get_transparent_window_for_di.
	(desktop_icon_properties): Do not size_request the icon, since now
	we can get its dimensions directly from the DesktopIcon structure.

	* desktop-icon.[ch]: New file that takes care of desktop icons.
	It provides the spiffy widget that is used for them.

	* Makefile.in: Added desktop-icon.[ch] to the list of sources.
	MC should use Automake, I think.
1998-10-22 00:32:21 +00:00
Miguel de Icaza
cd9efdc2dd Yes, we are a drop target. With all of the features requested on the
mail I got from DrMike some months ago :-)

It needs a bit of debugging still

Miguel
1998-10-21 18:05:08 +00:00
Miguel de Icaza
114209e3eb copy files trough cvs 1998-10-20 23:44:39 +00:00
Miguel de Icaza
e591c91db2 - Make input handling work nicely on the icon list.
- First pass at the new drag and drop protocol, using the
  default handlers, more work on this tomorrow.
1998-10-20 05:37:45 +00:00
Miguel de Icaza
0a024abfb5 In-line icon renames actually rename the file. WEEEEEEEEEE! 1998-10-14 06:26:05 +00:00
Miguel de Icaza
d6fcd9c2b7 VFS source code cleanup.
MC now depends on glib (currently only the assertions are used).
VFS structure declaration fixes.
Uses the new icon list (it is dog slow, need to fix this tonight at home).
1998-10-14 02:56:18 +00:00
Miguel de Icaza
20157ab85e 1998-09-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c: Hook to invoke the editor from the context menu.
1998-09-25 23:07:23 +00:00
Pavel Roskin
3745c22c69 make should not rebuild gmc every time. 1998-09-18 12:55:02 +00:00
Owen Taylor
86d9078964 Mon Aug 31 10:46:32 1998 Owen Taylor <otaylor@redhat.com>
* gscreen.c (display_mini_info): Removed calls to
	gtk_clip_label_set() hack, since its cut-n-paste code didn't work
	with new GTK's. If excessive resizes are a problem, they can be
	solved by adding an adjustment around the label, and calling
	gtk_container_set_resize_mode().
1998-08-31 14:40:49 +00:00
Miguel de Icaza
77c27f6130 Make program relocatable trough MCHOME variable, patch from Ludovic Drolez 1998-08-26 20:23:10 +00:00
Raja R Harinath
25ed8288b9 * gdesktop.c: Include "mad.h", for xmalloc.
* gkey.c: Likewise.
* gscreen.c: Likewise.
(panel_create_file_list): Use `g_free', not `free'.
1998-08-20 22:04:52 +00:00
The Rasterman
5240be11ae Wed Aug 19 19:45:16 EDT 1998 The Rasterman <raster@redhat.com>
* gdesktop.c - changed dnd setting routine for desktop icon to set
	events on child window...
	* gtrans.c - chnaged routines to make window with
	child rawing area and set shape on parent window
1998-08-19 23:39:57 +00:00
Miguel de Icaza
3f35312dad Minimal fix 1998-08-14 19:38:50 +00:00
Carsten Schaar
f419d2dfe8 * gmain.c (session_management_setup): Replaced
'gnome_client_new_default' with 'gnome_master_client'.
1998-07-04 20:33:13 +00:00
Miguel de Icaza
96e34093a7 Use new gtk exported function 1998-06-23 17:22:02 +00:00
Manish Vachharajani
1194fd272b Changlogs ... 1998-06-23 03:33:30 +00:00
Miguel de Icaza
465cd6bda9 VFS changes from the list; A lot of fixes for the GNOME interface
that have been reported.  More to come.
1998-06-03 14:08:47 +00:00
Norbert Warmuth
a6736ce62a Sun May 31 13:19:59 1998 Norbert Warmuth <k3190@fh-sw.de>
* Makefile.in: use @LIBVFS@ when referring to libvfs-mc.a (one
reference wasn't converted, yet).
1998-05-31 20:18:40 +00:00
Miguel de Icaza
d537538609 1998-05-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gwidget.c (x_create_input): Set the entry's visibility if it is
	a password field.
1998-05-30 19:09:01 +00:00
Marc Ewing
37c46d866c 1998-05-26 Marc Ewing <marc@redhat.com>
* Makefile.in: use @LIBVFS@ when referring to libvfs-mc.a
1998-05-26 19:41:44 +00:00
Miguel de Icaza
eb1a6da0ef 1998-05-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (session_save_state): Perform shutdown if `shutdown'
	flag is set.
1998-05-26 17:49:41 +00:00
Miguel de Icaza
fa9cc8e6a9 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_create_directory_entry): Fix, make a
	g_strdup copy of the name. Fixes bug report #78.
	(desktop_icon_context_popup): Simplified this routine as we are
	using file_popup now anyways.
1998-05-25 22:16:11 +00:00
Miguel de Icaza
0baa6ae099 Weee! First bugs fixed from the Bug tracking system:
1. Selecting text in an input line and typing a char
   now does the expected thing (Bug #17)

2. Drag and drop betwen icon view was broken (Bug #16
   (This is a bug introduced by the fact that when Icon
   View was introduced, I left the testing for the view
   mode here and there)

Extra stuff: runtime warnings fixed when creating a new window;
moved the "new window" option to the "file" menu, it makes more
sense there.  Force event flushing when I change the progress
status for vfs code.

Miguel
1998-05-24 22:21:56 +00:00
Miguel de Icaza
a416ee4f7b Cool changes:
1998-05-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gwidget.c (x_create_input): Disable the use of the GNOME entries
	for now, as they are very slow.  We need to figure out what is
	wrong with this.

	With this change, dialog boxes close quickly instead of taking
	ages to close.

	* gscreen.c, gdesktop.c (file_popup_add_context, file_popup):
	Share the context menu code in gdesktop.c and gscreen.c.  The
	desktop pop up menus now include all of the stuff that would have
	appeared in the Panel.

	* gdesktop.c (desktop_icon_remove): Remove the file associated
	with this desktop entry if it is on the ~/desktop directory.
1998-05-23 00:55:03 +00:00
Miguel de Icaza
f7851d17c2 1998-05-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c (load_dnd_icons): Remove the code and the icons that
	we had here privately.  Use new gnome-stock functionality
	instead.
1998-05-22 01:07:00 +00:00
Miguel de Icaza
b57ee04233 Changes:
- We now provide both url:ALL and file:ALL drag types.  This
	  allows applications that are not vfs-aware (all of them
	  right now :-) to work even if the files dragged are from a
	  remote site.

	  If the files are remote, and the target only accepts
	  file:ALL, a temporary file is created (or files, if multiple
	  files are dragged) and the names of the temporary file names
	  are transfered.

	- Added ABOUT-NLS file :-)

Miguel.
1998-05-21 04:16:15 +00:00
Miguel de Icaza
477a46d49e 1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (set_window_text): Pass new justification parameter to
	gnome_icon_paint_text().
1998-05-20 23:06:52 +00:00
Miguel de Icaza
d6e872a113 1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gpageprop.c (item_properties): Restore the arrow cursor for the
	desktop icon windows.

	* gdesktop.h (desktop_icon_t): Removed unused title field.
1998-05-20 22:10:06 +00:00
Miguel de Icaza
9c120a91b0 1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (set_window_text): Made it use the new
	GnomeIconTextInfo functions.

1998-05-18  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gscreen.c (panel_create_icon_display): Set some good separator
	characters for the file icon list.
1998-05-20 19:57:32 +00:00
Miguel de Icaza
9f5523e4e9 Bug fixing from the TODO . 1998-05-20 06:49:08 +00:00
Miguel de Icaza
4de36e79d8 1998-05-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gpageprop.c (item_properties), gprop.c: Add executable editing
	(command, and terminal).  Save the dentry after modification

1998-05-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gprop.c (change_icon): Test for gp, as the combobox emits the
	"changed" signal when shutting down.  Great.

	* gdesktop.c (desktop_reload): Missing mc_closedir
	(desktop_setup_icon): Fix memory leak.
	(get_desktop_icon): Fix memory leak.
	(desktop_create_directory_entry): Set the size of the exec
	vector.
	(desktop_create_launch_entry): Same.

	We now create launch entries instead of trying to support
	regular dropped stuff on the desktop, this makes things easier and
	more consistent.

1998-05-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* ext.c: Memory leak fixed.
1998-05-20 05:49:16 +00:00
Miguel de Icaza
3a3c99ed4c Pass1 of the QNX port of mc from Tamasi Gyorgy 1998-05-20 02:12:06 +00:00
Miguel de Icaza
96c55ff5bb Various memory leak fixes.
Miguel.
1998-05-19 18:37:03 +00:00
Miguel de Icaza
0dad671321 1998-05-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_select_item): Test for full icon visibility instead
	of partial visibility only.
1998-05-19 04:02:33 +00:00
Miguel de Icaza
f4a5f85ecf Moved the text icon layout code from here. 1998-05-18 22:48:48 +00:00
Tom Tromey
7c515a1b5c Sat May 16 02:29:51 1998 Tom Tromey <tromey@cygnus.com>
* gdesktop.c (url_dropped): `exec' field of desktop entry now a
        vector.
        (dentry_execute): Likewise.
        (desktop_icon_remove): Likewise.
        (get_transparent_window_for_dentry): Likewise.
        (desktop_create_directory_entry): Likewise; also initialize
        exec_length.
1998-05-16 20:54:28 +00:00
jaka
3fd39ad792 1998-05-16 Jaka Mocnik <jaka.mocnik@kiss.uni-lj.si>
* gscreen.c (create_popup_submenu): fixed bug which caused it to require
	0 instead of 1 marked files for F_SINGLE file_actions.
	* gscreen.c (file_popup): first item in the menu displays "..." when
	multiple files are selected.
1998-05-16 13:01:23 +00:00
Tom Tromey
ae64700c0e Thu May 14 23:31:15 1998 Tom Tromey <tromey@cygnus.com>
* gmain.c (session_save_state): Use "+" instead of "%s" in format
	specification.  Free `argv'.
1998-05-15 05:43:31 +00:00
Miguel de Icaza
c08415b616 1998-05-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtrans.c (create_transparent_text_window): Removed the hack to
	lower the window on exposes.  Guess what happens when you have two
	icons on the same spot.
1998-05-15 01:08:46 +00:00
Norbert Warmuth
6029deefa6 Thu May 14 01:56:11 1998 Norbert Warmuth <k3190@fh-sw.de>
* configure.in: Don't add -lintl to LIBS when included gettext is
used (further checks for libraries would fail because libintl.a
isn't build, yet). Instead use and substitute LINTL.

* src/Makefile.in (OURLIBS):      add @LINTL@
* gnome/Makefile.in (EXTRALIBS):  add @LINTL@
* tk/Makefile.in (EXTRALIBS):     add @LINTL@
* vfs/Makefile.in (LIBS):         add @LINTL@
* xv/Makefile.in (EXTRALIBS):     add @LINTL@
1998-05-14 00:13:36 +00:00
Miguel de Icaza
d51b0cacff 1998-05-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtrans.c (set_window_text): draw pixmaps without transparency
	correctly.
1998-05-09 22:39:54 +00:00
Miguel de Icaza
824b7198ea Icon View mode for GNOME/mc:
1. My icons suck.
	2. Keyboard handling is not finished.
	3. Save current-mode, load current-mode is not
	   implemented yet.
	4. Listing mode is not working, as I have hardcoded
	   the icon view for now.
	5. Will finish this tomorrow.  Not much is missing.
	6. No, this is not the final implementation.
	7. Yes, later I will put some scheme for using
	   more icons as discussed in the ethernal "Re: Icons"
	   thread.

Miguel.

1998-05-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gscreen.c (panel_icon_list_realized): Add drag and drop support
	to the icon list view;

1998-05-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gscreen.c (panel_fill_panel_icons): New function:  Fill up the
	icon list.
	(x_create_panel): Change in the approach:  we create both of the
	widget views at creation time and we now carefully show every
	component.  I attach everything to the table, but not necesarly
	show it.
1998-05-08 02:25:00 +00:00
Miguel de Icaza
41871990d5 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_drag_start): Do not attempt to use
	icons if we could not load the images for the icon.
1998-05-05 08:08:56 +00:00
Miguel de Icaza
4ab86b1b5b Weeeee! Fix frenezi
1998-05-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gwidget.c (x_update_input): Keep the cursor always visible.

	* gview.c (view): Use a buttonbar widget.

	* gwidget.c (buttonbar_clicked): Provide a trivial implementation
	of the buttonbar that only responds to key sequences.

	* gmain.c (dialog_panel_callback): Call midnight_callback to get
	the main bindings working.

	* gdesktop.c (perform_drop_manually): Use p to walk the dropped
	data.  This is an important bug fix.

	* gmain.c (idle_destroy_window), main.c: Session management now
	supports not showing a toplevel window (in case all of the windows
	were closed).

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

	* view.c (view_quit_cmd): Use dlg_stop.

	* main.c (ctl_x_cmd): Implement ctl-x handling as a state of the
	key press events.  Drop the usage of mi_getch to acomplish this
	task.
	(midnight_callback): Deal with the current map depending on the
	c-x state.
1998-05-05 06:18:55 +00:00
Miguel de Icaza
55fa825b8b Get the global bindings working on gnome/mc
Miguel.
1998-05-05 05:49:57 +00:00
Miguel de Icaza
6e4c1d461d 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (perform_drop_manually): Use p to walk the dropped
	data.  This is an important bug fix.
1998-05-05 02:47:43 +00:00
Miguel de Icaza
540e850b31 SM now supports no-windows-open setup -mig 1998-05-04 20:25:27 +00:00
Miguel de Icaza
bb969259ad Put hack back -mig 1998-04-30 23:55:40 +00:00
Miguel de Icaza
6f4e21db18 Image cache fixed -mig 1998-04-30 06:15:29 +00:00
Miguel de Icaza
530e74ff39 Added session management support to gmc 1998-04-30 06:03:17 +00:00
Miguel de Icaza
aa4e089bfd 1998-04-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gprop.c (gprop_general_new): Added an simple icon preview to the
	icon selector.
1998-04-30 04:04:39 +00:00
Miguel de Icaza
98ff71d81f - Simplified the update_panels routine to only care about the current
panel, the old way of using it was an historic relic.

- This now works properly with the GNOME edition.

- Finished/fixed the implementation of the desktop-remove-icon
  functionality.

- Raster's new multi-ok window.  For some reason this is not getting
  loaded.   I am compiling gdb 4.17 now, as it is better for egcs
  output.

Miguel.
1998-04-30 03:21:52 +00:00
Norbert Warmuth
097fe43280 I improved the movement keys of the internal viewer a little bit.
Now in wrap mode the End key and cursor up key behave much better
(e.g. when viewing binary files with lots of wrapped lines).
It's not perfekt but it's better than it used to be.



Tue Apr 28 06:52:24 1998  Norbert Warmuth  <k3190@fh-sw.de>

* gnome/gcmd.c (gnome_open_terminal): Changed my_system(1,...) to
my_system(EXECUTE_AS_SHELL,...)


Tue Apr 28 06:06:03 1998  Norbert Warmuth  <k3190@fh-sw.de>

* vfs/extfs.c (extfs_open, extfs_close): Changed my_system(1,...)
to my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
copyout in 4.1.32.


Tue Apr 28 06:11:08 1998  Norbert Warmuth  <k3190@fh-sw.de>

* view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
of bottom_first (we mustn't use an already calculated and cached
value because it is invalid for the new mode and the End key would
not move to the end of the file).

* configure.in: Renamed the option `--with-our-slang' to
`--with-included-slang' (this one looks better because we also
have an `--with-included-gettext').
Make the option `--with-ext2undel' recognice a given path.

* cmd.c (view_file_at_line): In plain view (F13) set the default
magic flag to zero in order to view the file content unprocessed
(esp. don't uncompress files if they are compressed). The
view_simple_cmd got broken when the default magic flag in view.c
was changed from 0 to 1.

* view.c (do_view_init, goto_line): Set wrap mode temporary off
to make goto line number work, i.e. `line number' now always means
line number in file and not line number on screen (in wrap mode
one long line wrapped once is displayed in two lines on the screen).
That's important when the viewer is invoked from the find file
dialog to display even in wrap mode approxiamtly the part of the
file where we found the content we searched for.

(move_forward2): In wrap mode lines were sometimes counted wrong
causing cursor up to move more than one line.

(move_backward2): Fixed the movement in wrap mode.

(change_viewer): Always re-init viewer when we have a filename,
i. e. if the viewer is invoked with simple_view_cmd then we can switch
with the F8 key between unprocessed file content und uncompressed
file content.
(view_init): re-init view also when magic flag was altered
1998-04-28 14:19:48 +00:00
Miguel de Icaza
8c34e0837f i18n compilation fixes for the new gnome-i18n.h changes.
fix a bug in the panel-widget selection.
i18n changes from Andrej Borsenkow.
Menus renamed, better texts -- thanks Havoc.
lav's fixes for curses compilation.

Miguel
1998-04-28 04:29:19 +00:00
Miguel de Icaza
f037975889 1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_create_radio): Fix the WRadio widgets.
1998-04-24 23:55:44 +00:00
Miguel de Icaza
c02bca1dac All mighthy sync! -mig 1998-04-22 06:01:38 +00:00
Miguel de Icaza
f1afd65290 Property changes on the desktop -mig 1998-04-17 02:23:29 +00:00
Miguel de Icaza
b4dadfbecd Minor fix -mig 1998-04-17 01:21:27 +00:00
Miguel de Icaza
0f31fb67d0 Fixes 80% of the bugs reported by Elliot on his last email.
This does not fix some major "problems", which require some bigger
changes to the program.

Miguel.
1998-04-17 00:21:53 +00:00
Miguel de Icaza
6981cf6275 Compilation fixes, bugs reported by DrMike -mig 1998-04-16 18:08:08 +00:00
Miguel de Icaza
482e8af0fb My vain attempts at getting Radio Buttons working properly -mig 1998-04-16 04:22:56 +00:00
Miguel de Icaza
f494ada890 Ok, most of the "Elliot Lee confidential bug report" has been dealt
with with this commit.  This also addresses a bunch of the comments
from the status.shtml from DrMike.

Miguel.

1998-04-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* screen.c (GT): Assign two spaces for the minimum size of the
	"type" field for the GNOME edition.  This gives some extra space
	for the icon that gets displayed.

	* dlg.c (remove_widget): New function:  used to remove a widget
	from an existing Dlg_head;
	(destroy_widget): Destroy a specific Widget.
	(add_widgetl): Extended to deal with the fact that a running
	Dlg_head can become empty.

	* panelize.c (l_call): Update the input line every time the user
	selects the entry with the mouse (pretty common in the gnome
	edition).

	* hotlist.c (add_new_group_input): Removed an extra field that was
	causing problems.

	* find.c (find_parameters): Tree button is gone for gnome until we
	get the tree function working on gnome.

	* cmd.c (save_setup_cmd): Per Elliot's suggestion, do not pop up a
	dialog box to inform the user about the saved setup.

1998-04-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gcmd.c (gnome_close_panel): Implement the close-the-panel
	functionality.

	* gscreen.c (x_panel_destroy): Implement the gnome mode way of
	destroying the panel.

	* gview.c (view_status): Add cacheing of the information status,
	to avoid excessive flicker.  It would be better if GtkLabel did
	not flicker though.
	(scrollbar_moved): Scroll correctly.  We now use
	view_move_backward and view_move_forward to adjust the scrollbar
	contents.  This displays the scrollbar correctly.

	* gwidget.c (x_listbox_select_nth): This may be invoked before the
	widget has been created, work around this problem.

	* gscreen.c (show_dir): Set the title bar for the window to the
	current directoy.  Reported by both Mike and Elliot.

	* layout: Updated to the new hotlist dialog box.
1998-04-16 02:45:53 +00:00
Miguel de Icaza
41eeb94d42 1998-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (create_transparent_text_window): Destroy the cursor
	properly.
1998-04-15 07:45:51 +00:00
Miguel de Icaza
515e64efdc 1. Use the old artificial drag start code.
2. Load/Save desktop-icon transparent state.
3. Add arrange icons code.
4. Add snap to grid option (default now).
5. Fixed viewer crash.

Still left to do:
- Nice config dialog to set the above variables.
1998-04-15 03:16:29 +00:00
Miguel de Icaza
1ff37554b8 1998-04-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.h: Added extern declarations for the
	want_transparent_icons and want_transparent_text variables.

	* gtrans.c (set_window_text): Now we use the new global variables
	want_transparent_icons and want_transparent_text to decide how to
	paint the pixmap and mask.  The want_transparent_* variables can
	thus be configured for the smartness/speed of your X server when
	using shaped windows.
1998-04-14 19:08:15 +00:00
Norbert Warmuth
fd6cdb19cc Fri Apr 12 02:40:41 1998 Norbert Warmuth <k3190@fh-sw.de>
* gwidget.c (x_create_input): return 1 if the widget has been
        initialized manually (there was no return value)

        (x_create_buttonbar): to few arguments to sprintf (button number
        was missing); return a value.

Sun Apr 12 02:48:26 1998  Norbert Warmuth  <k3190@fh-sw.de>

        * xv/xvscreen.c: removed duplicate (conflicting) definition
        of do_enter()
1998-04-12 00:52:13 +00:00
Miguel de Icaza
e0c843048c A bunch of extra TODO items from DrMike have been adressed.
- Double click should work.
- Dragging to other panels shoudl work
- Scrollbar in the viewer
- Entry widgets get their text selected at startup
- Prompts for command if default action does not exist for a filename
- Updated spanish translation.

Plus some other bugs I fixed.

Miguel
1998-04-09 04:58:24 +00:00
Miguel de Icaza
ca2ffb99b6 Various fixes reported by DrMike:
- Nicer dialog destruction (no flicker)
- refresh of panels after a drop.
- Pause after run is gone in the gnome edition.
- Improved layout for options dialog box.
- Checkbox widgets are implemented, they now work.

Miguel.
1998-04-07 23:45:27 +00:00
Marc Ewing
3bbe4851e0 - added gdkprivate.h to gscreen.c
- tk Makefile tweak to use menu.* instead of tkmenu.*

(someday my commit will work!)

-Marc <marc@redhat.com>
1998-04-01 19:18:05 +00:00
Miguel de Icaza
0842a5390c 1998-03-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gcache.c: Added an Image cache for all of the imlib-loaded
	images to avoid destroying/reloading the images.

	* gdesktop.c, gtrans.c: Use the image cache.
1998-04-01 00:52:33 +00:00
Miguel de Icaza
ac70e34d02 MC goes Internationallsls./gmc Spanish translation almost complete -mig 1998-03-25 05:16:00 +00:00
Miguel de Icaza
f29db51778 cwd input line works/filter handling works/clipping label widget/flashing removed -mig 1998-03-24 05:25:56 +00:00
Miguel de Icaza
38f7b63645 1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (create_transparent_text_window): Set the window's
	cursor to the normal top-left arrow.
1998-03-24 05:03:56 +00:00
Norbert Warmuth
e06cd1968c Mon Mar 23 01:40:35 1998 Norbert Warmuth <k3190@fh-sw.de>
* gnome/gtools.c (translate_gdk_keysym_to_curses): renamed KEY_BACKTAB
to KEY_BTAB (the name ncurses uses)

* gnome/Makefile.in: Install the icon-files and the layout-file from $srcdir.

* autogen.sh: added support for builddir != srcdir

* doc/Makefile.in: The manual pages are generated files and
located in the builddir and not in the srcdir.

* src/find.c (find_file): Use the same hotkey for the panelize button
as we use with the external panelize command.

* src/myslang.h: --with-ncurses didn't compile: renamed
KEY_BACKTAB to KEY_BTAB (the name ncurses uses)

* src/dlg.c (dlg_key_event): likewise

* src/tkmain.c (x_init_dlg): added dummy function to make it
compile

* vfs/Makefile.in, extfs/extfs.ini, extfs/hp48: New external
filesystem to view and copy files to/from the HP48.

Now it should be possible to build and install gnome edition with
builddir != srcdir.
1998-03-23 07:12:13 +00:00
Miguel de Icaza
25d833d805 1998-03-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_properties):
	* gpageprop.c (item_properties): Modified to accept dentry title
	changes as well.
	(item_properties): Fixed base and fname confusion in call to
	concat_dir_and_file().

	* gprop.c (gprop_general_new):
	(gprop_general_get_data): Renamed to general from icon.  The
	general Gprop now lets you enter the title and icon filename for a
	dentry.
1998-03-20 23:38:43 +00:00
Miguel de Icaza
8dc04e93bd 1998-03-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_properties): Whoops, actually save the dentry.
	(post_setup_desktop_icon): Moved the icon positioning call outside
	of this function so that property-changed icons will not move on
	the desktop.
1998-03-20 06:00:20 +00:00
Miguel de Icaza
1cdbe8dbda 1998-03-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_context_popup): It is not necessary to
	set the menu position.
	(desktop_icon_context_popup): gtk_signal_connect_object_after to the menu
	items with gtk_widget_destroy as a callback so that we can destroy
	the menu widget appropriately.
1998-03-20 05:41:30 +00:00
Miguel de Icaza
09343b2393 Weee! gmc uses the gnome.m4 macros now and detects properly gnome installation - mig 1998-03-20 02:54:06 +00:00
Miguel de Icaza
442ad09caf 1998-03-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (get_transparent_window_for_dentry): New function,
	creates the proper transparent icon window for a dentry.
	(post_setup_desktop_icon): New function, does post-setup stuff for
	a desktop icon (setting it as a drop target, positioning it, etc.).

	* gpageprop.c (item_properties): Now the dentry parameter is a
	desktop_icon_t instead.
	We now return a bitmask that indicates what stuff changed.  The
	caller can use this information to decide what to update, repaint, etc.

	* gdesktop.h: Moved the icon_t and desktop_icon_t structures here.

	* gpageprop.c (item_properties): Insert icon control if appropriate.

	* gprop.c (gprop_icon_new):
	(gprop_icon_get_data): Renamed from gprop_dir_*().

	* gscreen.c (panel_action_properties): Re-reads panel only if necessary.

	*gpageprop.c (item_properties): now returns TRUE if something got
	changed, FALSE otherwise.  This should be used to decide whether
	to re-read the panel or not.

	* gpageprop.c: #include "../vfs/vfs.h".
	#include "dialog.h".

	* gprop.c (gprop_dir_new):
	(gprop_perm_new):
	(gprop_general_new): Connect to the destroy signal of the toplevel
	widget and destroy the Gprop structure on the callback.
1998-03-20 02:00:09 +00:00
Miguel de Icaza
d37d663f15 mc 4.1.28 is released 1998-03-19 20:07:54 +00:00
Miguel de Icaza
213a417181 We had time, so we wrote property pages for desktop, files and children all alike -mig and federico 1998-03-19 04:51:17 +00:00
Miguel de Icaza
84013cb8d5 Wed Mar 18 20:35:45 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_create_launch_entry): Support for the "Drop"
	target in mc.ext now.

	* Add support for dragging the icons on the desktop.

	(desktop_icon_make_draggable): new function.
	(drop_from_event): simplify.
	(my_create_transparent_text_window): Get the motion notify event.
	(drops_from_event): create a vector based on thge drop event.
	(drop_cb): splitted, call url_drop for regular drops, otherwise it
	is a icon drop.
	(artificial_drag_start): new routine, used now by gscreen.c and
	gdesktop.c
	(drop_on_directory): Check result value of operation.
	(desktop_icon_set_position): sane interface.
	(stop_desktop): Flush all of our state to disk.
1998-03-19 02:57:01 +00:00
Miguel de Icaza
9ab2e34656 1998-03-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c: Removed tests for the gprop stuff.
	(file_popup): It is not necessary to show the popup menu.
1998-03-19 02:35:44 +00:00
Miguel de Icaza
2a2ac8396f 1998-03-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gprop.c (perm_group_new):
	(perm_owner_new): Fill the combo lists with users and groups,
	respectively.
1998-03-19 02:32:03 +00:00
Miguel de Icaza
3d72eb83fc 1998-03-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gprop.h: New files gprop.[ch].  These create the property pages
	for desktop entries.

	* Makefile.in: Added gprop.[ch] to the rules.

	* glayout.c: Put gnome_about_cmd as a callback for the About menu item.
1998-03-19 01:22:32 +00:00
Miguel de Icaza
c996c5ddd2 Lots 1998-03-18 06:24:20 +00:00
Miguel de Icaza
2837e8f447 root window accepts drops (does not do anything yet)
setups a simple ~/desktop directory with a link to the home dir
various random bits documented in the changelog
1998-03-17 08:27:10 +00:00
Tom Tromey
982d4137a8 Tue Mar 17 00:43:50 1998 Tom Tromey <tromey@cygnus.com>
* glayout.c (gnome_panel_about_menu): "About" item now a stock
	menu item.
1998-03-17 07:58:52 +00:00
Miguel de Icaza
4a883be09e 1998-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (filter_item_activate): Make it convert the glob
	pattern to a regexp if appropriate.

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

	* util.c (convert_pattern): Now the internal buffer is malloc()ed
	instead of being static.  This is required for long patterns.
	(regexp_match): Free the pattern after calling convert_pattern().

	* file.c (file_mask_dialog): Free the source_mask after calling
	convert_pattern().
1998-03-17 00:24:52 +00:00
Miguel de Icaza
51900cea50 Fix several bugglets as reported by Tom. -miguel 1998-03-14 23:20:51 +00:00
Miguel de Icaza
ade5223b23 Viewer is nicer; Viewer is gnome-app; Viewer gets lots of options; Code gets cleaned -miguel 1998-03-14 00:42:23 +00:00
Miguel de Icaza
347f04ec92 1998-03-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_select_item): Make it use GTK_VISIBILITY_FULL
	instead of a plain boolean value.
	* gwidget.c (x_listbox_select_nth): Likewise.
1998-03-14 00:20:17 +00:00
Miguel de Icaza
c90b068d58 1998-03-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (filter_items): New global variable full of filters.
	Please, someone fill in the regexp parts, as I was too lazy to do
	them :-)
	(panel_create_filter): Now the filter has a very nice button that
	pops up a menu for selecting the filter.
1998-03-13 22:58:10 +00:00
Miguel de Icaza
022b293b39 Weeeeeeeeee!
Filter widget on the main window works!
Switched to use GnomeEntry instead of GtkEntry

It really kicks KFM's ass.

-Miguel.
1998-03-13 05:18:52 +00:00
Miguel de Icaza
791b34236c Wow! The file manager looks so slick!
Today:
	- New Menu layout!  Weeee!.
	- More mc commands exposed to the GNOME edition.
	- Use gnome stock pixmap buttons.
	- Use gnome stock for the menus.
	- Now it is possible to quit the program :-)
	- Various other bits.

If you can test it, I would appreciate it.

-Miguel.
1998-03-13 03:44:54 +00:00
Miguel de Icaza
1ee3e159aa 1998-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.c (update_region): Added clipping of region bounds.
1998-03-13 03:02:10 +00:00
Miguel de Icaza
6e4e6e029e oops, forgot to commit changelog - Federico 1998-03-13 02:30:03 +00:00
Miguel de Icaza
276761aa48 1998-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.c: Changed the struct attr with pointers mess with
	something saner.
	Added an in_resize flag to avoid calling our internal signal
	handlers recursively.
	(gmc_char_grid_draw): Added proper draw handler for our case; the
	widget's window does not fill its allocation.
	(paint): New wrapper for update_region(); it converts window
	coordinates to row/column character coordinates.
	(gmc_char_grid_expose): Use paint().
1998-03-13 00:56:24 +00:00
Miguel de Icaza
a65ce95420 More fixes to viewer repainting - Federico 1998-03-12 06:02:21 +00:00
Miguel de Icaza
b4332cc177 Context menu is now smarter :-)
Context menu rearranged
Removed dead code
Shapped drag and drop
Different drag and drop icons depending on single/multiple drags
Artificial dnd is here (Thanks Elliot!)
cwd displays something interesting
Beginning of the internal viewer status display.

-miguel.
1998-03-12 05:59:43 +00:00
Miguel de Icaza
ad1610c2e3 Viewer works; Entry widgets are synced with selection;
panel fills properly (fixes a bunch of file operations); more dialog
boxes exported to the gnome edition -mig
1998-03-12 03:29:45 +00:00
Miguel de Icaza
11099ee712 1998-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.c (gmc_char_grid_get_size): New public function.
	(gmc_char_grid_put_text): New public function.  It is the same as
	gmc_char_grid_put_str, but can take any arbitrary string plus its
	length.
	(gmc_char_grid_put_char, gmc_char_grid_put_str,
	gmc_char_grid_put_text): These functions now take a background
	pixel parameter --- the GmcCharGrid widget now supports fg/bg attributes.

	* gmc-chargrid.h: Changed colors field to attrs.
1998-03-12 02:28:12 +00:00
Miguel de Icaza
c3b299f39a 1998-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmc-chargrid.h:
	* gmc-chargrid.c: New Character Grid widget for the file viewer.
	This is a very lean and fast widget for displaying a grid of
	monospaced characters.  Just like a crippled-down terminal.
1998-03-11 22:50:29 +00:00
Miguel de Icaza
d934dc4afe get_other_type works; sort order box works; rescan works; filter
is enabled; virtual fs setup dialog box is up; save setup; mkdir

link command is hossed.  It is more than hossed for some stoopid
reason, the thing is selecting the first file in the panel
just after I talked to it.  No matter how argumentative I get
with the code.  Have to fix next.

Commit the bits I forgot to commit yesterday.
-miguel.
1998-03-11 05:55:05 +00:00
Miguel de Icaza
df4a6d6a3e 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_file_list_size_allocate_hook): Now we
	connect_after to the size_allocate signal and block the handler.
	Things are still not perfect, though.
1998-03-10 22:34:28 +00:00
Miguel de Icaza
4dd40872d9 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtools.c (message): Added return NULL.  This needs to be fixed.
	(translate_gdk_keysym_to_curses): FIXME: Replace KEY_BACKTAB by '\t'
	while KEY_BACKTAB is added somewhere else.
	(translate_gdk_keysym_to_curses): return -1 as last resort.

	* glayout.c (get_current_index): Add g_assert_not_reached() for
	fatal case.

	* gmenu.c (menubar_new): Cast g_menubar to unsigned long.

	* gwidget.c (x_create_input): Cast entry to GTK_OBJECT.

	* gkey.c (find_select_closure_callback): Fix = -> == typo.

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

	* xslint.c (getch): Added missing "return".

	* utilunix.c (init_groups): Added parentheses around
	assignment/truth value.

	* boxes.c: #include <stdlib.h>

	* screen.c (string_inode): Cast fe->buf.st_ino to long to be
	consistent with sprintf format.

	* main.c (handle_args): Added parentheses around assignment/truth value.
1998-03-10 21:10:30 +00:00
Miguel de Icaza
49eda3f828 Forgot the pixmaps :-) 1998-03-10 20:55:01 +00:00
Miguel de Icaza
c330992ae1 Tue Mar 10 14:01:47 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gscreen.c

	* gscreen.c (x_adjust_top_file): We no longer adjust the top
	displayed filename.

	(panel_build_selected_file_list): Fix for the transfered data.

	(panel_drop_data_available): Now drop support uses the new
	coords.x and coords.y fields from the DropDataAvailableEvent to
1998-03-10 20:14:17 +00:00
Miguel de Icaza
c6d65c1bd3 Add a couple of icons for devices and symlinks 1998-03-10 06:31:01 +00:00
Miguel de Icaza
e78e0bd556 1998-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_panel_select_item): Set the colors of the row.
1998-03-10 04:45:35 +00:00
Miguel de Icaza
768e9596b4 1998-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.c (xtoolkit_init): Changed gnome_init() to new version.
	(xtoolkit_init): Call gnome_init() properly.  Also, return 0.
1998-03-10 01:50:55 +00:00
Miguel de Icaza
8ba83a3921 Sat Mar 7 15:24:49 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (entry_click): Focus the entry on clicks.
1998-03-07 21:24:48 +00:00
Miguel de Icaza
057f69beae Lots of fixes: screen layout is much nicer on the GNOME edition now;
Listbox widget fully implemented;

MC Idle handlers implemented

Find command now works;

Changing the listing mode works;

various other bug fixes.
1998-03-07 03:02:01 +00:00