Commit graph

27 commits

Author SHA1 Message Date
Bastien Nocera
a4eb4f1ba3 font-viewer: Fix a compile-time warning
Due to an undeclared function.
2010-09-20 18:24:14 +01:00
Benjamin Otte
7ea3249a4a Replace Gdk drawing with Cairo
https://bugzilla.gnome.org/show_bug.cgi?id=626870
2010-08-20 21:38:00 +02:00
Thomas Wood
7c1e4cf526 font-viewer: create the preview pixmap after the drawing area is realized
The drawing area needs to be realized before the preview pixmap is created
to ensure the X resources are available to create the font information.
2010-07-18 22:37:10 +01:00
Maxim Ermilov
c2211ffe0b Use accessor functions instead direct access
https://bugzilla.gnome.org/show_bug.cgi?id=597888
2010-04-22 17:38:59 +04:00
Javier Jardón
825434bbcd Remove GTK+ deprecated symbols
https://bugzilla.gnome.org/show_bug.cgi?id=572325
2010-04-13 19:34:52 +02:00
Jens Granseuer
d5e168c81a [font-viewer] Don't use URI notation when installing fonts
The code treated a URI as a path which would result in escaped
characters showing up as "%20" and such in the destination file
name. Be more careful to treat URIs as URIs and paths as paths.

