Jim Evins [Sun, 11 Apr 2010 04:05:30 +0000 (00:05 -0400)]
Add place-holder field to all empty private structures
Fixes glabels bug #2981895. This is a work-around for glib bug #615379. For
objects with no private data, add a place-holder field so that the private
structure is not of zero length which causes g_new0() to crash in glib
2.24.0.
Jim Evins [Mon, 15 Feb 2010 22:13:14 +0000 (17:13 -0500)]
Create a default frame if missing from template file
When parsing a template node, if there is no recognized frame node (e.g.
Label-rectangle), a default full-page frame with a 1x1 layout is created.
This prevents potential crashes if sharing a user '.glabels' directory
with future versions of glabels with new frame types, or in the case of
typos for hand generated templates.
Jim Evins [Sun, 7 Feb 2010 01:21:26 +0000 (20:21 -0500)]
Relax libxml limits when parsing label files
Glabels bug #2940758. Back port from master: Use XML_PARSE_HUGE parser option
so that we can handle large text nodes, such as encoded images. This
modification is only applied if libxml 2.7+ is available, as to not introduce
new dependencies.
Jim Evins [Thu, 5 Nov 2009 04:00:42 +0000 (23:00 -0500)]
Fixed merge inconsistencies and crash
merge.c:
Fixed crash when trying to print when a "key" radio has been selected
but no key has been selected yet.
object-editor-*-page.c:
Fixed potential inconsistencies with "key" radio buttons when a merge
source has not been selected but the field indicates that it is using a
merge key. This can happen when opening a glabels file that has a merg
type not supported by the current instance of glabels.
xml-label.c:
Also when parsing a merge field that has a merge type not supported,
don't continue parsing it.
Jim Evins [Wed, 4 Nov 2009 03:41:09 +0000 (22:41 -0500)]
Updated documentation for 2.2.6
- Added an example for doing document merge from evolution data server. (Mario Blättermann)
- Updated most screenshots to 2.2.6 with Clearlooks theme.
- Minor corrections
Jim Evins [Sun, 25 Oct 2009 04:05:16 +0000 (00:05 -0400)]
Fixed incorrect storage of glPrefsModel's base object
Parent object was declared as a pointer, so there was not enough room for
the parent/base object. This potentially could have caused havoc with this
object.
Jim Evins [Fri, 18 Sep 2009 01:58:24 +0000 (01:58 +0000)]
2009-09-17 Jim Evins <evins@snaught.com>
* src/stock.c: (add_icons), (add_button_icon):
Use proper free function for GtkIconSource (gtk_icon_source_free() not g_free()).
Patch provided by Christian Persch <chpe@gnome.org>.
Jim Evins [Thu, 30 Apr 2009 01:52:21 +0000 (01:52 +0000)]
2009-04-29 Jim Evins <evins@purple>
* data/templates/avery-iso-templates.xml:
* data/templates/misc-iso-templates.xml:
* data/templates/misc-us-templates.xml:
Make sure new descriptions are marked translatable.
Jim Evins [Thu, 30 Apr 2009 01:38:56 +0000 (01:38 +0000)]
2009-04-29 Jim Evins <evins@purple>
* data/templates/avery-iso-templates.xml:
* data/templates/misc-iso-templates.xml:
* data/templates/misc-us-templates.xml:
Caught up on user submitted templates.
* AUTHORS:
Acknowledgements for above templates.
Jim Evins [Wed, 29 Apr 2009 02:15:57 +0000 (02:15 +0000)]
2009-04-28 Jim Evins <evins@purple>
* data/glade/object-editor.glade:
* data/glade/prefs-dialog.glade:
* data/glade/property-bar.glade:
* data/glade/template-designer.glade:
* src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct),
(first_spin_cb), (last_spin_cb):
* src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
Zero out adjustment->page_size for all spinbuttons. With gtk-2.14 this causes
many warning and with gtk-2.16 this actually breaks the spinbuttons.
Jim Evins [Sun, 28 Dec 2008 02:45:13 +0000 (02:45 +0000)]
2008-12-27 Jim Evins <evins@snaught.com>
* de.po:
Updated german translation (Mario Blättermann)
* AUTHORS:
Updated credits to reflect above translation.
* data/glade/object-editor.glade:
* data/glade/prefs-dialog.glade:
* data/glade/template-designer.glade:
Removed "translatable" attribute from whitespace strings,
which are used only to help layout.
Jim Evins [Fri, 19 Dec 2008 03:08:39 +0000 (03:08 +0000)]
2008-12-18 Jim Evins <evins@snaught.com>
* src/view.c: (selection_received_cb):
Fixed paste bug that caused a duplicate phantom view_object to be created for
each new label_object. This is because the view now (as of r673) the view
monitiors the label for new objects and creates view_objects automatically.
Jim Evins [Sun, 16 Nov 2008 03:59:46 +0000 (03:59 +0000)]
2008-11-15 Jim Evins <evins@snaught.com>
* libglabels/db.c: (lgl_db_register_template):
* libglabels/xml-template.c:
(lgl_xml_template_parse_template_node):
* src/glabels-batch.c:
* src/view-text.c: (gl_view_text_create_button_press_event):
Fixed several issues such as possible use of uninitialized variables found with "-O1 -Wall".
Jim Evins [Tue, 28 Oct 2008 03:49:42 +0000 (03:49 +0000)]
2008-10-27 Jim Evins <evins@snaught.com>
* data/templates/avery-us-templates.xml:
* data/templates/misc-iso-templates.xml:
* data/templates/zweckform-iso-templates.xml:
Caught up on user submitted templates.
* AUTHORS:
Acknowledgements for above templates.
Jim Evins [Fri, 24 Oct 2008 03:17:46 +0000 (03:17 +0000)]
2008-10-23 Jim Evins <evins@snaught.com>
* src/label-text.c: (set_font_family):
* src/object-editor-text-page.c:
(gl_object_editor_prepare_text_page),
(gl_object_editor_set_font_family):
* src/prefs-dialog.c: (construct_object_page),
(update_object_page_from_prefs):
* src/ui-property-bar.c: (gl_ui_property_bar_construct),
(reset_to_default_properties):
* src/util.c: (gl_util_get_font_family_list):
* src/util.h:
Bug #1902275 and Bug #2186214. Cache font list so that it is not re-created everytime
the list is requested.
* src/object-editor-text-page.c: (gl_object_editor_set_font_family):
Don't change font-family if it hasn't actually changed.