summaryrefslogtreecommitdiff
path: root/test-display.c
Commit message (Collapse)AuthorAgeFilesLines
* test-display: Don't use deprecated gdk_color_parse()Federico Mena Quintero2015-04-171-6/+7
|
* test-display: Don't use deprecated gtk_scrolled_window_add_with_viewport()Federico Mena Quintero2015-04-171-2/+1
|
* test-display: Remove dead codeFederico Mena Quintero2015-04-171-25/+2
|
* Don't use deprecated gtk_stockFederico Mena Quintero2015-04-161-17/+20
|
* Handle the deprecation of g_type_init() to avoid compiler warningsFederico Mena Quintero2015-04-161-2/+3
| | | | Maybe we should increment the glib version requirement one of these days...
* all: Add option to parse huge SVG XML filesChristian Persch2014-06-181-1/+9
| | | | | | | | | | For security reasons, newer libxml versions applies limits that huge SVG files exceed and thus fail parsing. Add an RSVG_HANDLE_FLAG_UNLIMITED flag that uses XML_PARSE_HUGE to allow parsing these files again. Note: for security reasons, this flag should ONLY be used on trusted input! https://bugzilla.gnome.org/show_bug.cgi?id=710310
* test-display: Fix potential g_object_unref(NULL) callPhilip Withnall2013-11-291-1/+2
| | | | | | | | base_file can legitimately be NULL at this point. Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=719552
* Require at least version 3.2 of GTK+Jasper St. Pierre2013-09-031-4/+0
|
* rsvg-view: Print errors to stderrChristian Persch2012-09-051-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=683380
* Deprecate including headers other than rsvg.hEvan Nemerson2012-06-121-1/+0
|
* rsvg-view: Better error messageChristian Persch2012-04-161-5/+6
|
* Remove now unused or unneeded variables and functionsFelix Riemann2012-03-261-6/+0
| | | | | | | Fixes compiler warnings when -Wunused-variable and -Wunused-functions compiler switches are enabled. Bug #672725.
* rsvg-view: Plug a mem leakChristian Persch2012-02-211-0/+1
| | | | | | | | | | | | | | | | | ==9159== 48 bytes in 1 blocks are definitely lost in loss record 5,116 of 6,936 ==9159== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==9159== by 0x4D19714: standard_malloc (gmem.c:85) ==9159== by 0x4D197B7: g_malloc (gmem.c:159) ==9159== by 0x4D301D1: g_slice_alloc (gslice.c:1003) ==9159== by 0x4D30217: g_slice_alloc0 (gslice.c:1029) ==9159== by 0x4A3067F: g_type_create_instance (gtype.c:1872) ==9159== by 0x4A19C79: g_object_constructor (gobject.c:1839) ==9159== by 0x4A1937A: g_object_newv (gobject.c:1622) ==9159== by 0x4A19168: g_object_new (gobject.c:1532) ==9159== by 0x47CFFCF: _g_local_file_input_stream_new (glocalfileinputstream.c:152) ==9159== by 0x47C905D: g_local_file_read (glocalfile.c:1339) ==9159== by 0x46FEB6A: g_file_read (gfile.c:1481) ==9159== by 0x804C061: main (test-display.c:707)
* rsvg-view: Better error messageChristian Persch2012-01-301-1/+6
|
* Don't export private function _rsvg_size_callbackChristian Persch2012-01-261-0/+1
| | | | Move it to its own file, and include that in rsvg-convert and the tests.
* rsvg-view: Always initialise variableChristian Persch2012-01-131-2/+2
|
* rsvg-view: Re-implement .svgz supportChristian Persch2012-01-131-1/+29
|
* Rework rsvg-viewChristian Persch2011-12-191-425/+281
| | | | | | Drop gtk2, use cairo surfaces instead of pixbuf, use GIO, load the SVG just once instead of every time we zoom or print, and remove some unused or unnecessary options.
* Deprecate rsvg_init and rsvg_termChristian Persch2011-11-071-4/+2
| | | | | | | | | | | rsvg_init() should be replaced by g_type_init(); we now call xmlInitParser() in RsvgHandleClass::init. rsvg_term() was dangerous to call, so just make it a no-op and add a new rsvg_cleanup() that calls xmlCleanupParser(), for use only when you know what you're doing. https://bugzilla.gnome.org/show_bug.cgi?id=614157
* Fix for GtkVBox deprecationChristian Persch2011-11-071-0/+4
| | | | On gtk3, use a GtkBox.
* Fix unused-but-set-variable warningsChristian Persch2011-11-071-4/+2
|
* Don't call g_thread_initChristian Persch2011-11-071-1/+1
| | | | It's deprecated.
* Plug mem leaks in rsvg-viewChristian Persch2011-11-071-2/+8
| | | | | | | | | | | | | | | | | | | ==10734== 19 (8 direct, 11 indirect) bytes in 1 blocks are definitely lost in loss record 1,325 of 2,962 ==10734== at 0x4026EB4: malloc (vg_replace_malloc.c:236) ==10734== by 0x4B3B823: g_malloc (gmem.c:164) ==10734== by 0x4B40A76: parse_arg (goption.c:1242) ==10734== by 0x4B42123: g_option_context_parse (goption.c:1572) ==10734== by 0x804C39B: main (test-display.c:784) ==10734== ==10734== 40 (24 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record 2,103 of 2,962 ==10734== at 0x4026EB4: malloc (vg_replace_malloc.c:236) ==10734== by 0x4B3B823: g_malloc (gmem.c:164) ==10734== by 0x4B51726: g_slice_alloc (gslice.c:842) ==10734== by 0x4B07158: g_array_sized_new (garray.c:185) ==10734== by 0x4B07275: g_byte_array_new (garray.c:1402) ==10734== by 0x4034F0C: rsvg_acquire_file_resource (rsvg-image.c:109) ==10734== by 0x403512A: _rsvg_acquire_xlink_href_resource (rsvg-image.c:174) ==10734== by 0x804C59B: main (test-display.c:837)
* rsvg-view: Fix build with gtk 3Christian Persch2010-09-271-0/+4
| | | | GdkColormap is gone.
* Fix for gdk keysym name changeMaciej Piechotka2010-09-271-6/+12
|
* Remove XEMBED support from rsvg-viewChristian Persch2010-06-261-35/+4
|
* set proper mode-line and fix indent.Hiroyuki Ikezoe2010-04-251-24/+25
|
* scale image if the image is larger than screen by default.Hiroyuki Ikezoe2010-04-171-15/+99
|
* rsvg-view should show current zoom ratio.Hiroyuki Ikezoe2010-04-171-18/+49
| | | | Fix for bug #615699.
* Fix crash while saving as svg.Christian Persch2010-04-101-10/+2
| | | | | | Part of fix for bug #591766. The return value of basename should not be free. We can use g_path_get_basename instead.
* remove needless G_OBJECT macros.Hiroyuki Ikezoe2010-04-071-12/+12
|
* Make librsvg compile with -DGSEAL_ENABLED. Fixes bug 612489.Andre Klapper2010-03-101-3/+3
|
* command-line tools can't handle UTF-8 encoded filenames (#557036, reportedDominic Lachowicz2008-10-201-0/+4
| | | | | | | | | | | 2008-10-20 Dominic Lachowicz <domlachowicz@gmail.com> * rsvg-convert.c: command-line tools can't handle UTF-8 encoded filenames (#557036, reported by Tim Starling) * test-display.c: ditto svn path=/trunk/; revision=1180
* #549418 - build failure: test-display.c io-svg.c format not a stringDominic Lachowicz2008-08-261-1/+1
| | | | | | | | | | | 2008-08-26 Dominic Lachowicz <domlachowicz@gmail.com> * gdk-pixbuf-loader/io-svg.c: #549418 - build failure: test-display.c io-svg.c format not a string literal and no format arguments * test-display.c: Ditto svn path=/trunk/; revision=1170
* 524008 - remove spurious g_print()Dom Lachowicz2008-03-241-2/+0
| | | | svn path=/trunk/; revision=1159
* bump version; adjust for frame bordersDom Lachowicz2008-02-241-8/+21
| | | | svn path=/trunk/; revision=1157
* Make window size larger (#445870)Dom Lachowicz2008-02-241-2/+2
| | | | | | | * test-display: Make window size larger (#445870) svn path=/trunk/; revision=1155
* Get rid of gnome print. Use gtk-print instead (#508526)Dominic Lachowicz2008-02-021-108/+61
| | | | | | | | | | 2008-02-02 Dominic Lachowicz <domlachowicz@gmail.com> * test-display.c: Get rid of gnome print. Use gtk-print instead (#508526) svn path=/trunk/; revision=1144
* Add the filename to the window title. Bug #512797.Christian Persch2008-01-291-1/+9
| | | | | | | | | 2008-01-29 Christian Persch <chpe@gnome.org> * test-display.c: (view_pixbuf): Add the filename to the window title. Bug #512797. svn path=/trunk/; revision=1141
* fix modeline.Emmanuel Pacaud2007-06-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | 2007-06-22 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> * test-display.c: fix modeline. 2007-06-22 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> Fix for Bug 448327 * rsvg-base.c (rsvg_path_is_uri): new. (rsvg_get_base_uri_from_filename): really return a URI. (rsvg_handle_set_base_uri): accept a non URI as parameter, converting it to local URI. * rsvg-convert.c: fix rsvg_handle_set_base_uri call. * rsvg-image.c (rsvg_get_file_path): adpat the code to the fact base_uri is now really an URI. (rsvg_acquire_file_resource): handle path==NULL. svn path=/trunk/; revision=1120
* Bug 444443 - allow to subrender with rsvg-view. From Christian Persch.Dom Lachowicz2007-06-151-5/+49
| | | | | | | | | 2007-06-15 Dom Lachowicz <domlachowicz@gmail.com> * test-display.c: Bug 444443 - allow to subrender with rsvg-view. From Christian Persch. svn path=/trunk/; revision=1117
* 402107 . rsvg_convert and rsvg_viiew crash if called \ without argumentsDom Lachowicz2007-01-291-1/+1
| | | | | | | | | | 2007-01-29 Dom Lachowicz <domlachowicz@gmail.com> * test-display.c: 402107 . rsvg_convert and rsvg_viiew crash if called \ without arguments * rsvg-convert.c: ditto svn path=/trunk/; revision=1094
* Indentation fix, using: indent -kr -nut -pcs -psl -i4 -l100Emmanuel Pacaud2007-01-121-692/+649
| | | | | | | | | 2007-01-12 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> Indentation fix, using: indent -kr -nut -pcs -psl -i4 -l100 svn path=/trunk/; revision=1088
* make a debug message prettierDom Lachowicz2006-08-231-2/+2
|
* Use rsvg_return_if_fail where appropriate, to make life easier forDom Lachowicz2006-04-191-2/+4
| | | | | | | | 2006-04-19 Dom Lachowicz <cinamod@hotmail.com> * *.[ch]: Use rsvg_return_if_fail where appropriate, to make life easier for language bindings and to report errors more consistently (bug #338881)
* ditch popt in favor of goption; bug 336089Dom Lachowicz2006-04-011-36/+32
|
* oops - fix toolbar issue for real this timeDom Lachowicz2006-02-051-1/+1
|
* don't show zoom buttons when embedded as a mozilla pluginDom Lachowicz2006-02-051-10/+12
|
* Bug #330008 - prevent crashes and other bad behavior by checkingDom Lachowicz2006-02-051-2/+2
| | | | return values. Inspired by work done by Daniel Drake (dsd@gentoo.org)
* bug 327177Dom Lachowicz2006-01-161-25/+50
|