diff --git a/vfs-methods/fontilus/ChangeLog b/vfs-methods/fontilus/ChangeLog index 9cacd0266..3b79479db 100644 --- a/vfs-methods/fontilus/ChangeLog +++ b/vfs-methods/fontilus/ChangeLog @@ -1,3 +1,15 @@ +2004-12-10 James Henstridge + + * Makefile.am (install-desktop-database): update the desktop file + database on install, since we install a new mime action. + + * font-view.c (get_font): don't free the pattern when creating the + font object, since XftFontOpenPattern takes ownership of the + pattern. + + * gnome-font-viewer.desktop.in.in (Exec): use %u instead of %U, + since we only support openning one file. + 2004-11-28 James Henstridge * thumbnailer.c (main): use gnome_vfs_make_uri_from_shell_arg() to diff --git a/vfs-methods/fontilus/Makefile.am b/vfs-methods/fontilus/Makefile.am index 4e3db47ba..e3c5e20da 100644 --- a/vfs-methods/fontilus/Makefile.am +++ b/vfs-methods/fontilus/Makefile.am @@ -38,15 +38,20 @@ desktopdir = $(datadir)/applications desktop_in_files = gnome-font-viewer.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) +install-data-local: install-gconf-schemas install-desktop-database + if GCONF_SCHEMAS_INSTALL -install-data-local: +install-gconf-schemas: if test -z "$(DESTDIR)"; then \ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule fontilus.schemas; \ fi else -install-data-local: +install-gconf-schemas: endif +install-desktop-database: + update-desktop-database $(DESTDIR)$(desktopdir) + @INTLTOOL_DESKTOP_RULE@ @INTLTOOL_DIRECTORY_RULE@ @INTLTOOL_SCHEMAS_RULE@ diff --git a/vfs-methods/fontilus/font-view.c b/vfs-methods/fontilus/font-view.c index 99761b53a..686229e71 100644 --- a/vfs-methods/fontilus/font-view.c +++ b/vfs-methods/fontilus/font-view.c @@ -74,7 +74,6 @@ get_font(Display *xdisplay, FT_Face face, gint size, FcCharSet *charset) XftDefaultSubstitute (xdisplay, screen, pattern); font = XftFontOpenPattern(xdisplay, pattern); - FcPatternDestroy(pattern); return font; } diff --git a/vfs-methods/fontilus/gnome-font-viewer.desktop.in.in b/vfs-methods/fontilus/gnome-font-viewer.desktop.in.in index 19f6eff6f..340dd1944 100644 --- a/vfs-methods/fontilus/gnome-font-viewer.desktop.in.in +++ b/vfs-methods/fontilus/gnome-font-viewer.desktop.in.in @@ -3,7 +3,7 @@ Encoding=UTF-8 _Name=GNOME Font Viewer _Comment=The GNOME configuration tool Icon=gnome-settings-font -Exec=gnome-font-viewer %U +Exec=gnome-font-viewer %u Terminal=false Type=Application StartupNotify=true