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