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