mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-23 11:42:09 +03:00
Small improvements
This commit is contained in:
parent
39acc9b1a1
commit
44caa06a7b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
11
gnome/mc.metadata.in
Normal 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
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user