1 2004-08-14 Jim Evins <evins@snaught.com>
4 Updated 2.0.x translation by Takeshi AIHANA <aihana@gnome.gr.jp>.
6 2004-08-14 Jim Evins <evins@snaught.com>
8 Fixes for Bug #1008181.
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.
16 2004-08-09 Jim Evins <evins@snaught.com>
20 * help/C/glabels-C.omf:
22 Brought documentation up-to-date for 2.0.0 release.
24 2004-08-09 Jim Evins <evins@snaught.com>
26 These are hopefully the final preparations for 2.0.0.
28 * data/mime/Makefile.am:
29 Include glabels.xml in EXTRA_DIST.
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.
38 2004-08-09 Jim Evins <evins@snaught.com>
42 Cleanup of required library macros.
44 2004-08-08 Jim Evins <evins@snaught.com>
48 - More specific of what to install in /usr/bin and /usr/lib
49 - Remove built mime registration files from staging directory
51 2004-08-08 Jim Evins <evins@snaught.com>
53 * data/mime/Makefile.am:
54 Fixed typo: key_files should have been keys_files.
56 2004-08-08 Jim Evins <evins@snaught.com>
58 Reorganization of runtime data files. Also added registration of mimetype with
59 new freedesktop.org mime database if available.
62 Moved files to appropriate subdirectories, creating local Makefile.am
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.
71 Moved "./pixmaps" to "./data/pixmaps"
73 Moved src/glabels-ui.xml to data/ui directory. Created Makefile.am.
75 Moved libglade files from src to data/glade. Created Makefile.am.
77 Removed pixmaps from SUBDIRS.
79 - Removed pixmaps from makefiles.
80 - Added makefiles for new subdirs of data.
81 - Added tests for freedesktop.org mime database.
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.
90 - Accounted for movement of ui and libglade files.
91 - Added missing .in files.
92 - Reorganized by directory.
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.
98 2004-08-07 Jim Evins <evins@snaught.com>
100 * src/recent-files/*:
101 Re-synced to latest libegg/recent-files.
103 2004-08-07 Jim Evins <evins@snaught.com>
108 Renamed "./doc" directory to "./help" which contains user documentation,
109 to be more consistent with other GNOME applications.
112 2004-07-26 Jim Evins <evins@snaught.com>
114 * src/merge-properties-dialog.c: (gl_merge_properties_dialog_init):
115 Corrected button order of merge properties dialog.
117 2004-07-18 Jim Evins <evins@snaught.com>
119 * data/glabels-2.0.dtd:
120 * src/bc.c: (gl_barcode_default_digits), (gl_barcode_can_freeform),
121 (gl_barcode_get_prefered_n):
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.
149 2004-07-12 Jim Evins <evins@snaught.com>
151 Various code cleanups.
153 * src/label-barcode.c:
154 Removed unneeded include of gnome-glyphlist.h.
156 * src/label-text.c: (get_size):
157 Fixed memory leak: unref glyphlists when done with them.
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.
177 * src/print.c: (draw_text_object):
178 Fixed memory leak: unref glyphlists when done with them.
180 * src/view-barcode.c: (draw_barcode):
181 Fixed memory leak: unref glyphlists when done with them.
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
186 - Fixed memory leak: unref glyphlists when done with them.
188 2004-07-11 Jim Evins <evins@snaught.com>
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):
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
213 2004-07-11 Jim Evins <evins@snaught.com>
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),
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
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.
242 2004-07-05 Jim Evins <evins@snaught.com>
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
249 2004-07-02 Jim Evins <evins@snaught.com>
252 Created man page. Based on page submitted by Matthew J. Lockner, however
253 it has been severely edited.
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.
262 Install above manpage and template files.
265 Make sure we install man pages.
267 * src/glabels-batch.c:
268 Changed short form of help option to '-?' to be consistent with glabels.
271 Added acknowledgement for above labels.
273 2004-07-02 Jim Evins <evins@snaught.com>
275 * src/glabels.c: (main), (save_session_cb):
276 - Now include libbonoboui.h, recent.h, and file.h to provide missing
278 - save_session_cb() now returns gboolean.
279 - Minor formatting changes.
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:
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):
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):
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):
306 * src/label-line.c: (gl_label_line_get_type):
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):
312 * src/label.c: (gl_label_get_type):
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):
319 * src/merge.c: (gl_merge_get_type):
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):
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):
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):
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):
344 * src/view-line.c: (gl_view_line_get_type):
346 * src/view-object.c: (gl_view_object_get_type):
348 * src/view-text.c: (gl_view_text_get_type):
350 * src/view.c: (gl_view_get_type):
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()
373 * All prototypes include G_GNUC_CONST.
374 * All prototypes specify the return value as GType, not GtkType
376 * Info structures are all declared as "static const."
377 * Generalized the names of type and info variables.
378 * Miscelaneous formatting.
380 2004-06-08 Jim Evins <evins@snaught.com>
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).
390 2004-05-05 Jim Evins <evins@snaught.com>
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:
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.
405 2004-03-13 Jim Evins <evins@snaught.com>
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.
412 2004-03-06 Jim Evins <evins@snaught.com>
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.
422 2004-02-25 Jim Evins <evins@snaught.com>
425 Changed version to 2.0pre1cvs
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.
431 2004-02-21 Jim Evins <evins@snaught.com>
433 * data/avery-iso-templates.xml:
434 Added aliases for Avery 8651. Patch provided by Wayne Schuller.
437 Added libglabels library and include file to installed files.
440 Final prep for 1.93.3.
442 2004-02-20 Jim Evins <evins@snaught.com>
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.
448 2004-02-16 Jim Evins <evins@snaught.com>
451 If gtk+ >= 2.3.2 then define HAVE_FILE_CHOOSER.
454 Added HAVE_FILE_CHOOSER to INCLUDES.
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.
460 2004-02-16 Jim Evins <evins@snaught.com>
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
468 2004-02-15 Jim Evins <evins@snaught.com>
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.
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
483 2004-02-15 Jim Evins <evins@snaught.com>
485 * data/glabels-2.0.dtd:
486 Added specific subtypes for various barcode types.
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.
499 * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
501 Modified to conform to above API. Now more stringent with data length
502 for various subtypes.
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.
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.
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.
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):
525 * src/object-editor.glade:
526 Made barcode style combo's text entry non-editable.
528 * src/print.c: (draw_barcode_object):
529 Modified to use above API for barcode type.
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.
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.
542 2004-02-07 Jim Evins <evins@snaught.com>
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.
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.
556 * src/wdgt-chain-button.h
557 * src/wdgt-chain-button.c
560 Added this Modified version of gimpchainbutton widget, borrowed from
564 Added acknowledgements of the above borrowing from the gimp.
566 * src/object-editor-size-page.c: (aspect_toggle_cb), (w_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
573 * src/text-node.c: (gl_text_node_equal):
575 Added function gl_text_node_equal() to compare text_nodes.
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
583 2004-02-04 Jim Evins <evins@snaught.com>
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.)
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.
600 2004-02-03 Jim Evins <evins@snaught.com>
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.
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.
615 2004-02-02 Jim Evins <evins@snaught.com>
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.
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.
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
631 2004-02-02 Jim Evins <evins@snaught.com>
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.
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
647 2004-01-31 Jim Evins <evins@snaught.com>
650 * data/avery-us-templates.xml:
651 Added entries for "LSK-3," "LSK-5," and "LSK-8." Submitted by JBadger.
653 * libglabels/template.c: (read_template_files_from_dir):
654 Corrected problem with testing for extensions.
656 * src/object-editor.glade:
657 Corrected grouping of radio buttons in barcode data page.
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.
663 2004-01-24 Jim Evins <evins@snaught.com>
666 * data/avery-us-templates.xml:
667 Added Avery 5824, submitted by Fred Bacon.
669 2004-01-20 Jim Evins <evins@snaught.com>
671 Catching up on a couple of backlogged user template submissions.
673 * data/avery-iso-templates.xml:
674 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
675 Suggested by Linas Jakucionis.
677 * data/zweckform-iso-templates.xml:
678 Added Zweckform 4760, submitted by Thomas Vill.
681 Updated to reflect above submissions.
683 2004-01-06 Jim Evins <evins@snaught.com>
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.
698 * src/xml-template.h:
699 * src/xml-template.c:
702 These files have been moved to libglabels/. API cleanup performed.
704 * libglabels/libglabels.h:
705 * libglabels/libglabels-private.h:
706 * libglabels/Makefile.am:
707 These files have been added to finish out libglabels.
714 Modified to reflect new sets of files in src/ and libglabels/.
716 * COPYING.LIBGLABELS:
718 Added copy of the LGPL for libglabels, and a copy the GFDL for
721 * src/glabels-batch.c:
723 * src/label.c: (gl_label_finalize), (gl_label_set_template),
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):
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),
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),
761 Various changes to accomodate new libglabels API.
763 2004-01-03 Jim Evins <evins@snaught.com>
768 2004-01-03 Jim Evins <evins@snaught.com>
771 Added acknowledgement of contributions by Wayne Schuller.
773 * src/commands.c: (gl_cmd_file_print):
774 Create extra reference to print dialog, so that it can be properly re-used.
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
787 * src/prefs-dialog.glade:
788 Fixed alignment of Fill/Color widgets.
790 2004-01-03 Jim Evins <evins@snaught.com>
792 * data/avery-iso-templates.xml:
793 Added user submitted templates.
794 Avery 8435A & 8435B, submitted by Ludger Solbach.
797 Added minimal documentation, noting the new template designer.
799 2004-01-03 Jim Evins <evins@snaught.com>
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.
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.
820 2004-01-02 Jim Evins <evins@snaught.com>
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.
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),
832 Added "size_changed" signal.
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.
841 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
843 Added feature: line spacing - allows you to comfortably space a text box to
844 fit a label perfectly.
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):
868 * src/print.c: (draw_text_object):
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):
878 * src/xml-label.c: (xml_parse_toplevel_span),
879 (xml_create_toplevel_span):
881 2003-12-30 Jim Evins <evins@snaught.com>
883 * src/template-designer.c:
884 * src/template-designer.h:
885 * src/template-designer.glade:
886 New template designer assistant.
890 Added entries for src/template-designer.* files.
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.
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.
907 Added the gl_print_dialog_force_outline_flag() method, for better
908 integration with the template designer assistant.
912 * src/commands.c: (gl_cmd_file_template_designer),
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.
919 * src/glabels-ui.xml:
920 Added support for template designer assistant.
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.
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
935 2003-12-28 Jim Evins <evins@snaught.com>
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
942 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
944 * src/file.c: (gl_file_new), (gl_file_properties):
945 Swap button order and set default for higificatory pleasure.
947 2003-12-27 Jim Evins <evins@snaught.com>
949 * barcode-0.98/Makefile.am:
950 One last time: removed doc/Makefile and po/Makefile.in.in from
953 2003-12-27 Jim Evins <evins@snaught.com>
955 * barcode-0.98/Makefile.am:
956 Removed config.stat entry from EXTRA_DIST files.
958 * barcode-0.98/Makefile.in:
961 2003-12-27 Jim Evins <evins@snaught.com>
964 Updated to work with latest gnome-common package from CVS.
965 Removed recursive configuration of barcode-0.98.
972 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
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.
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.
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:
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.
1000 2003-12-26 Jim Evins <evins@snaught.com>
1006 Moved local versions of get_home_data_dir() in paper.c and
1007 template.c to util package. Cleaned up formatting in
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.
1018 Moved local definition of NAME_SPACE macro from xml-label.c
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().