1 2004-07-11 Jim Evins <evins@snaught.com>
3 * data/glabels-2.0.dtd:
4 * src/label-text.c: (gl_label_text_instance_init), (copy),
5 (gl_label_text_set_auto_shrink), (gl_label_text_get_auto_shrink):
7 * src/object-editor-private.h:
8 * src/object-editor-text-page.c:
9 (gl_object_editor_prepare_text_page),
10 (gl_object_editor_set_text_auto_shrink),
11 (gl_object_editor_get_text_auto_shrink):
12 * src/object-editor.c: (gl_object_editor_set_key_names):
13 * src/object-editor.glade:
14 * src/object-editor.h:
15 * src/print.c: (draw_text_object):
16 * src/view-text.c: (update_object_from_editor_cb),
17 (update_editor_from_object_cb):
18 * src/xml-label.c: (xml_parse_object_text),
19 (xml_create_object_text):
20 Added option to allow document merge to auto shrink text size to fit
21 within the text box. The code in print.c that actually shrinks the
22 text is loosely based on a patch submitted by Mark Harrison
23 <mark.harrison@velocitynet.com.au>. This addresses feature request
26 2004-07-11 Jim Evins <evins@snaught.com>
28 * data/glabels-2.0.dtd:
29 * libglabels/template.c: (gl_template_rect_label_type_new),
30 (gl_template_round_label_type_new),
31 (gl_template_cd_label_type_new), (gl_template_label_type_dup),
33 * libglabels/template.h:
34 * libglabels/xml-template.c: (xml_parse_label_rectangle_node),
35 (xml_create_label_node):
36 * pixmaps/ex-rect-size.png:
37 * src/print.c: (clip_to_outline), (clip_punchouts):
38 * src/template-designer.c: (construct_rect_size_page),
39 (rect_size_page_prepare_cb), (layout_page_prepare_cb),
41 * src/template-designer.glade:
42 * src/xml-label-191.c: (xml191_parse_label):
43 Modifications to allow separate horizontal (x_waste) and vertical (y_waste)
44 properties for rectangular labels. Templates remain backwards compatible,
45 but this breaks the libglabels API (I don't know of anyone outside of
46 glabels using libglabels at this time -- what can I say, the program is
47 is still "unstable"). This addresses the suggestion in Feature Request
50 2004-07-05 Jim Evins <evins@snaught.com>
51 * src/print.c: (print_crop_marks), (draw_outline):
52 Changed crop marks and label outlines to black, instead of 25% gray.
53 This addresses debian Bug #257460.
55 2004-07-05 Jim Evins <evins@snaught.com>
57 * src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
58 * src/object-editor-line-page.c: (gl_object_editor_set_line_color):
59 Preserve "is_default" of fill and line color_combos when creating from
62 2004-07-02 Jim Evins <evins@snaught.com>
65 Created man page. Based on page submitted by Matthew J. Lockner, however
66 it has been severely edited.
68 * data/avery-other-templates.xml
69 * data/misc-other-templates.xml:
70 Started new files for predefined templates with non-standard sheet sizes.
71 These have been initially populated with the Avery 06141 and
72 OfficeMax #86112, both provided by Matthew J. Lockner.
75 Install above manpage and template files.
78 Make sure we install man pages.
80 * src/glabels-batch.c:
81 Changed short form of help option to '-?' to be consistent with glabels.
84 Added acknowledgement for above labels.
86 2004-07-02 Jim Evins <evins@snaught.com>
88 * src/glabels.c: (main), (save_session_cb):
89 - Now include libbonoboui.h, recent.h, and file.h to provide missing
91 - save_session_cb() now returns gboolean.
92 - Minor formatting changes.
96 - Now include file.h to provide missing prototype.
97 - gl_window_get_type() now returns GType, not guint. I believe this may
98 ultimately be cause of the segfault reported in Bug #982287, since
99 GType is actually a gulong, which may not be compatible on other
100 architectures (64bit) -- I cannot personally test this at this time.
101 I was sloppy in several other xxx_get_type() functions which also
102 returned guint -- see next group of files:
104 * src/window.c: (gl_window_get_type):
105 * src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
106 * src/canvas-hacktext.h:
107 * src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
108 (gl_hig_category_get_type), (gl_hig_vbox_get_type),
109 (gl_hig_hbox_get_type):
111 * src/label-barcode.c: (gl_label_barcode_get_type):
112 * src/label-barcode.h:
113 * src/label-box.c: (gl_label_box_get_type):
115 * src/label-ellipse.c: (gl_label_ellipse_get_type):
116 * src/label-ellipse.h:
117 * src/label-image.c: (gl_label_image_get_type):
119 * src/label-line.c: (gl_label_line_get_type):
121 * src/label-object.c: (gl_label_object_get_type):
122 * src/label-object.h:
123 * src/label-text.c: (gl_label_text_get_type):
125 * src/label.c: (gl_label_get_type):
127 * src/merge-properties-dialog.c:
128 (gl_merge_properties_dialog_get_type):
129 * src/merge-properties-dialog.h:
130 * src/merge-text.c: (gl_merge_text_get_type):
132 * src/merge.c: (gl_merge_get_type):
134 * src/object-editor.c: (gl_object_editor_get_type):
135 * src/prefs-dialog.c: (gl_prefs_dialog_get_type):
136 * src/prefs-dialog.h:
137 * src/prefs-model.c: (gl_prefs_model_get_type):
139 * src/print-dialog.c: (gl_print_dialog_get_type):
140 * src/print-dialog.h:
141 * src/template-designer.c: (gl_template_designer_get_type):
142 * src/template-designer.h:
143 * src/ui-property-bar.c: (gl_ui_property_bar_get_type):
144 * src/ui-property-bar.h:
145 * src/ui-sidebar.c: (gl_ui_sidebar_get_type):
147 * src/view-barcode.c: (gl_view_barcode_get_type):
148 * src/view-barcode.h:
149 * src/view-box.c: (gl_view_box_get_type):
151 * src/view-ellipse.c: (gl_view_ellipse_get_type):
152 * src/view-ellipse.h:
153 * src/view-highlight.c: (gl_view_highlight_get_type):
154 * src/view-highlight.h:
155 * src/view-image.c: (gl_view_image_get_type):
157 * src/view-line.c: (gl_view_line_get_type):
159 * src/view-object.c: (gl_view_object_get_type):
161 * src/view-text.c: (gl_view_text_get_type):
163 * src/view.c: (gl_view_get_type):
165 * src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
166 * src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
167 * src/wdgt-image-select.h:
168 * src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
169 * src/wdgt-media-select.h:
170 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
171 * src/wdgt-mini-preview.h:
172 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
173 * src/wdgt-print-copies.h:
174 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
175 * src/wdgt-print-merge.h:
176 * src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
177 * src/wdgt-rotate-label.h:
178 - Made sure all xxx_get_type functions returned GType, not guint. This
179 was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
180 ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
181 wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
182 wdt-print-merge.[ch], and wdgt-rotate-label.[ch]. See separate
183 window.[ch] details above for more info.
184 - Reconciled various coding style differences in all xxx_get_type()
186 * All prototypes include G_GNUC_CONST.
187 * All prototypes specify the return value as GType, not GtkType
189 * Info structures are all declared as "static const."
190 * Generalized the names of type and info variables.
191 * Miscelaneous formatting.
193 2004-06-08 Jim Evins <evins@snaught.com>
199 Don't touch compression of original file -- still defaults to 9 for
200 new files. Original patch provided by Javier Donaire Segarra
201 (#912252 in patch tracker).
203 2004-05-05 Jim Evins <evins@snaught.com>
205 * data/glabels-2.0.dtd:
206 Broke DTD previously when adding new barcode types that contain a
207 plus sign (+). Simply changed the BC_STYLE_TYPE entity to "CDATA"
208 to avoid the problem.
209 * data/avery-iso-templates.xml:
210 * data/zweckform-iso-templates.xml:
212 Added templates for Avery 7165, Zweckform 3688, 4732, and 6021. Templates
213 provided by Frank Altpeter.
214 * libglabels/xml-template.c: (xml_create_label_node):
215 Reordered markup and layout sub-nodes so that resulting templates will
216 validate against DTD.
218 2004-03-13 Jim Evins <evins@snaught.com>
220 * src/object-editor-size-page.c: (gl_object_editor_prepare_size_page):
221 Changed spin callback signals from "value-changed" back to "changed."
222 This was accidentally introduced in a previous revision, and can cause
223 size changes just by selecting the size tab.
225 2004-03-06 Jim Evins <evins@snaught.com>
227 * src/view.c: (draw_grid_layer):
228 For round labels (round and cd) adjust grid so that it lines up with
229 center of label. Also, no longer draw box around label in the grid layer,
230 it is hidden by he fg layer anyway. Feature suggested by
231 nemolivier@free.fr. Although the grid is aligned with the center of the
232 label, the coordinate system is still relative to the upper left corner
233 of the rectangle containing the label.
235 2004-02-25 Jim Evins <evins@snaught.com>
238 Changed version to 2.0pre1cvs
240 * libglabels/xml-template.c: (gl_xml_template_parse_templates_doc):
241 Removed extra xmlFreeDoc() calls upon error. Also print the doc->URL
242 instead of doc->name fields when errors encountered.
244 2004-02-21 Jim Evins <evins@snaught.com>
246 * data/avery-iso-templates.xml:
247 Added aliases for Avery 8651. Patch provided by Wayne Schuller.
250 Added libglabels library and include file to installed files.
253 Final prep for 1.93.3.
255 2004-02-20 Jim Evins <evins@snaught.com>
257 * src/glabels-batch.c: (main):
258 Changed key for setting output filename to GNOME_PRINT_KEY_OUTPUT_FILENAME
259 as suggested by Javier Donaire Segarra. This addresses bug #901063.
261 2004-02-16 Jim Evins <evins@snaught.com>
264 If gtk+ >= 2.3.2 then define HAVE_FILE_CHOOSER.
267 Added HAVE_FILE_CHOOSER to INCLUDES.
269 * src/file.c: (gl_file_open), (open_response), (gl_file_open_real),
270 (gl_file_save_as), (save_as_response):
271 Ported to use GtkFileChooserDialog if HAVE_FILE_CHOOSER is defined.
273 2004-02-16 Jim Evins <evins@snaught.com>
275 * src/xml-label-04.c: (xml04_parse_image_props):
276 * src/xml-label-191.c: (xml191_parse_image_props):
277 * src/xml-label.c: (xml_parse_object_image):
278 Delay setting image size until after image has been applied to new
281 2004-02-15 Jim Evins <evins@snaught.com>
283 * src/label-barcode.c: (gl_label_barcode_set_data),
284 (gl_label_barcode_set_props):
285 Don't emit "changed" signal, if no change actually made for these
286 methods. Reduces number of unnecessary redraws of barcodes.
288 * src/label-object.h:
289 * src/label-object.c: (gl_label_object_set_position),
290 (gl_label_object_set_position_relative), (set_size),
291 (gl_label_object_set_size),
292 (gl_label_object_set_size_honor_aspect):
293 Don't emit "changed" signal, if no change actually made for these
296 2004-02-15 Jim Evins <evins@snaught.com>
298 * data/glabels-2.0.dtd:
299 Added specific subtypes for various barcode types.
302 * src/bc.c: (id_to_index), (name_to_index), (gl_barcode_new),
303 (gl_barcode_get_styles_list), (gl_barcode_default_digits),
304 (gl_barcode_can_text), (gl_barcode_text_optional),
305 (gl_barcode_can_csum), (gl_barcode_csum_optional),
306 (gl_barcode_id_to_name), (gl_barcode_name_to_id):
307 Changed API to use a string id, rather than a fixed enumeration. Id and
308 name are separate strings. Added entries to backend table for specific
309 subtypes for various barcode types.
312 * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
314 Modified to conform to above API. Now more stringent with data length
315 for various subtypes.
317 * src/bc-gnubarcode.h:
318 * src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new),
319 (is_length_valid), (is_length1_valid), (is_length2_valid):
320 Modified to conform to above API. Now more stringent with data length
321 for various subtypes.
323 * src/label-barcode.h:
324 * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
325 (gl_label_barcode_get_props), (get_size):
326 Modified to use above API for storing barcode type.
328 * src/object-editor.h:
329 * src/object-editor-bc-page.c: (style_changed_cb),
330 (gl_object_editor_set_bc_style), (gl_object_editor_get_bc_style):
331 Modified to use above API for storing barcode type.
333 * src/object-editor-size-page.c:
334 (gl_object_editor_prepare_size_page), (aspect_toggle_cb),
335 (w_spin_cb), (h_spin_cb), (size_reset_cb):
338 * src/object-editor.glade:
339 Made barcode style combo's text entry non-editable.
341 * src/print.c: (draw_barcode_object):
342 Modified to use above API for barcode type.
344 * src/view-barcode.c: (update_object_from_editor_cb),
345 (update_editor_from_object_cb),
346 (gl_view_barcode_create_event_handler), (draw_barcode):
347 Modified to use above API for barcode type.
349 * src/xml-label-04.c: (xml04_parse_barcode_props):
350 * src/xml-label-191.c: (xml191_parse_barcode_props):
351 * src/xml-label.c: (xml_parse_object_barcode),
352 (xml_create_object_barcode):
353 Modified to use above API for barcode type.
355 2004-02-07 Jim Evins <evins@snaught.com>
357 * src/stock-pixmaps/Makefile.am:
358 * src/stock-pixmaps/stock_hchain_24.png:
359 * src/stock-pixmaps/stock_hchain_broken_24.png:
360 * src/stock-pixmaps/stock_vchain_24.png:
361 * src/stock-pixmaps/stock_vchain_broken_24.png:
362 Added chain pixmaps borrowed from the gimp's default theme.
365 * src/stock.c: (gl_stock_init), (add_button_icon):
366 Added above pixmaps to stock icon sets. Created add_button_icon() to
367 add these pixmaps sized as GTK_ICON_SIZE_BUTTON.
369 * src/wdgt-chain-button.h
370 * src/wdgt-chain-button.c
373 Added this Modified version of gimpchainbutton widget, borrowed from
377 Added acknowledgements of the above borrowing from the gimp.
379 * src/object-editor-size-page.c: (aspect_toggle_cb), (w_spin_cb),
381 * src/object-editor.c: (gl_object_editor_construct_chain_button):
382 * src/object-editor.glade:
383 Replaced the keep aspect ratio check box with the above chain-button
386 * src/text-node.c: (gl_text_node_equal):
388 Added function gl_text_node_equal() to compare text_nodes.
390 * src/label-image.c: (gl_label_image_set_filename):
391 Replaced incomplete text_node comparison code with invocation of
392 gl_text_node_equal. This fixed the problem of not being able to
393 resize an image using the object_editor if the aspect ratio is not
396 2004-02-04 Jim Evins <evins@snaught.com>
398 * src/object-editor-image-page.c:
399 (gl_object_editor_prepare_image_page):
400 Track "changed" signal of pixmap entry's GtkEntry rather than its
401 "activate" signal -- this catches all changes to the entry rather than
402 just changes resulting from a browse, so one can easily pull previous
403 entries from the history. (This change is marked below on 2004-02-03,
404 but somehow never got checked in.)
406 * src/view-highlight.c: (sl_resize_event_handler),
407 (sr_resize_event_handler), (st_resize_event_handler),
408 (sb_resize_event_handler):
409 Side resize handles will now confirm the actual resize that the object
410 accepted before adjusting position parameters. Previously some interesting
411 things happened when resizing a barcode to its minimum size.
413 2004-02-03 Jim Evins <evins@snaught.com>
415 * src/object-editor-image-page.c:
416 (gl_object_editor_prepare_image_page):
417 Track "changed" signal of pixmap entry's GtkEntry rather than its
418 "activate" signal -- this catches all changes to the entry rather than
419 just changes resulting from a browse, so one can easily pull previous
420 entries from the history.
422 * src/view-highlight.c: (tl_resize_event_handler),
423 (tr_resize_event_handler), (bl_resize_event_handler),
424 (br_resize_event_handler):
425 Allow control key to be dropped while dragging a corner resize handle
426 without losing the aspect ratio lock.
428 2004-02-02 Jim Evins <evins@snaught.com>
430 * src/label-image.c: (gl_label_image_set_filename):
431 When setting a new filename adjust size such that the aspect ratio of
432 the image is preserved using the current size as a bounding box.
434 * src/view-image.c: (update_object_from_editor_cb):
435 When updating object from editor, feed back possible size changes to
436 editor as a result of a possible change in image.
438 * src/object-editor-size-page.c: (size_reset_cb):
439 Fixed typo when blocking spin handlers. If the base size is larger than
440 the max size, treat max size as a bounding box while keeping aspect
444 2004-02-02 Jim Evins <evins@snaught.com>
446 * src/label-object.h:
447 * src/label-object.c: (gl_label_object_set_size),
448 (gl_label_object_set_size_honor_aspect):
449 Added gl_label_object_set_size_honor_aspect() which will maintain the
450 current aspect ratio by modifying the supplied w or h apropriately.
452 * src/view-highlight.c: (tl_resize_event_handler),
453 (tr_resize_event_handler), (bl_resize_event_handler),
454 (br_resize_event_handler):
455 Corner handles will now maintain the current aspect ratio if the
456 control key is pressed while resizing. This addresses feature
460 2004-01-31 Jim Evins <evins@snaught.com>
463 * data/avery-us-templates.xml:
464 Added entries for "LSK-3," "LSK-5," and "LSK-8." Submitted by JBadger.
466 * libglabels/template.c: (read_template_files_from_dir):
467 Corrected problem with testing for extensions.
469 * src/object-editor.glade:
470 Corrected grouping of radio buttons in barcode data page.
472 * src/print.c: (draw_barcode_object):
473 * src/view-barcode.c: (draw_barcode):
474 Corrected problem with calculation of y_offset for locating characters.
476 2004-01-24 Jim Evins <evins@snaught.com>
479 * data/avery-us-templates.xml:
480 Added Avery 5824, submitted by Fred Bacon.
482 2004-01-20 Jim Evins <evins@snaught.com>
484 Catching up on a couple of backlogged user template submissions.
486 * data/avery-iso-templates.xml:
487 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
488 Suggested by Linas Jakucionis.
490 * data/zweckform-iso-templates.xml:
491 Added Zweckform 4760, submitted by Thomas Vill.
494 Updated to reflect above submissions.
496 2004-01-06 Jim Evins <evins@snaught.com>
498 Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
499 xml.[ch] into a separate library called libglabels, to facilitate third
500 party use of glabels template files. This was suggested by Wayne Schuller.
501 Once split-out, some modifications to the structures and functions to
502 make a cleaner more useful API, hopefully. Rather extensive changes have
503 propogated to other modules.
511 * src/xml-template.h:
512 * src/xml-template.c:
515 These files have been moved to libglabels/. API cleanup performed.
517 * libglabels/libglabels.h:
518 * libglabels/libglabels-private.h:
519 * libglabels/Makefile.am:
520 These files have been added to finish out libglabels.
527 Modified to reflect new sets of files in src/ and libglabels/.
529 * COPYING.LIBGLABELS:
531 Added copy of the LGPL for libglabels, and a copy the GFDL for
534 * src/glabels-batch.c:
536 * src/label.c: (gl_label_finalize), (gl_label_set_template),
539 * src/prefs-model.c: (gl_prefs_model_load_settings):
540 * src/print-dialog.c:
541 * src/print.c: (gl_print_simple), (gl_print_merge_collated),
542 (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
543 (print_crop_marks), (print_label), (draw_outline),
544 (clip_to_outline), (clip_punchouts):
545 * src/template-designer.c: (construct_pg_size_page),
546 (pg_size_page_changed_cb), (layout_page_changed_cb),
547 (print_test_cb), (build_template):
548 * src/util.c: (gl_util_fraction):
550 * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
551 (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
552 (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
553 (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
554 (draw_markup_margin_round), (draw_markup_margin_cd),
555 (draw_markup_margin_cd_bc), (draw_markup_line),
556 (draw_markup_circle), (gl_view_copy):
557 * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
558 (page_size_entry_changed_cb), (details_update), (get_layout_desc),
559 (get_label_size_desc):
560 * src/wdgt-mini-preview.c:
561 (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
563 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
564 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
565 * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
566 (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
567 * src/wdgt-rotate-label.h:
568 * src/xml-label-04.c: (xml04_parse_media_description):
569 * src/xml-label-191.c: (gl_xml_label_191_parse),
570 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
571 (xml191_parse_markup), (xml191_parse_alias):
572 * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
574 Various changes to accomodate new libglabels API.
576 2004-01-03 Jim Evins <evins@snaught.com>
581 2004-01-03 Jim Evins <evins@snaught.com>
584 Added acknowledgement of contributions by Wayne Schuller.
586 * src/commands.c: (gl_cmd_file_print):
587 Create extra reference to print dialog, so that it can be properly re-used.
589 * src/mygal/mygal-combo-box.h:
590 * src/mygal/mygal-combo-box.c:
591 (mygal_combo_box_popup_hide_unconditional),
592 (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
593 (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
594 (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
595 (mygal_combo_box_set_tearable):
596 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
597 complete the rename of this widget to prevent namespace collisions
600 * src/prefs-dialog.glade:
601 Fixed alignment of Fill/Color widgets.
603 2004-01-03 Jim Evins <evins@snaught.com>
605 * data/avery-iso-templates.xml:
606 Added user submitted templates.
607 Avery 8435A & 8435B, submitted by Ludger Solbach.
610 Added minimal documentation, noting the new template designer.
612 2004-01-03 Jim Evins <evins@snaught.com>
614 * pixmaps/ex-rect-size.png:
615 * pixmaps/ex-round-size.png:
616 * pixmaps/ex-cd-size.png:
617 * pixmaps/Makefile.am:
618 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
619 files to be used as illustrations/examples in the template-designer.
621 * src/template-designer.c: (construct_rect_size_page),
622 (construct_round_size_page), (construct_cd_size_page),
623 (construct_nlayouts_page), (rect_size_page_prepare_cb),
624 (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
625 (layout_page_prepare_cb), (build_template):
626 * src/template-designer.glade:
627 Added illustrations for rectangle, round, and cd label size pages.
628 Added margin spinboxes to these pages, and now add a margin markup
629 to the constructed template. Added realistic default values for
630 some of the size spinboxes. Cleaned up the code for setting spinbox
631 ranges on the layouts page.
633 2004-01-02 Jim Evins <evins@snaught.com>
635 * src/object-editor-size-page.c: (h_spin_cb):
636 Fixed cut-n-paste error in h_spin_cb that loaded h from
637 the wrong spinbutton.
639 * src/object-editor.h:
640 * src/object-editor.c: (gl_object_editor_class_init),
641 (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
642 * src/object-editor-private.h:
643 * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
645 Added "size_changed" signal.
647 * src/view-text.c: (construct_properties_editor),
648 (update_object_from_editor_cb),
649 (update_object_from_editor_size_cb):
650 Track size changes from object editor separately from other
651 properties. This is so the default size (0,0) of a text
652 object is not modified unintentionally.
654 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
656 Added feature: line spacing - allows you to comfortably space a text box to
657 fit a label perfectly.
659 * data/glabels-2.0.dtd:
660 * src/label-object.c: (gl_label_object_set_text_line_spacing),
661 (gl_label_object_get_text_alignment),
662 (gl_label_object_get_text_line_spacing):
663 * src/label-object.h:
664 * src/label-text.c: (gl_label_text_class_init),
665 (gl_label_text_instance_init), (copy), (get_size),
666 (set_text_line_spacing), (get_text_alignment),
667 (get_text_line_spacing):
668 * src/object-editor-private.h:
669 * src/object-editor-text-page.c:
670 (gl_object_editor_prepare_text_page),
671 (gl_object_editor_set_text_line_spacing),
672 (gl_object_editor_get_text_line_spacing):
673 * src/object-editor.glade:
674 * src/object-editor.h:
675 * src/prefs-dialog.c: (construct_object_page),
676 (update_object_page_from_prefs), (update_prefs_from_object_page):
677 * src/prefs-dialog.glade:
678 * src/prefs-model.c: (gl_prefs_model_save_settings),
679 (gl_prefs_model_load_settings), (get_float):
681 * src/print.c: (draw_text_object):
683 * src/view-text.c: (update_object_from_editor_cb),
684 (update_editor_from_object_cb),
685 (gl_view_text_create_event_handler), (draw_hacktext):
686 * src/view.c: (gl_view_construct),
687 (gl_view_set_selection_text_line_spacing),
688 (gl_view_set_default_text_line_spacing),
689 (gl_view_get_default_text_line_spacing):
691 * src/xml-label.c: (xml_parse_toplevel_span),
692 (xml_create_toplevel_span):
694 2003-12-30 Jim Evins <evins@snaught.com>
696 * src/template-designer.c:
697 * src/template-designer.h:
698 * src/template-designer.glade:
699 New template designer assistant.
703 Added entries for src/template-designer.* files.
705 * pixmaps/ex-1layout.png
706 * pixmaps/ex-2layouts.png
707 * pixmaps/Makefile.am:
708 Added the new image files ex-*.png used as illustrations in the
709 template designer assistant.
711 * src/print-dialog.h:
712 * src/print-dialog.c: (gl_print_dialog_finalize),
713 (gl_print_dialog_new), (gl_print_dialog_construct),
714 (gl_print_dialog_force_outline_flag):
715 Changed first argument of gl_print_dialog_new() from glView to glLabel,
716 to support printing from the template designer assistant which does not
717 have a full-fledged view. Nothing else from the view object was being
718 used by the dialog anyway.
720 Added the gl_print_dialog_force_outline_flag() method, for better
721 integration with the template designer assistant.
725 * src/commands.c: (gl_cmd_file_template_designer),
727 Modified print command to provide label instead of view to dialog.
728 Added the gl_cmd_file_template_designer() command to invoke the
729 template designer assistant.
732 * src/glabels-ui.xml:
733 Added support for template designer assistant.
735 * src/wdgt-mini-preview.h:
736 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
737 (gl_wdgt_mini_preview_set_bg_color):
738 Preview is now centered in canvas. Added
739 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
740 assistant to match the background color with its own.
742 * src/print.c: (clip_to_outline):
743 Fixed really stupid bug when adding waste to clip region of rectangular
744 labels/cards. Each side of the clip region needs to be extended by
745 twice the waste margin, as well as negatively offset by the waste
748 2003-12-28 Jim Evins <evins@snaught.com>
750 * src/prefs-dialog.c: (update_object_page_from_prefs):
751 Block intermediary function align_toggle_cb() instead of
752 update_prefs_from_object_page() for the three alignment
755 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
757 * src/file.c: (gl_file_new), (gl_file_properties):
758 Swap button order and set default for higificatory pleasure.
760 2003-12-27 Jim Evins <evins@snaught.com>
762 * barcode-0.98/Makefile.am:
763 One last time: removed doc/Makefile and po/Makefile.in.in from
766 2003-12-27 Jim Evins <evins@snaught.com>
768 * barcode-0.98/Makefile.am:
769 Removed config.stat entry from EXTRA_DIST files.
771 * barcode-0.98/Makefile.in:
774 2003-12-27 Jim Evins <evins@snaught.com>
777 Updated to work with latest gnome-common package from CVS.
778 Removed recursive configuration of barcode-0.98.
785 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
787 * barcode-0.98/Makefile.in:
788 * barcode-0.98/configure.in:
789 * barcode-0.98/Makefile.am:
790 * barcode-0.98/README.glabels:
791 Modified to ignore the barcode package's build system, and build
792 as a part of glabels.
793 Renamed Makefile.in to Makefile.in.dist.
794 Renamed configure.in to configure.in.dist.
795 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
798 * src/mygal/Makefile.am:
799 * src/recent-files/Makefile.am:
800 In order to build against the GNOME 2.5 platform,
801 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
803 * src/mygal/Makefile.am:
804 * src/mygal/mygal-combo-box.c:
805 * src/mygal/mygal-combo-box.h:
806 * src/mygal/widget-color-combo.c:
807 * src/mygal/widget-color-combo.h:
809 In order to build against the GNOME 2.5 platform,
810 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
811 collisions with the real gtk_combo_box widget, now a part of gtk.
813 2003-12-26 Jim Evins <evins@snaught.com>
819 Moved local versions of get_home_data_dir() in paper.c and
820 template.c to util package. Cleaned up formatting in
824 In gl_template_register() save a copy of the template in
825 ~/.glabels if the template is not known. Still need to
826 handle duplicate filename case and duplicate name but
827 different template case.
831 Moved local definition of NAME_SPACE macro from xml-label.c
834 * src/xml-template.c:
835 * src/xml-template.h:
836 Added function gl_xml_template_write_template_to_file(), used
837 in gl_template_register().