Closes bug #603732.
2009-12-05 13:04:27 +01:00
Jens Granseuer
109414ee82 [font-viewer] Expand the Copyright display to get rid of unnecessary scrollbar 2009-11-14 14:22:06 +01:00
Jens Granseuer
89147e3e4c [font-viewer] Fix signedness compiler warnings 2009-11-14 14:15:01 +01:00
Jens Granseuer
db072ff49f [font-viewer] Use pango_language_get_sample_string for sample text
Closes bug #595107.
2009-11-14 14:03:59 +01:00
Jens Granseuer
d423cf9a4c Use preferences-desktop-font for the icon (bug #592642) 2009-08-22 13:31:48 +02:00
Jens Granseuer
87ffe4d5f1 Fix compiler warnings and error checking
Fix a few "incompatible type" compiler warnings, and correctly
pass a GError* to g_file_make_directories_with_parents.
2009-08-09 13:01:55 +02:00
Thomas Wood
abac22a412 [font-viewer] add an install button to copy the font to ~/.fonts
Add an install button to allow the user to install the viewed font to the
.fonts directory of their home directory.
2009-07-26 20:45:34 +01:00
Thomas Wood
1a8087a181 [font-viewer] prevent vertical scrolling on the preview area
The preview is much wider than it is tall, so it is more advantageous to
scroll horizontally rather than vertically.
2009-07-26 20:01:54 +01:00
Thomas Wood
daa0a0dd78 [font-viewer] Use labels for multi-line information fields
The data is non-editable, so it should not have the appearance of an
editable text field. Therefore, labels are more appropriate than textview.
2009-07-26 19:33:48 +01:00
Thomas Wood
de961ac54b [font-viewer] Switch to a horizontal layout
Switch to a horizontal layout as suggested by
Hylke Bons <hylkebons@gmail.com>
2009-07-26 19:09:05 +01:00
Thomas Wood
5d882a3bdd Automatically generate .gitignore files with git.mk
Add git.mk and include it in all Makefiles to generate .gitignore files
2009-07-16 00:38:51 +01:00
Jens Granseuer
931ddc40dd [font-viewer] interrupt thumbnailing at 30 secs instead of 30 msecs
Timeout value was supposed to be 30 seconds; 30 milliseconds is a bit
too short to get any amount of thumbnailing done (bug #584107)
2009-05-28 21:00:05 +02:00
Christian Persch
4864d99794 * font-viewer/ftstream-vfs.c: (vfs_stream_open): Safely printf
strings. Bug #581731.
2009-05-07 23:29:47 +02:00
Bastien Nocera
f1a29fc6dc Stop the font thumbnailer eating all the CPU, and limit the resources to
2009-03-02  Bastien Nocera  <hadess@hadess.net>

	* font-viewer/Makefile.am:
	* font-viewer/font-thumbnailer.c (main):
	* font-viewer/totem-resources.c (set_resource_limits),
	(time_monitor), (totem_resources_monitor_start),
	(totem_resources_monitor_stop):
	* font-viewer/totem-resources.h: Stop the font thumbnailer
	eating all the CPU, and limit the resources to 30 seconds
	and 256MB of RAM, which should be plenty (Closes: #573795)


svn path=/trunk/; revision=9306
2009-03-02 23:06:10 +00:00
Jens Granseuer
3bbde05235 Patch by: Jonas Bonn
2009-02-18  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Jonas Bonn

	* font-viewer/font-thumbnailer.c: (main): initialize the type system.
	Fixes hangs when thumbnailing (bug #572189)

svn path=/trunk/; revision=9275
2009-02-18 18:51:28 +00:00
Thomas Hindoe Paaboel Andersen
49cfd993c1 Replace gdk_pixbuf_unref with g_object_unref
svn path=/trunk/; revision=9253
2009-02-09 13:52:54 +00:00
Jens Granseuer
cabbecfa4b fix another leak, an invalid free, and a simplify error handling
2008-11-18  Jens Granseuer  <jensgr@gmx.net>

	* font-viewer/font-view.c: (add_face_info), (set_icon):
	* font-viewer/ftstream-vfs.c: (vfs_stream_open): fix another
	leak, an invalid free, and a simplify error handling

svn path=/trunk/; revision=9144
2008-11-18 20:04:02 +00:00
Rodrigo Moya
afbe70bca0 don't leak icon_name.
2008-11-18  Rodrigo Moya <rodrigo@gnome-db.org>

	* font-viewer/font-view.c (set_icon): don't leak icon_name.

	* font-viewer/ftstream-vfs.c (vfs_stream_open): don't leak
	GFile pointer.

svn path=/trunk/; revision=9143
2008-11-18 17:59:38 +00:00
Rodrigo Moya
8cff6042ab added missing GFileInfo declaration.
2008-11-18  Rodrigo Moya <rodrigo@gnome-db.org>

	* font-viewer/font-view.c (set_icon): added missing
	GFileInfo declaration.

2008-11-18  Rodrigo Moya <rodrigo@gnome-db.org>

	Bug 561319 – Remove gnome-vfs dependency from font-viewer

	Patch from Saleem Abdulrasool <compnerd@compnerd.org>

	* font-viewer/*:
	* configure.in: Remove gnome-vfs dependency for font-viewer.

svn path=/trunk/; revision=9142
2008-11-18 17:46:12 +00:00
Søren Sandmann
fab37a0965 Stop linking to the gnome libraries, except in the shell and in the font
Sun Oct 26 19:15:22 2008  Søren Sandmann  <sandmann@redhat.com>

	* configure.in: Stop linking to the gnome libraries, except in the
	shell and in the font viewer.


svn path=/trunk/; revision=9127
2008-10-26 23:15:42 +00:00
Davyd Madeley
d7696237c8 - hook gnome-font-viewer and gnome-thumbnail font back into the build -
2008-10-16  Davyd Madeley  <davyd@madeley.id.au>

        * configure.in:
        * font-viewer/Makefile.am:
        * Makefile.am:
        - hook gnome-font-viewer and gnome-thumbnail font back into the build
        - need to check to see if the strings were lost from the translations

svn path=/trunk/; revision=9068
2008-10-16 13:52:09 +00:00
Davyd Madeley
a6e07cf5f6 remove properly resurrect gnome-font-viewer and gnome-thumbnail-font from
2008-10-15  Davyd Madeley  <davyd@madeley.id.au>

        * vfs-methods/: remove properly
        * font-viewer/: resurrect gnome-font-viewer and gnome-thumbnail-font
          from revision 8786 (not yet added to toplevel Makefile)

svn path=/trunk/; revision=9066
2008-10-15 14:46:43 +00:00