]> git.sur5r.net Git - glabels/blob - glabels2/ChangeLog
2004-08-07 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / ChangeLog
1 2004-08-07  Jim Evins  <evins@snaught.com>
2
3         * src/recent-files/*:
4                 Re-synced to latest libegg/recent-files.
5         
6 2004-08-07  Jim Evins  <evins@snaught.com>
7
8         * Makefile.am:
9         * configure.in:
10         * help/*
11                 Renamed "./doc" directory to "./help" which contains user documentation,
12                 to be more consistent with other GNOME applications.
13         
14
15 2004-07-26  Jim Evins  <evins@snaught.com>
16
17         * src/merge-properties-dialog.c: (gl_merge_properties_dialog_init):
18                 Corrected button order of merge properties dialog.
19
20 2004-07-18  Jim Evins  <evins@snaught.com>
21
22         * data/glabels-2.0.dtd:
23         * src/bc.c: (gl_barcode_default_digits), (gl_barcode_can_freeform),
24         (gl_barcode_get_prefered_n):
25         * src/bc.h:
26         * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
27         (gl_label_barcode_get_props), (get_size):
28         * src/label-barcode.h:
29         * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page),
30         (style_changed_cb), (gl_object_editor_set_bc_style),
31         (gl_object_editor_get_bc_style):
32         * src/object-editor-data-page.c: (data_radio_toggled_cb),
33         (gl_object_editor_set_data), (gl_object_editor_get_data):
34         * src/object-editor-private.h:
35         * src/object-editor.c: (gl_object_editor_set_key_names):
36         * src/object-editor.glade:
37         * src/object-editor.h:
38         * src/print.c: (draw_barcode_object):
39         * src/view-barcode.c: (update_object_from_editor_cb),
40         (update_editor_from_object_cb),
41         (gl_view_barcode_create_event_handler), (draw_barcode):
42         * src/xml-label-04.c: (xml04_parse_barcode_props):
43         * src/xml-label-191.c: (xml191_parse_barcode_props):
44         * src/xml-label.c: (xml_parse_object_barcode),
45         (xml_create_object_barcode):
46                 Added "format" attribute to barcode objects.  This attribute is used
47                 to properly format freeform barcodes barcodes prior to merge data is
48                 applied, so that barcodes can be accurately layed out.  This addresses
49                 remaining issues of feature request #824787.  Also added an example of
50                 the format in the object editor.
51
52 2004-07-12  Jim Evins  <evins@snaught.com>
53
54         Various code cleanups.
55
56         * src/label-barcode.c:
57                 Removed unneeded include of gnome-glyphlist.h.
58         
59         * src/label-text.c: (get_size):
60                 Fixed memory leak: unref glyphlists when done with them.
61         
62         * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page):
63         * src/object-editor-data-page.c:
64         (gl_object_editor_prepare_data_page):
65         * src/object-editor-image-page.c:
66         (gl_object_editor_prepare_image_page):
67         * src/object-editor-line-page.c:
68         (gl_object_editor_prepare_line_page):
69         * src/object-editor-lsize-page.c:
70         (gl_object_editor_prepare_lsize_page):
71         * src/object-editor-position-page.c:
72         (gl_object_editor_prepare_position_page):
73         * src/object-editor-size-page.c:
74         (gl_object_editor_prepare_size_page):
75         * src/object-editor-text-page.c:
76         (gl_object_editor_prepare_text_page):
77                 Removed unneeded size groups, originally intended to keep widgets aligned.
78                 Now use tables to lay these out in object-editor.glade.
79         
80         * src/print.c: (draw_text_object):
81                 Fixed memory leak: unref glyphlists when done with them.
82
83         * src/view-barcode.c: (draw_barcode):
84                 Fixed memory leak: unref glyphlists when done with them.
85
86         * src/view-text.c: (update_object_from_editor_cb), (draw_hacktext):
87                 - Removed unneeded cast of gl_object_editor_get_text_line_spacing()s
88                   return value.
89                 - Fixed memory leak: unref glyphlists when done with them.
90
91 2004-07-11  Jim Evins  <evins@snaught.com>
92
93         * data/glabels-2.0.dtd:
94         * src/label-text.c: (gl_label_text_instance_init), (copy),
95         (gl_label_text_set_auto_shrink), (gl_label_text_get_auto_shrink):
96         * src/label-text.h:
97         * src/object-editor-private.h:
98         * src/object-editor-text-page.c:
99         (gl_object_editor_prepare_text_page),
100         (gl_object_editor_set_text_auto_shrink),
101         (gl_object_editor_get_text_auto_shrink):
102         * src/object-editor.c: (gl_object_editor_set_key_names):
103         * src/object-editor.glade:
104         * src/object-editor.h:
105         * src/print.c: (draw_text_object):
106         * src/view-text.c: (update_object_from_editor_cb),
107         (update_editor_from_object_cb):
108         * src/xml-label.c: (xml_parse_object_text),
109         (xml_create_object_text):
110                 Added option to allow document merge to auto shrink text size to fit
111                 within the text box.  The code in print.c that actually shrinks the
112                 text is loosely based on a patch submitted by Mark Harrison
113                 <mark.harrison@velocitynet.com.au>.  This addresses feature request
114                 #661421.
115         
116 2004-07-11  Jim Evins  <evins@snaught.com>
117
118         * data/glabels-2.0.dtd:
119         * libglabels/template.c: (gl_template_rect_label_type_new),
120         (gl_template_round_label_type_new),
121         (gl_template_cd_label_type_new), (gl_template_label_type_dup),
122         (template_full_page):
123         * libglabels/template.h:
124         * libglabels/xml-template.c: (xml_parse_label_rectangle_node),
125         (xml_create_label_node):
126         * pixmaps/ex-rect-size.png:
127         * src/print.c: (clip_to_outline), (clip_punchouts):
128         * src/template-designer.c: (construct_rect_size_page),
129         (rect_size_page_prepare_cb), (layout_page_prepare_cb),
130         (build_template):
131         * src/template-designer.glade:
132         * src/xml-label-191.c: (xml191_parse_label):
133                 Modifications to allow separate horizontal (x_waste) and vertical (y_waste)
134                 properties for rectangular labels.  Templates remain backwards compatible,
135                 but this breaks the libglabels API (I don't know of anyone outside of
136                 glabels using libglabels at this time -- what can I say, the program is
137                 is still "unstable").  This addresses the suggestion in Feature Request
138                 #976313.
139
140 2004-07-05  Jim Evins  <evins@snaught.com>
141         * src/print.c: (print_crop_marks), (draw_outline):
142                 Changed crop marks and label outlines to black, instead of 25% gray.
143                 This addresses debian Bug #257460.
144
145 2004-07-05  Jim Evins  <evins@snaught.com>
146
147         * src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
148         * src/object-editor-line-page.c: (gl_object_editor_set_line_color):
149                 Preserve "is_default" of fill and line color_combos when creating from
150                 existing objects.
151
152 2004-07-02  Jim Evins  <evins@snaught.com>
153
154         * data/glabels.1:
155                 Created man page.  Based on page submitted by Matthew J. Lockner, however
156                 it has been severely edited.
157         
158         * data/avery-other-templates.xml
159         * data/misc-other-templates.xml:
160                 Started new files for predefined templates with non-standard sheet sizes.
161                 These have been initially populated with the Avery 06141 and
162                 OfficeMax #86112, both provided by Matthew J. Lockner.
163         
164         * data/Makefile.am:
165                 Install above manpage and template files.
166         
167         * glabels.spec.in:
168                 Make sure we install man pages.
169         
170         * src/glabels-batch.c:
171                 Changed short form of help option to '-?' to be consistent with glabels.
172         
173         * AUTHORS:
174                 Added acknowledgement for above labels.
175
176 2004-07-02  Jim Evins  <evins@snaught.com>
177
178         * src/glabels.c: (main), (save_session_cb):
179                 - Now include libbonoboui.h, recent.h, and file.h to provide missing
180                   prototypes.
181                 - save_session_cb() now returns gboolean.
182                 - Minor formatting changes.
183
184         * src/window.h:
185         * src/window.c:
186                 - Now include file.h to provide missing prototype.
187                 - gl_window_get_type() now returns GType, not guint.  I believe this may
188                   ultimately be cause of the segfault reported in Bug #982287, since
189                   GType is actually a gulong, which may not be compatible on other
190                   architectures (64bit) -- I cannot personally test this at this time.
191                   I was sloppy in several other xxx_get_type() functions which also
192                   returned guint -- see next group of files:
193         
194         * src/window.c: (gl_window_get_type):
195         * src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
196         * src/canvas-hacktext.h:
197         * src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
198         (gl_hig_category_get_type), (gl_hig_vbox_get_type),
199         (gl_hig_hbox_get_type):
200         * src/hig.h:
201         * src/label-barcode.c: (gl_label_barcode_get_type):
202         * src/label-barcode.h:
203         * src/label-box.c: (gl_label_box_get_type):
204         * src/label-box.h:
205         * src/label-ellipse.c: (gl_label_ellipse_get_type):
206         * src/label-ellipse.h:
207         * src/label-image.c: (gl_label_image_get_type):
208         * src/label-image.h:
209         * src/label-line.c: (gl_label_line_get_type):
210         * src/label-line.h:
211         * src/label-object.c: (gl_label_object_get_type):
212         * src/label-object.h:
213         * src/label-text.c: (gl_label_text_get_type):
214         * src/label-text.h:
215         * src/label.c: (gl_label_get_type):
216         * src/label.h:
217         * src/merge-properties-dialog.c:
218         (gl_merge_properties_dialog_get_type):
219         * src/merge-properties-dialog.h:
220         * src/merge-text.c: (gl_merge_text_get_type):
221         * src/merge-text.h:
222         * src/merge.c: (gl_merge_get_type):
223         * src/merge.h:
224         * src/object-editor.c: (gl_object_editor_get_type):
225         * src/prefs-dialog.c: (gl_prefs_dialog_get_type):
226         * src/prefs-dialog.h:
227         * src/prefs-model.c: (gl_prefs_model_get_type):
228         * src/prefs-model.h:
229         * src/print-dialog.c: (gl_print_dialog_get_type):
230         * src/print-dialog.h:
231         * src/template-designer.c: (gl_template_designer_get_type):
232         * src/template-designer.h:
233         * src/ui-property-bar.c: (gl_ui_property_bar_get_type):
234         * src/ui-property-bar.h:
235         * src/ui-sidebar.c: (gl_ui_sidebar_get_type):
236         * src/ui-sidebar.h:
237         * src/view-barcode.c: (gl_view_barcode_get_type):
238         * src/view-barcode.h:
239         * src/view-box.c: (gl_view_box_get_type):
240         * src/view-box.h:
241         * src/view-ellipse.c: (gl_view_ellipse_get_type):
242         * src/view-ellipse.h:
243         * src/view-highlight.c: (gl_view_highlight_get_type):
244         * src/view-highlight.h:
245         * src/view-image.c: (gl_view_image_get_type):
246         * src/view-image.h:
247         * src/view-line.c: (gl_view_line_get_type):
248         * src/view-line.h:
249         * src/view-object.c: (gl_view_object_get_type):
250         * src/view-object.h:
251         * src/view-text.c: (gl_view_text_get_type):
252         * src/view-text.h:
253         * src/view.c: (gl_view_get_type):
254         * src/view.h:
255         * src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
256         * src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
257         * src/wdgt-image-select.h:
258         * src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
259         * src/wdgt-media-select.h:
260         * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
261         * src/wdgt-mini-preview.h:
262         * src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
263         * src/wdgt-print-copies.h:
264         * src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
265         * src/wdgt-print-merge.h:
266         * src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
267         * src/wdgt-rotate-label.h:
268                 - Made sure all xxx_get_type functions returned GType, not guint.  This
269                   was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
270                   ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
271                   wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
272                   wdt-print-merge.[ch], and wdgt-rotate-label.[ch].  See separate
273                   window.[ch] details above for more info.
274                 - Reconciled various coding style differences in all xxx_get_type()
275                   functions:
276                         * All prototypes include G_GNUC_CONST.
277                         * All prototypes specify the return value as GType, not GtkType
278                           or guint.
279                         * Info structures are all declared as "static const."
280                         * Generalized the names of type and info variables.
281                         * Miscelaneous formatting.
282
283 2004-06-08  Jim Evins  <evins@snaught.com>
284
285         * src/label.c:
286         * src/label.h:
287         * src/xml-label.c:
288         * AUTHORS:
289                 Don't touch compression of original file -- still defaults to 9 for
290                 new files.  Original patch provided by Javier Donaire Segarra
291                 (#912252 in patch tracker).
292
293 2004-05-05  Jim Evins  <evins@snaught.com>
294
295         * data/glabels-2.0.dtd:
296                 Broke DTD previously when adding new barcode types that contain a
297                 plus sign (+).  Simply changed the BC_STYLE_TYPE entity to "CDATA"
298                 to avoid the problem.
299         * data/avery-iso-templates.xml:
300         * data/zweckform-iso-templates.xml:
301         * AUTHORS:
302                 Added templates for Avery 7165, Zweckform 3688, 4732, and 6021.  Templates
303                 provided by Frank Altpeter.
304         * libglabels/xml-template.c: (xml_create_label_node):
305                 Reordered markup and layout sub-nodes so that resulting templates will
306                 validate against DTD.
307
308 2004-03-13  Jim Evins  <evins@snaught.com>
309
310         * src/object-editor-size-page.c: (gl_object_editor_prepare_size_page):
311                 Changed spin callback signals from "value-changed" back to "changed."
312                 This was accidentally introduced in a previous revision, and can cause
313                 size changes just by selecting the size tab.
314
315 2004-03-06  Jim Evins  <evins@snaught.com>
316
317         * src/view.c: (draw_grid_layer):
318                 For round labels (round and cd) adjust grid so that it lines up with
319                 center of label.  Also, no longer draw box around label in the grid layer,
320                 it is hidden by he fg layer anyway.  Feature suggested by
321                 nemolivier@free.fr.  Although the grid is aligned with the center of the
322                 label, the coordinate system is still relative to the upper left corner
323                 of the rectangle containing the label.
324
325 2004-02-25  Jim Evins  <evins@snaught.com>
326
327         * configure.in:
328                 Changed version to 2.0pre1cvs
329         
330         * libglabels/xml-template.c: (gl_xml_template_parse_templates_doc):
331                 Removed extra xmlFreeDoc() calls upon error.  Also print the doc->URL
332                 instead of doc->name fields when errors encountered.
333
334 2004-02-21  Jim Evins  <evins@snaught.com>
335
336         * data/avery-iso-templates.xml:
337                 Added aliases for Avery 8651.  Patch provided by Wayne Schuller.
338         
339         * glabels.spec.in:
340                 Added libglabels library and include file to installed files.
341                 
342         * configure.in:
343                 Final prep for 1.93.3.
344
345 2004-02-20  Jim Evins  <evins@snaught.com>
346
347         * src/glabels-batch.c: (main):
348                 Changed key for setting output filename to GNOME_PRINT_KEY_OUTPUT_FILENAME
349                 as suggested by Javier Donaire Segarra.  This addresses bug #901063.
350
351 2004-02-16  Jim Evins  <evins@snaught.com>
352
353         * configure.in:
354                 If gtk+ >= 2.3.2 then define HAVE_FILE_CHOOSER.
355         
356         * src/Makefile.am:
357                 Added HAVE_FILE_CHOOSER to INCLUDES.
358         
359         * src/file.c: (gl_file_open), (open_response), (gl_file_open_real),
360         (gl_file_save_as), (save_as_response):
361                 Ported to use GtkFileChooserDialog if HAVE_FILE_CHOOSER is defined.
362
363 2004-02-16  Jim Evins  <evins@snaught.com>
364
365         * src/xml-label-04.c: (xml04_parse_image_props):
366         * src/xml-label-191.c: (xml191_parse_image_props):
367         * src/xml-label.c: (xml_parse_object_image):
368                 Delay setting image size until after image has been applied to new
369                 object.
370         
371 2004-02-15  Jim Evins  <evins@snaught.com>
372
373         * src/label-barcode.c: (gl_label_barcode_set_data),
374         (gl_label_barcode_set_props):
375                 Don't emit "changed" signal, if no change actually made for these
376                 methods.  Reduces number of unnecessary redraws of barcodes.
377         
378         * src/label-object.h:
379         * src/label-object.c: (gl_label_object_set_position),
380         (gl_label_object_set_position_relative), (set_size),
381         (gl_label_object_set_size),
382         (gl_label_object_set_size_honor_aspect):
383                 Don't emit "changed" signal, if no change actually made for these
384                 methods.
385
386 2004-02-15  Jim Evins  <evins@snaught.com>
387
388         * data/glabels-2.0.dtd:
389                 Added specific subtypes for various barcode types.
390         
391         * src/bc.h:
392         * src/bc.c: (id_to_index), (name_to_index), (gl_barcode_new),
393         (gl_barcode_get_styles_list), (gl_barcode_default_digits),
394         (gl_barcode_can_text), (gl_barcode_text_optional),
395         (gl_barcode_can_csum), (gl_barcode_csum_optional),
396         (gl_barcode_id_to_name), (gl_barcode_name_to_id):
397                 Changed API to use a string id, rather than a fixed enumeration.  Id and
398                 name are separate strings.  Added entries to backend table for specific
399                 subtypes for various barcode types.
400         
401         * src/bc-postnet.h:
402         * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
403         (is_length_valid):
404                 Modified to conform to above API.  Now more stringent with data length
405                 for various subtypes.
406         
407         * src/bc-gnubarcode.h:
408         * src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new),
409         (is_length_valid), (is_length1_valid), (is_length2_valid):
410                 Modified to conform to above API.  Now more stringent with data length
411                 for various subtypes.
412
413         * src/label-barcode.h:
414         * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
415         (gl_label_barcode_get_props), (get_size):
416                 Modified to use above API for storing barcode type.
417         
418         * src/object-editor.h:
419         * src/object-editor-bc-page.c: (style_changed_cb),
420         (gl_object_editor_set_bc_style), (gl_object_editor_get_bc_style):
421                 Modified to use above API for storing barcode type.
422         
423         * src/object-editor-size-page.c:
424         (gl_object_editor_prepare_size_page), (aspect_toggle_cb),
425         (w_spin_cb), (h_spin_cb), (size_reset_cb):
426                 Added debug markers.
427         
428         * src/object-editor.glade:
429                 Made barcode style combo's text entry  non-editable.
430         
431         * src/print.c: (draw_barcode_object):
432                 Modified to use above API for barcode type.
433
434         * src/view-barcode.c: (update_object_from_editor_cb),
435         (update_editor_from_object_cb),
436         (gl_view_barcode_create_event_handler), (draw_barcode):
437                 Modified to use above API for barcode type.
438         
439         * src/xml-label-04.c: (xml04_parse_barcode_props):
440         * src/xml-label-191.c: (xml191_parse_barcode_props):
441         * src/xml-label.c: (xml_parse_object_barcode),
442         (xml_create_object_barcode):
443                 Modified to use above API for barcode type.
444
445 2004-02-07  Jim Evins  <evins@snaught.com>
446
447         * src/stock-pixmaps/Makefile.am:
448         * src/stock-pixmaps/stock_hchain_24.png:
449         * src/stock-pixmaps/stock_hchain_broken_24.png:
450         * src/stock-pixmaps/stock_vchain_24.png:
451         * src/stock-pixmaps/stock_vchain_broken_24.png:
452                 Added chain pixmaps borrowed from the gimp's default theme.
453
454         * src/stock.h:
455         * src/stock.c: (gl_stock_init), (add_button_icon):
456                 Added above pixmaps to stock icon sets.  Created add_button_icon() to
457                 add these pixmaps sized as GTK_ICON_SIZE_BUTTON.
458         
459         * src/wdgt-chain-button.h
460         * src/wdgt-chain-button.c
461         * src/Makefile.am:
462         * po/POTFILES.in:
463                 Added this Modified version of gimpchainbutton widget, borrowed from
464                 the gimp.
465         
466         * AUTHORS:
467                 Added acknowledgements of the above borrowing from the gimp.
468         
469         * src/object-editor-size-page.c: (aspect_toggle_cb), (w_spin_cb),
470         (h_spin_cb):
471         * src/object-editor.c: (gl_object_editor_construct_chain_button):
472         * src/object-editor.glade:
473                 Replaced the keep aspect ratio check box with the above chain-button
474                 widget.
475         
476         * src/text-node.c: (gl_text_node_equal):
477         * src/text-node.h:
478                 Added function gl_text_node_equal() to compare text_nodes.
479         
480         * src/label-image.c: (gl_label_image_set_filename):
481                 Replaced incomplete text_node comparison code with invocation of
482                 gl_text_node_equal.  This fixed the problem of not being able to
483                 resize an image using the object_editor if the aspect ratio is not
484                 locked.
485
486 2004-02-04  Jim Evins  <evins@snaught.com>
487
488         * src/object-editor-image-page.c:
489         (gl_object_editor_prepare_image_page):
490                 Track "changed" signal of pixmap entry's GtkEntry rather than its
491                 "activate" signal -- this catches all changes to the entry rather than
492                 just changes resulting from a browse, so one can easily pull previous
493                 entries from the history. (This change is marked below on 2004-02-03,
494                 but somehow never got checked in.)
495
496         * src/view-highlight.c: (sl_resize_event_handler),
497         (sr_resize_event_handler), (st_resize_event_handler),
498         (sb_resize_event_handler):
499                 Side resize handles will now confirm the actual resize that the object
500                 accepted before adjusting position parameters.  Previously some interesting
501                 things happened when resizing a barcode to its minimum size.
502
503 2004-02-03  Jim Evins  <evins@snaught.com>
504
505         * src/object-editor-image-page.c:
506         (gl_object_editor_prepare_image_page):
507                 Track "changed" signal of pixmap entry's GtkEntry rather than its
508                 "activate" signal -- this catches all changes to the entry rather than
509                 just changes resulting from a browse, so one can easily pull previous
510                 entries from the history.
511         
512         * src/view-highlight.c: (tl_resize_event_handler),
513         (tr_resize_event_handler), (bl_resize_event_handler),
514         (br_resize_event_handler):
515                 Allow control key to be dropped while dragging a corner resize handle
516                 without losing the aspect ratio lock.
517
518 2004-02-02  Jim Evins  <evins@snaught.com>
519
520         * src/label-image.c: (gl_label_image_set_filename):
521                 When setting a new filename adjust size such that the aspect ratio of
522                 the image is preserved using the current size as a bounding box.
523                 
524         * src/view-image.c: (update_object_from_editor_cb):
525                 When updating object from editor, feed back possible size changes to
526                 editor as a result of a possible change in image.
527         
528         * src/object-editor-size-page.c: (size_reset_cb):
529                 Fixed typo when blocking spin handlers.  If the base size is larger than
530                 the max size, treat max size as a bounding box while keeping aspect
531                 ratio.
532                 
533
534 2004-02-02  Jim Evins  <evins@snaught.com>
535
536         * src/label-object.h:
537         * src/label-object.c: (gl_label_object_set_size),
538         (gl_label_object_set_size_honor_aspect):
539                 Added gl_label_object_set_size_honor_aspect() which will maintain the
540                 current aspect ratio by modifying the supplied w or h apropriately.
541         
542         * src/view-highlight.c: (tl_resize_event_handler),
543         (tr_resize_event_handler), (bl_resize_event_handler),
544         (br_resize_event_handler):
545                 Corner handles will now maintain the current aspect ratio if the
546                 control key is pressed while resizing.  This addresses feature
547                 request #816603.
548        
549
550 2004-01-31  Jim Evins  <evins@snaught.com>
551
552         * AUTHORS:
553         * data/avery-us-templates.xml:
554                 Added entries for "LSK-3," "LSK-5," and "LSK-8."  Submitted by JBadger.
555         
556         * libglabels/template.c: (read_template_files_from_dir):
557                 Corrected problem with testing for extensions.
558         
559         * src/object-editor.glade:
560                 Corrected grouping of radio buttons in barcode data page.
561
562         * src/print.c: (draw_barcode_object):
563         * src/view-barcode.c: (draw_barcode):
564                 Corrected problem with calculation of y_offset for locating characters.
565
566 2004-01-24  Jim Evins  <evins@snaught.com>
567
568         * AUTHORS:
569         * data/avery-us-templates.xml:
570                 Added Avery 5824, submitted by Fred Bacon.
571         
572 2004-01-20  Jim Evins  <evins@snaught.com>
573
574         Catching up on a couple of backlogged user template submissions.
575
576         * data/avery-iso-templates.xml:
577                 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
578                 Suggested by Linas Jakucionis.
579         
580         * data/zweckform-iso-templates.xml:
581                 Added Zweckform 4760, submitted by Thomas Vill.
582
583         * AUTHORS:
584                 Updated to reflect above submissions.
585
586 2004-01-06  Jim Evins  <evins@snaught.com>
587
588         Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
589         xml.[ch] into a separate library called libglabels, to facilitate third
590         party use of glabels template files.  This was suggested by Wayne Schuller.
591         Once split-out, some modifications to the structures and functions to
592         make a cleaner more useful API, hopefully.  Rather extensive changes have
593         propogated to other modules.
594
595         * src/paper.h:
596         * src/paper.c:
597         * src/template.h:
598         * src/template.c:
599         * src/xml-paper.h:
600         * src/xml-paper.c:
601         * src/xml-template.h:
602         * src/xml-template.c:
603         * src/xml.h:
604         * src/xml.c:
605                 These files have been moved to libglabels/.  API cleanup performed.
606
607         * libglabels/libglabels.h:
608         * libglabels/libglabels-private.h:
609         * libglabels/Makefile.am:
610                 These files have been added to finish out libglabels.
611         
612         * Makefile.am:
613         * configure.in:
614         * glabels.spec.in:
615         * po/POTFILES.in:
616         * src/Makefile.am:
617                 Modified to reflect new sets of files in src/ and libglabels/.
618
619         * COPYING.LIBGLABELS:
620         * COPYING-DOCS:
621                 Added copy of the LGPL for libglabels, and a copy the GFDL for
622                 documentation.
623         
624         * src/glabels-batch.c:
625         * src/glabels.c:
626         * src/label.c: (gl_label_finalize), (gl_label_set_template),
627         (gl_label_get_size):
628         * src/label.h:
629         * src/prefs-model.c: (gl_prefs_model_load_settings):
630         * src/print-dialog.c:
631         * src/print.c: (gl_print_simple), (gl_print_merge_collated),
632         (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
633         (print_crop_marks), (print_label), (draw_outline),
634         (clip_to_outline), (clip_punchouts):
635         * src/template-designer.c: (construct_pg_size_page),
636         (pg_size_page_changed_cb), (layout_page_changed_cb),
637         (print_test_cb), (build_template):
638         * src/util.c: (gl_util_fraction):
639         * src/util.h:
640         * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
641         (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
642         (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
643         (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
644         (draw_markup_margin_round), (draw_markup_margin_cd),
645         (draw_markup_margin_cd_bc), (draw_markup_line),
646         (draw_markup_circle), (gl_view_copy):
647         * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
648         (page_size_entry_changed_cb), (details_update), (get_layout_desc),
649         (get_label_size_desc):
650         * src/wdgt-mini-preview.c:
651         (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
652         (cdbc_item):
653         * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
654         * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
655         * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
656         (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
657         * src/wdgt-rotate-label.h:
658         * src/xml-label-04.c: (xml04_parse_media_description):
659         * src/xml-label-191.c: (gl_xml_label_191_parse),
660         (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
661         (xml191_parse_markup), (xml191_parse_alias):
662         * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
663         (xml_label_to_doc):
664                 Various changes to accomodate new libglabels API.
665         
666 2004-01-03  Jim Evins  <evins@snaught.com>
667
668         * configure.in:
669                 Release 1.93.2.
670
671 2004-01-03  Jim Evins  <evins@snaught.com>
672
673         * AUTHORS:
674                 Added acknowledgement of contributions by Wayne Schuller.
675         
676         * src/commands.c: (gl_cmd_file_print):
677                 Create extra reference to print dialog, so that it can be properly re-used.
678         
679         * src/mygal/mygal-combo-box.h:
680         * src/mygal/mygal-combo-box.c:
681         (mygal_combo_box_popup_hide_unconditional),
682         (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
683         (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
684         (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
685         (mygal_combo_box_set_tearable):
686                 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
687                 complete the rename of this widget to prevent namespace collisions
688                 with Gtk+-2.3.
689         
690         * src/prefs-dialog.glade:
691                 Fixed alignment of Fill/Color widgets.
692
693 2004-01-03  Jim Evins  <evins@snaught.com>
694
695         * data/avery-iso-templates.xml:
696                 Added user submitted templates.
697                 Avery 8435A & 8435B, submitted by Ludger Solbach.
698
699         * doc/C/glabels.xml:
700                 Added minimal documentation, noting the new template designer.
701
702 2004-01-03  Jim Evins  <evins@snaught.com>
703
704         * pixmaps/ex-rect-size.png:
705         * pixmaps/ex-round-size.png:
706         * pixmaps/ex-cd-size.png:
707         * pixmaps/Makefile.am:
708                 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
709                 files to be used as illustrations/examples in the template-designer.
710
711         * src/template-designer.c: (construct_rect_size_page),
712         (construct_round_size_page), (construct_cd_size_page),
713         (construct_nlayouts_page), (rect_size_page_prepare_cb),
714         (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
715         (layout_page_prepare_cb), (build_template):
716         * src/template-designer.glade:
717                 Added illustrations for rectangle, round, and cd label size pages.
718                 Added margin spinboxes to these pages, and now add a margin markup
719                 to the constructed template.  Added realistic default values for
720                 some of the size spinboxes.  Cleaned up the code for setting spinbox
721                 ranges on the layouts page.
722
723 2004-01-02  Jim Evins  <evins@snaught.com>
724
725         * src/object-editor-size-page.c: (h_spin_cb):
726                 Fixed cut-n-paste error in h_spin_cb that loaded h from
727                 the wrong spinbutton.
728
729         * src/object-editor.h:
730         * src/object-editor.c: (gl_object_editor_class_init),
731         (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
732         * src/object-editor-private.h:
733         * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
734         (size_reset_cb):
735                 Added "size_changed" signal.
736                 
737         * src/view-text.c: (construct_properties_editor),
738         (update_object_from_editor_cb),
739         (update_object_from_editor_size_cb):
740                 Track size changes from object editor separately from other
741                 properties.  This is so the default size (0,0) of a text
742                 object is not modified unintentionally.
743
744 2003-12-30  Wayne Schuller  <k_wayne@linuxpower.org>
745
746         Added feature: line spacing - allows you to comfortably space a text box to
747         fit a label perfectly.
748
749         * data/glabels-2.0.dtd:
750         * src/label-object.c: (gl_label_object_set_text_line_spacing),
751         (gl_label_object_get_text_alignment),
752         (gl_label_object_get_text_line_spacing):
753         * src/label-object.h:
754         * src/label-text.c: (gl_label_text_class_init),
755         (gl_label_text_instance_init), (copy), (get_size),
756         (set_text_line_spacing), (get_text_alignment),
757         (get_text_line_spacing):
758         * src/object-editor-private.h:
759         * src/object-editor-text-page.c:
760         (gl_object_editor_prepare_text_page),
761         (gl_object_editor_set_text_line_spacing),
762         (gl_object_editor_get_text_line_spacing):
763         * src/object-editor.glade:
764         * src/object-editor.h:
765         * src/prefs-dialog.c: (construct_object_page),
766         (update_object_page_from_prefs), (update_prefs_from_object_page):
767         * src/prefs-dialog.glade:
768         * src/prefs-model.c: (gl_prefs_model_save_settings),
769         (gl_prefs_model_load_settings), (get_float):
770         * src/prefs-model.h:
771         * src/print.c: (draw_text_object):
772         * src/ui-sidebar.c:
773         * src/view-text.c: (update_object_from_editor_cb),
774         (update_editor_from_object_cb),
775         (gl_view_text_create_event_handler), (draw_hacktext):
776         * src/view.c: (gl_view_construct),
777         (gl_view_set_selection_text_line_spacing),
778         (gl_view_set_default_text_line_spacing),
779         (gl_view_get_default_text_line_spacing):
780         * src/view.h:
781         * src/xml-label.c: (xml_parse_toplevel_span),
782         (xml_create_toplevel_span):
783
784 2003-12-30  Jim Evins  <evins@snaught.com>
785
786         * src/template-designer.c:
787         * src/template-designer.h:
788         * src/template-designer.glade:
789                 New template designer assistant.
790         
791         * po/POTFILES.in:
792         * src/Makefile.am:
793                 Added entries for src/template-designer.* files.
794         
795         * pixmaps/ex-1layout.png
796         * pixmaps/ex-2layouts.png
797         * pixmaps/Makefile.am:
798                 Added the new image files ex-*.png used as illustrations in the
799                 template designer assistant.
800         
801         * src/print-dialog.h:
802         * src/print-dialog.c: (gl_print_dialog_finalize),
803         (gl_print_dialog_new), (gl_print_dialog_construct),
804         (gl_print_dialog_force_outline_flag):
805                 Changed first argument of gl_print_dialog_new() from glView to glLabel,
806                 to support printing from the template designer assistant which does not
807                 have a full-fledged view.  Nothing else from the view object was being
808                 used by the dialog anyway.
809
810                 Added the gl_print_dialog_force_outline_flag() method, for better
811                 integration with the template designer assistant.
812                 
813
814         * src/commands.h:
815         * src/commands.c: (gl_cmd_file_template_designer),
816         (gl_cmd_file_print):
817                 Modified print command to provide label instead of view to dialog.
818                 Added the gl_cmd_file_template_designer() command to invoke the
819                 template designer assistant.
820         
821         * src/ui.c:
822         * src/glabels-ui.xml:
823                 Added support for template designer assistant.
824         
825         * src/wdgt-mini-preview.h:
826         * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
827         (gl_wdgt_mini_preview_set_bg_color):
828                 Preview is now centered in canvas.  Added
829                 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
830                 assistant to match the background color with its own.
831         
832         * src/print.c: (clip_to_outline):
833                 Fixed really stupid bug when adding waste to clip region of rectangular
834                 labels/cards.  Each side of the clip region needs to be extended by
835                 twice the waste margin, as well as negatively offset by the waste
836                 margin.
837
838 2003-12-28  Jim Evins  <evins@snaught.com>
839
840         * src/prefs-dialog.c: (update_object_page_from_prefs):
841                 Block intermediary function align_toggle_cb() instead of
842                 update_prefs_from_object_page() for the three alignment
843                 widgets.
844
845 2003-12-28  Wayne Schuller  <k_wayne@linuxpower.org>
846
847         * src/file.c: (gl_file_new), (gl_file_properties):
848                 Swap button order and set default for higificatory pleasure.
849
850 2003-12-27  Jim Evins  <evins@snaught.com>
851
852         * barcode-0.98/Makefile.am:
853                 One last time:  removed doc/Makefile and po/Makefile.in.in from
854                 EXTRA_DIST files.
855         
856 2003-12-27  Jim Evins  <evins@snaught.com>
857
858         * barcode-0.98/Makefile.am:
859                 Removed config.stat entry from EXTRA_DIST files.
860         
861         * barcode-0.98/Makefile.in:
862                 Removed.
863
864 2003-12-27  Jim Evins  <evins@snaught.com>
865
866         * configure.in:
867                 Updated to work with latest gnome-common package from CVS.
868                 Removed recursive configuration of barcode-0.98.
869
870         * acconfig.h:
871         * macros/*:
872                 Removed.
873         
874         * Makefile.am:
875                 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
876         
877         * barcode-0.98/Makefile.in:
878         * barcode-0.98/configure.in:
879         * barcode-0.98/Makefile.am:
880         * barcode-0.98/README.glabels:
881                 Modified to ignore the barcode package's build system, and build
882                 as a part of glabels.
883                 Renamed Makefile.in to Makefile.in.dist.
884                 Renamed configure.in to configure.in.dist.
885                 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
886         
887         * src/Makefile.am:
888         * src/mygal/Makefile.am:
889         * src/recent-files/Makefile.am:
890                 In order to build against the GNOME 2.5 platform, 
891                 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
892         
893         * src/mygal/Makefile.am:
894         * src/mygal/mygal-combo-box.c:
895         * src/mygal/mygal-combo-box.h:
896         * src/mygal/widget-color-combo.c:
897         * src/mygal/widget-color-combo.h:
898         * po/POTFILES.in:
899                 In order to build against the GNOME 2.5 platform, 
900                 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
901                 collisions with the real gtk_combo_box widget, now a part of gtk.
902         
903 2003-12-26  Jim Evins  <evins@snaught.com>
904
905         * src/paper.c:
906         * src/template.c:
907         * src/util.c:
908         * src/util.h:
909                 Moved local versions of get_home_data_dir() in paper.c and
910                 template.c to util package.  Cleaned up formatting in
911                 util.[ch].
912
913         * src/template.c:
914                 In gl_template_register() save a copy of the template in
915                 ~/.glabels if the template is not known.  Still need to
916                 handle duplicate filename case and duplicate name but
917                 different template case.
918         
919         * src/xml-label.c:
920         * src/xml.h:
921                 Moved local definition of NAME_SPACE macro from xml-label.c
922                 to xml.h.
923         
924         * src/xml-template.c:
925         * src/xml-template.h:
926                 Added function gl_xml_template_write_template_to_file(), used
927                 in gl_template_register().
928
929