Small improvements

This commit is contained in:
Miguel de Icaza 1998-12-07 17:08:59 +00:00
parent 39acc9b1a1
commit 44caa06a7b
6 changed files with 36 additions and 9 deletions

View File

@ -170,7 +170,7 @@ DISTGNOME = \
main-corba.o: main.c
$(CC) -c -DHAVE_CORBA $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o main-corba.o
all: @gmc@ Makefile
all: @gmc@ Makefile mc.metadata
Makefile: Makefile.in ../config.status
(cd ..; CONFIG_FILES=gnome/Makefile CONFIG_HEADERS= ./config.status)
@ -185,6 +185,10 @@ mx: @LIBVFS@ $(OBJS) $(NORMALOBJS) @LIBSLANG@ libgtkedit.a
corba-gmc: @LIBVFS@ $(OBJS) $(CORBAOBJS) @LIBSLANG@ libgtkedit.a
$(CC) $(CORBA_LDFLAGS) -o gmc $(CORBAOBJS) $(OBJS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
mc.metadata: mc.metadata.in Makefile
sed -e 's^\@icondir\@^$(icondir)^g' < $(srcdir)/mc.metadata.in > mc.metadata.tmp \
&& mv mc.metadata.tmp mc.metadata
@LIBVFS@:
cd ../vfs; $(MAKE) @LIBVFS@
@PCENTRULE@ -$(RMF) @LIBVFS@
@ -252,6 +256,7 @@ install_gmc: all
for I in $(ICONS); \
do $(INSTALL_DATA) $(srcdir)/$$I $(DESTDIR)$(icondir)/$$I; done
$(INSTALL_DATA) $(srcdir)/layout $(DESTDIR)$(libdir)/layout
$(INSTALL_DATA) $(srcdir)/mc.metadata $(DESTDIR)$(datadir)/metadata
uninstall:
-$(RMF) $(DESTDIR)$(bindir)/$(binprefix)gmc

View File

@ -8,18 +8,18 @@ New task list:
- Make the tree faster (cache loaded directories)
- Sync the tree to the panel view
- Add focus management to the tree
- Sync the tree selection to the panel view.
- Add drag and drop to the tree view.
- Add to the gnome-panel mime-type support
- Drop the MC event handling off for the main window.
- Remote control of the file manager (corba client command).
- Dynamic directory content loading.
- Dynamic thumbnail generation
Federico:
- Make the popup menus work on the desktop

View File

@ -982,6 +982,15 @@ panel_icon_list_select_icon (GtkWidget *widget, int index, GdkEvent *event, WPan
if (event->button.button == 3) {
gpopup_do_popup ((GdkEventButton *) event, panel, index, panel->dir.list[index].fname);
return;
} else if (event->button.button == 2){
char *fullname;
if (S_ISDIR (panel->dir.list [index].buf.st_mode) ||
panel->dir.list [index].f.link_to_dir){
fullname = concat_dir_and_file (panel->cwd, panel->dir.list [index].fname);
new_panel_at (fullname);
free (fullname);
}
}
break;

11
gnome/mc.metadata.in Normal file
View File

@ -0,0 +1,11 @@
regex: \.c$
type=x-application-gnome/c-source
icon-filename=@icondir@/c.xpm
regex: \.h$
type=x-application-gnome/c-source
icon-filename=@icondir@/h.xpm
regex: \.tiff$
type=image/tiff
icon-filename=@icondir@/tiff.xpm

View File

@ -29,6 +29,8 @@ ALLICONS = a.xpm application.xpm binary.xpm bitmap.xpm blackhole.xpm \
xbm.xpm xchess.xpm xfig.xpm xman.xpm xmosaic.xpm xpaint.xpm xpm.xpm \
zip.xpm zoo.xpm
DECENTICONS = c.xpm h.xpm tiff.xpm
all:
install:
@ -36,7 +38,7 @@ install:
installx: @insticons@
install_icons:
for I in $(ALLICONS); \
for I in $(DECENTICONS); \
do $(INSTALL_DATA) $(srcdir)/$$I $(DESTDIR)$(icondir)/$$I; done
uninstall:

View File

@ -406,7 +406,7 @@ extern void mc_vfs_done( void );
#ifdef ENOSYS
#define E_NOTSUPP ENOSYS /* for use in vfs when module does not provide function */
#else
#warning Does this really happen?
/* Yes, this does happen */
#endif
#ifdef ENOMSG