1 2005-01-22 Jim Evins <evins@snaught.com>
6 Added MESSAGE-OF-DOOM to EXTRA_DIST.
10 Set version to 2.1.0. Output MESSAGE-OF-DOOM.
12 Added '--remove-original' flag to desktop-file-install, so that there is
15 2005-01-20 Jim Evins <evins@snaught.com>
17 * data/glade/object-editor.glade:
18 - Font family entry should not be editable.
19 - img_key_entry should have sensitivity=YES, so that it follows the
20 sensitivity of img_key_combo.
22 2005-01-19 Jim Evins <evins@snaught.com>
25 Give credit to Frederic Ruaudel for the color merge patches.
27 2005-01-18 Frederic Ruaudel <grumz@users.sf.net>
29 Add support to merge color for all other color attribute (Feature
30 Requests item #1008635. If the data is invalid, the color used is transparent
31 (GL_COLOR_NONE). The format for color in merge data file are those accepted
32 by gdk_color_parse() these include name for a color from rgb.txt, such as
33 DarkSlateGray, or a hex specification such as #305050. File format has been
34 changed but backward compatibility is preserved for all format. For
35 box/ellipse/line, keep attribute "line_color" for static color or replace by
36 "line_color_field" for merge data. For text/barcode objects, keep attribute
37 "color" for static color or replace by "color_field" for merge data. In the
38 edit canvas window, merged color are represented by half-transparent black
41 * data/dtd/glabels-2.0.dtd:
42 Added line_color_field to line_attrs. Added color_field to
43 Object-barcode and Span.
44 * data/glade/object-editor.glade:
45 Modify the layout of the editor to add merge possibility to color options
47 Fix a copy/paste error in a comment
49 Add default color for merge color representation in the editor canvas.
50 * src/label-barcode.c:
51 * src/object-editor-bc-page.c:
53 Add merge color support for barcode color.
56 Add merge color support for box border color.
57 * src/label-ellipse.c:
59 Add merge color support for ellipse border color.
62 Add merge color support for line color.
65 * src/object-editor.c:
66 * src/object-editor.h:
67 * src/ui-property-bar.c:
71 * src/xml-label-191.c:
72 Add support for merging to other color attribute.
74 * src/object-editor-text-page.c:
76 Add merge color support for text color.
77 * src/object-editor-fill-page.c:
78 Change a blocked handler that didn't match the good widget. Fix the type
79 of some debug message.
80 * src/object-editor-line-page.c:
81 Add merging support to line color option.
82 * src/object-editor-private.h:
83 Add variables for new widget.
85 Modify the draw functions to get merge data if needed.
87 Change the default size of the window in order to see all widget in the
88 "text style tab" of the editor.
90 Modify the parser to record/retreive the field value for objects that need
91 "color" attribute. For box/ellipse/line, keep attribute "line_color" for
92 static color or replace by "line_color_field" for merge data. For
93 text/barcode objects, keep attribute "color" for static color or replace
94 by "color_field" for merge data.
96 2005-01-17 Jim Evins <evins@snaught.com>
98 * src/view.c: (screen_changed_cb):
99 Don't do anything if we don't have a screen.
101 2005-01-06 Jim Evins <evins@snaught.com>
103 * src/view.c: (get_home_scale):
104 Fixed bad call to gtk_widget_has_screen() -- huh?.
106 2005-01-06 Jim Evins <evins@snaught.com>
108 * data/dtd/glabels-2.0.dtd:
109 Added fill_color_field to fill_attrs. Also added xmlns attribute to all
112 2005-01-06 Jim Evins <evins@snaught.com>
114 * data/glade/object-editor.glade:
115 Set entries for fill and data field key dropdowns to NOT editable.
116 * src/view-box.c: (construct_properties_editor):
117 * src/view-ellipse.c: (construct_properties_editor):
118 Update object editor when label's merge property has changed.
119 * src/xml-label.c: (xml_parse_object_ellipse):
120 Completed the merge color support for the ellipse item.
122 2005-01-06 Frederic Ruaudel <grumz@users.sf.net>
124 Add support to merge color for object that have a "Fill color" attribute (Feature
125 Requests item #1008635. If the data is invalid, the color used is transparent
126 (GL_COLOR_NONE). The format for color in merge data file are those accepted
127 by gdk_color_parse() these include name for a color from rgb.txt, such as
128 DarkSlateGray, or a hex specification such as #305050. File format has been
129 changed but backward compatibility is preserved for all format. For box/ellipse,
130 keep attribute "fill_color" for static color or replace by "fill_color_field"
133 * data/glade/object-editor.glade:
134 Modify "Fill" tab to add the merge key combo and convert the labels into
138 Add "glColorNode" structure and associated functions to manage it. This
139 structure is equivalent for color than the "glTextNode". It holds the color
141 * src/label-object.h:
142 * src/label-object.c:
144 * src/label-ellipse.c:
145 * src/ui-property-bar.c:
149 * src/view-ellipse.c:
150 * src/xml-label-04.c:
151 * src/xml-label-191.c:
152 Change functions of objects that have a "fill color" attribute to use the
153 new "glColorNode" structure. Use barcode code as example.
155 Add the color.[ch] file to glabels_batch binary that now need support for
157 * src/object-editor.h:
158 * src/object-editor.c:
159 * src/object-editor-fill-page.c:
160 Manage the new widget of the editor's "Fill" tab : key combo and radio button
161 to choose between static color or merge key. Use barcode code as example.
162 * src/object-editor-private.h:
163 Add new widget in the "_glObjectEditorPrivate" structure.
165 Modify the draw functions to get merge data if needed.
167 Modify the parser to record/retreive the field value for objects that need
168 "Fill color" attribute. For box/ellipse, put attribute "fill_color" for static
169 color or "fill_color_field" for merge data.
171 2005-01-04 Jim Evins <evins@snaught.com>
174 * data/templates/avery-iso-templates.xml:
175 * data/templates/misc-iso-templates.xml:
176 * data/templates/misc-us-templates.xml:
177 Added templates, submitted by Larry Harriman, Juan Carlos Valero, and
180 2004-11-26 Jim Evins <evins@snaught.com>
184 Updated french translations provided by Florent Morel <florent@taket.org>.
185 * src/view-barcode.c:
187 * src/view-ellipse.c:
191 Added '#include <config.h>' -- HAVE_*GETTEXT macros were not defined and
192 thus _() strings were not being translated.
194 2004-11-14 Jim Evins <evins@snaught.com>
197 * src/debug.c: (gl_debug_init), (gl_debug):
198 Borrowed from gedit: use environmental variables to select debug
201 Removed unused include of debug.h.
202 * src/glabels.c: (main):
203 Added call to gl_debug_init(), and removed debug clutter from command line
205 * src/glabels-batch.c: (main):
206 Added call to gl_debug_init().
208 2004-11-13 Jim Evins <evins@snaught.com>
210 Drawing and property toolbars were being initialized with the "icons and text"
211 look in Fedora Core 3. Even though none of the buttons had any text attached to
212 them, the buttons were being sized as if they were. This led to less real estate
213 for the property editor, leading to Bug #1064630. The
215 * data/ui/glabels-ui.xml:
216 Added explicit "look" property to both drawing and property toolbars.
217 * src/prefs-model.c: (gl_prefs_model_save_settings),
218 (gl_prefs_model_load_settings):
220 Removed drawing_toolbar_button_style configuration parameter.
221 * src/ui.c: (view_menu_item_toggled_cb),
222 (set_app_drawing_toolbar_style):
223 Do not attempt to adjust look property of the drawing toolbar.
225 2004-10-28 Jim Evins <evins@snaught.com>
227 * data/pixmaps/glabels-about-logo.png:
230 2004-10-28 Jim Evins <evins@snaught.com>
232 * data/man/glabels.1:
233 * src/glabels-batch.c: (main):
235 * src/print.c: (gl_print_batch):
237 Added option to glabels-batch to select the first label to begin
240 2004-09-26 Jim Evins <evins@snaught.com>
242 * data/desktop/glabels.desktop.in:
243 Point to app icon, "glabels.png"
244 * data/mime/glabels.keys.in:
245 Point at mime icon, "glabels-application-x-glabels.png"
246 * data/pixmaps/Makefile.am:
247 Added glabels_app_icondir. Renamed icons.
248 * data/pixmaps/glabels.png:
249 New cleaned up app icon. Deleted glabels-icon.png.
250 * data/pixmaps/glabels-application-x-glabels.png:
252 * data/pixmaps/glabels-splash.png:
253 Renamed glabels-logo to glabels-splash to be more correct about role.
255 * src/template-designer.c:
256 Point at app icon, "glabels.png"
258 Point at renamed splash image, "glabels-splash.png"
260 2004-08-22 Jim Evins <evins@snaught.com>
263 * src/glabels-batch.c: (main):
264 Applied patch with minor mods to allow selecting merge source and
265 crop-marks on glabels-batch's command line. Original patch provided by
266 José Dapena Paz <jdapena@igalia.com>.
268 2004-08-15 Jim Evins <evins@snaught.com>
270 * data/desktop/glabels.desktop.in:
271 - Added encoding line
272 - Removed period from comment
273 - Fixed Terminal line, changed "0" to "false"
274 - Added semicolen to Categories line
276 - Made sure desktop.in comment string above still translated properly
278 2004-08-14 Jim Evins <evins@snaught.com>
280 * libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
281 * libglabels/xml-template.c: (gl_xml_template_parse_template_node):
282 * src/xml-label-191.c: (xml191_parse_sheet):
283 Fixed improper freeing of gettext strings. Merged from 2.0.1.
285 Reconciled libglabels versioning with 2.0.1.
288 2004-08-14 Jim Evins <evins@snaught.com>
291 Updated version to 2.1cvs.
293 2004-08-14 Jim Evins <evins@snaught.com>
296 Updated 2.0.x translation by Takeshi AIHANA <aihana@gnome.gr.jp>.
298 2004-08-14 Jim Evins <evins@snaught.com>
300 Fixes for Bug #1008181.
302 * src/bc.c: (gl_barcode_default_digits):
303 Make a format of zero digits, harmless.
304 * src/xml-label.c: (xml_parse_object_barcode):
305 Set default value of the format property of barcode objects to 10, not
306 zero. This will prevent crashes when reading pre 2.0.x files.
308 2004-08-09 Jim Evins <evins@snaught.com>
312 * help/C/glabels-C.omf:
313 * help/C/glabels.xml:
314 Brought documentation up-to-date for 2.0.0 release.
316 2004-08-09 Jim Evins <evins@snaught.com>
318 These are hopefully the final preparations for 2.0.0.
320 * data/mime/Makefile.am:
321 Include glabels.xml in EXTRA_DIST.
323 - Updated comment style.
324 - Added LIBGLABELS_VERSION_INFO macro, updated Current.
325 - Added package and version info to configuration printout
326 - Update version to 2.0.0
327 * libglabels/Makefile.am:
328 Use the new LIBGLABELS_VERSION_INFO macro.
330 2004-08-09 Jim Evins <evins@snaught.com>
334 Cleanup of required library macros.
336 2004-08-08 Jim Evins <evins@snaught.com>
340 - More specific of what to install in /usr/bin and /usr/lib
341 - Remove built mime registration files from staging directory
343 2004-08-08 Jim Evins <evins@snaught.com>
345 * data/mime/Makefile.am:
346 Fixed typo: key_files should have been keys_files.
348 2004-08-08 Jim Evins <evins@snaught.com>
350 Reorganization of runtime data files. Also added registration of mimetype with
351 new freedesktop.org mime database if available.
354 Moved files to appropriate subdirectories, creating local Makefile.am
355 in each subdirectory.
356 - Moved paper-sizes.xml and *-templates.xml to templates subdirectory.
357 These are now installed at $datadir/glabels/templates.
358 - Moved glabels.1 to man subdirectory.
359 - Moved glabels-2.0.dtd to dtd subdirectory.
360 - Moved glabels.desktop.in to desktop subdirectory.
361 - Moved glabels.keys.in and glabels.mime to mime subdirectory.
363 Moved "./pixmaps" to "./data/pixmaps"
365 Moved src/glabels-ui.xml to data/ui directory. Created Makefile.am.
367 Moved libglade files from src to data/glade. Created Makefile.am.
369 Removed pixmaps from SUBDIRS.
371 - Removed pixmaps from makefiles.
372 - Added makefiles for new subdirs of data.
373 - Added tests for freedesktop.org mime database.
375 - Added tests for freedesktop.org mime database for post install and
376 post un-install actions.
377 * libglabels/Makefile.am:
378 Moved system template files to $(datadir)/glabels/templates.
379 * libglabels/libglabels-private.h:
380 Moved system template files to $(datadir)/glabels/templates.
382 - Accounted for movement of ui and libglade files.
383 - Added missing .in files.
384 - Reorganized by directory.
386 Accounted for movement of ui and libglade files.
387 * data/mime/glabels.xml.in:
388 New file for registering with freedesktop.org mime database.
390 2004-08-07 Jim Evins <evins@snaught.com>
392 * src/recent-files/*:
393 Re-synced to latest libegg/recent-files.
395 2004-08-07 Jim Evins <evins@snaught.com>
400 Renamed "./doc" directory to "./help" which contains user documentation,
401 to be more consistent with other GNOME applications.
404 2004-07-26 Jim Evins <evins@snaught.com>
406 * src/merge-properties-dialog.c: (gl_merge_properties_dialog_init):
407 Corrected button order of merge properties dialog.
409 2004-07-18 Jim Evins <evins@snaught.com>
411 * data/glabels-2.0.dtd:
412 * src/bc.c: (gl_barcode_default_digits), (gl_barcode_can_freeform),
413 (gl_barcode_get_prefered_n):
415 * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
416 (gl_label_barcode_get_props), (get_size):
417 * src/label-barcode.h:
418 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page),
419 (style_changed_cb), (gl_object_editor_set_bc_style),
420 (gl_object_editor_get_bc_style):
421 * src/object-editor-data-page.c: (data_radio_toggled_cb),
422 (gl_object_editor_set_data), (gl_object_editor_get_data):
423 * src/object-editor-private.h:
424 * src/object-editor.c: (gl_object_editor_set_key_names):
425 * src/object-editor.glade:
426 * src/object-editor.h:
427 * src/print.c: (draw_barcode_object):
428 * src/view-barcode.c: (update_object_from_editor_cb),
429 (update_editor_from_object_cb),
430 (gl_view_barcode_create_event_handler), (draw_barcode):
431 * src/xml-label-04.c: (xml04_parse_barcode_props):
432 * src/xml-label-191.c: (xml191_parse_barcode_props):
433 * src/xml-label.c: (xml_parse_object_barcode),
434 (xml_create_object_barcode):
435 Added "format" attribute to barcode objects. This attribute is used
436 to properly format freeform barcodes barcodes prior to merge data is
437 applied, so that barcodes can be accurately layed out. This addresses
438 remaining issues of feature request #824787. Also added an example of
439 the format in the object editor.
441 2004-07-12 Jim Evins <evins@snaught.com>
443 Various code cleanups.
445 * src/label-barcode.c:
446 Removed unneeded include of gnome-glyphlist.h.
448 * src/label-text.c: (get_size):
449 Fixed memory leak: unref glyphlists when done with them.
451 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page):
452 * src/object-editor-data-page.c:
453 (gl_object_editor_prepare_data_page):
454 * src/object-editor-image-page.c:
455 (gl_object_editor_prepare_image_page):
456 * src/object-editor-line-page.c:
457 (gl_object_editor_prepare_line_page):
458 * src/object-editor-lsize-page.c:
459 (gl_object_editor_prepare_lsize_page):
460 * src/object-editor-position-page.c:
461 (gl_object_editor_prepare_position_page):
462 * src/object-editor-size-page.c:
463 (gl_object_editor_prepare_size_page):
464 * src/object-editor-text-page.c:
465 (gl_object_editor_prepare_text_page):
466 Removed unneeded size groups, originally intended to keep widgets aligned.
467 Now use tables to lay these out in object-editor.glade.
469 * src/print.c: (draw_text_object):
470 Fixed memory leak: unref glyphlists when done with them.
472 * src/view-barcode.c: (draw_barcode):
473 Fixed memory leak: unref glyphlists when done with them.
475 * src/view-text.c: (update_object_from_editor_cb), (draw_hacktext):
476 - Removed unneeded cast of gl_object_editor_get_text_line_spacing()s
478 - Fixed memory leak: unref glyphlists when done with them.
480 2004-07-11 Jim Evins <evins@snaught.com>
482 * data/glabels-2.0.dtd:
483 * src/label-text.c: (gl_label_text_instance_init), (copy),
484 (gl_label_text_set_auto_shrink), (gl_label_text_get_auto_shrink):
486 * src/object-editor-private.h:
487 * src/object-editor-text-page.c:
488 (gl_object_editor_prepare_text_page),
489 (gl_object_editor_set_text_auto_shrink),
490 (gl_object_editor_get_text_auto_shrink):
491 * src/object-editor.c: (gl_object_editor_set_key_names):
492 * src/object-editor.glade:
493 * src/object-editor.h:
494 * src/print.c: (draw_text_object):
495 * src/view-text.c: (update_object_from_editor_cb),
496 (update_editor_from_object_cb):
497 * src/xml-label.c: (xml_parse_object_text),
498 (xml_create_object_text):
499 Added option to allow document merge to auto shrink text size to fit
500 within the text box. The code in print.c that actually shrinks the
501 text is loosely based on a patch submitted by Mark Harrison
502 <mark.harrison@velocitynet.com.au>. This addresses feature request
505 2004-07-11 Jim Evins <evins@snaught.com>
507 * data/glabels-2.0.dtd:
508 * libglabels/template.c: (gl_template_rect_label_type_new),
509 (gl_template_round_label_type_new),
510 (gl_template_cd_label_type_new), (gl_template_label_type_dup),
511 (template_full_page):
512 * libglabels/template.h:
513 * libglabels/xml-template.c: (xml_parse_label_rectangle_node),
514 (xml_create_label_node):
515 * pixmaps/ex-rect-size.png:
516 * src/print.c: (clip_to_outline), (clip_punchouts):
517 * src/template-designer.c: (construct_rect_size_page),
518 (rect_size_page_prepare_cb), (layout_page_prepare_cb),
520 * src/template-designer.glade:
521 * src/xml-label-191.c: (xml191_parse_label):
522 Modifications to allow separate horizontal (x_waste) and vertical (y_waste)
523 properties for rectangular labels. Templates remain backwards compatible,
524 but this breaks the libglabels API (I don't know of anyone outside of
525 glabels using libglabels at this time -- what can I say, the program is
526 is still "unstable"). This addresses the suggestion in Feature Request
529 2004-07-05 Jim Evins <evins@snaught.com>
530 * src/print.c: (print_crop_marks), (draw_outline):
531 Changed crop marks and label outlines to black, instead of 25% gray.
532 This addresses debian Bug #257460.
534 2004-07-05 Jim Evins <evins@snaught.com>
536 * src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
537 * src/object-editor-line-page.c: (gl_object_editor_set_line_color):
538 Preserve "is_default" of fill and line color_combos when creating from
541 2004-07-02 Jim Evins <evins@snaught.com>
544 Created man page. Based on page submitted by Matthew J. Lockner, however
545 it has been severely edited.
547 * data/avery-other-templates.xml
548 * data/misc-other-templates.xml:
549 Started new files for predefined templates with non-standard sheet sizes.
550 These have been initially populated with the Avery 06141 and
551 OfficeMax #86112, both provided by Matthew J. Lockner.
554 Install above manpage and template files.
557 Make sure we install man pages.
559 * src/glabels-batch.c:
560 Changed short form of help option to '-?' to be consistent with glabels.
563 Added acknowledgement for above labels.
565 2004-07-02 Jim Evins <evins@snaught.com>
567 * src/glabels.c: (main), (save_session_cb):
568 - Now include libbonoboui.h, recent.h, and file.h to provide missing
570 - save_session_cb() now returns gboolean.
571 - Minor formatting changes.
575 - Now include file.h to provide missing prototype.
576 - gl_window_get_type() now returns GType, not guint. I believe this may
577 ultimately be cause of the segfault reported in Bug #982287, since
578 GType is actually a gulong, which may not be compatible on other
579 architectures (64bit) -- I cannot personally test this at this time.
580 I was sloppy in several other xxx_get_type() functions which also
581 returned guint -- see next group of files:
583 * src/window.c: (gl_window_get_type):
584 * src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
585 * src/canvas-hacktext.h:
586 * src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
587 (gl_hig_category_get_type), (gl_hig_vbox_get_type),
588 (gl_hig_hbox_get_type):
590 * src/label-barcode.c: (gl_label_barcode_get_type):
591 * src/label-barcode.h:
592 * src/label-box.c: (gl_label_box_get_type):
594 * src/label-ellipse.c: (gl_label_ellipse_get_type):
595 * src/label-ellipse.h:
596 * src/label-image.c: (gl_label_image_get_type):
598 * src/label-line.c: (gl_label_line_get_type):
600 * src/label-object.c: (gl_label_object_get_type):
601 * src/label-object.h:
602 * src/label-text.c: (gl_label_text_get_type):
604 * src/label.c: (gl_label_get_type):
606 * src/merge-properties-dialog.c:
607 (gl_merge_properties_dialog_get_type):
608 * src/merge-properties-dialog.h:
609 * src/merge-text.c: (gl_merge_text_get_type):
611 * src/merge.c: (gl_merge_get_type):
613 * src/object-editor.c: (gl_object_editor_get_type):
614 * src/prefs-dialog.c: (gl_prefs_dialog_get_type):
615 * src/prefs-dialog.h:
616 * src/prefs-model.c: (gl_prefs_model_get_type):
618 * src/print-dialog.c: (gl_print_dialog_get_type):
619 * src/print-dialog.h:
620 * src/template-designer.c: (gl_template_designer_get_type):
621 * src/template-designer.h:
622 * src/ui-property-bar.c: (gl_ui_property_bar_get_type):
623 * src/ui-property-bar.h:
624 * src/ui-sidebar.c: (gl_ui_sidebar_get_type):
626 * src/view-barcode.c: (gl_view_barcode_get_type):
627 * src/view-barcode.h:
628 * src/view-box.c: (gl_view_box_get_type):
630 * src/view-ellipse.c: (gl_view_ellipse_get_type):
631 * src/view-ellipse.h:
632 * src/view-highlight.c: (gl_view_highlight_get_type):
633 * src/view-highlight.h:
634 * src/view-image.c: (gl_view_image_get_type):
636 * src/view-line.c: (gl_view_line_get_type):
638 * src/view-object.c: (gl_view_object_get_type):
640 * src/view-text.c: (gl_view_text_get_type):
642 * src/view.c: (gl_view_get_type):
644 * src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
645 * src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
646 * src/wdgt-image-select.h:
647 * src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
648 * src/wdgt-media-select.h:
649 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
650 * src/wdgt-mini-preview.h:
651 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
652 * src/wdgt-print-copies.h:
653 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
654 * src/wdgt-print-merge.h:
655 * src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
656 * src/wdgt-rotate-label.h:
657 - Made sure all xxx_get_type functions returned GType, not guint. This
658 was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
659 ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
660 wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
661 wdt-print-merge.[ch], and wdgt-rotate-label.[ch]. See separate
662 window.[ch] details above for more info.
663 - Reconciled various coding style differences in all xxx_get_type()
665 * All prototypes include G_GNUC_CONST.
666 * All prototypes specify the return value as GType, not GtkType
668 * Info structures are all declared as "static const."
669 * Generalized the names of type and info variables.
670 * Miscelaneous formatting.
672 2004-06-08 Jim Evins <evins@snaught.com>
678 Don't touch compression of original file -- still defaults to 9 for
679 new files. Original patch provided by Javier Donaire Segarra
680 (#912252 in patch tracker).
682 2004-05-05 Jim Evins <evins@snaught.com>
684 * data/glabels-2.0.dtd:
685 Broke DTD previously when adding new barcode types that contain a
686 plus sign (+). Simply changed the BC_STYLE_TYPE entity to "CDATA"
687 to avoid the problem.
688 * data/avery-iso-templates.xml:
689 * data/zweckform-iso-templates.xml:
691 Added templates for Avery 7165, Zweckform 3688, 4732, and 6021. Templates
692 provided by Frank Altpeter.
693 * libglabels/xml-template.c: (xml_create_label_node):
694 Reordered markup and layout sub-nodes so that resulting templates will
695 validate against DTD.
697 2004-03-13 Jim Evins <evins@snaught.com>
699 * src/object-editor-size-page.c: (gl_object_editor_prepare_size_page):
700 Changed spin callback signals from "value-changed" back to "changed."
701 This was accidentally introduced in a previous revision, and can cause
702 size changes just by selecting the size tab.
704 2004-03-06 Jim Evins <evins@snaught.com>
706 * src/view.c: (draw_grid_layer):
707 For round labels (round and cd) adjust grid so that it lines up with
708 center of label. Also, no longer draw box around label in the grid layer,
709 it is hidden by he fg layer anyway. Feature suggested by
710 nemolivier@free.fr. Although the grid is aligned with the center of the
711 label, the coordinate system is still relative to the upper left corner
712 of the rectangle containing the label.
714 2004-02-25 Jim Evins <evins@snaught.com>
717 Changed version to 2.0pre1cvs
719 * libglabels/xml-template.c: (gl_xml_template_parse_templates_doc):
720 Removed extra xmlFreeDoc() calls upon error. Also print the doc->URL
721 instead of doc->name fields when errors encountered.
723 2004-02-21 Jim Evins <evins@snaught.com>
725 * data/avery-iso-templates.xml:
726 Added aliases for Avery 8651. Patch provided by Wayne Schuller.
729 Added libglabels library and include file to installed files.
732 Final prep for 1.93.3.
734 2004-02-20 Jim Evins <evins@snaught.com>
736 * src/glabels-batch.c: (main):
737 Changed key for setting output filename to GNOME_PRINT_KEY_OUTPUT_FILENAME
738 as suggested by Javier Donaire Segarra. This addresses bug #901063.
740 2004-02-16 Jim Evins <evins@snaught.com>
743 If gtk+ >= 2.3.2 then define HAVE_FILE_CHOOSER.
746 Added HAVE_FILE_CHOOSER to INCLUDES.
748 * src/file.c: (gl_file_open), (open_response), (gl_file_open_real),
749 (gl_file_save_as), (save_as_response):
750 Ported to use GtkFileChooserDialog if HAVE_FILE_CHOOSER is defined.
752 2004-02-16 Jim Evins <evins@snaught.com>
754 * src/xml-label-04.c: (xml04_parse_image_props):
755 * src/xml-label-191.c: (xml191_parse_image_props):
756 * src/xml-label.c: (xml_parse_object_image):
757 Delay setting image size until after image has been applied to new
760 2004-02-15 Jim Evins <evins@snaught.com>
762 * src/label-barcode.c: (gl_label_barcode_set_data),
763 (gl_label_barcode_set_props):
764 Don't emit "changed" signal, if no change actually made for these
765 methods. Reduces number of unnecessary redraws of barcodes.
767 * src/label-object.h:
768 * src/label-object.c: (gl_label_object_set_position),
769 (gl_label_object_set_position_relative), (set_size),
770 (gl_label_object_set_size),
771 (gl_label_object_set_size_honor_aspect):
772 Don't emit "changed" signal, if no change actually made for these
775 2004-02-15 Jim Evins <evins@snaught.com>
777 * data/glabels-2.0.dtd:
778 Added specific subtypes for various barcode types.
781 * src/bc.c: (id_to_index), (name_to_index), (gl_barcode_new),
782 (gl_barcode_get_styles_list), (gl_barcode_default_digits),
783 (gl_barcode_can_text), (gl_barcode_text_optional),
784 (gl_barcode_can_csum), (gl_barcode_csum_optional),
785 (gl_barcode_id_to_name), (gl_barcode_name_to_id):
786 Changed API to use a string id, rather than a fixed enumeration. Id and
787 name are separate strings. Added entries to backend table for specific
788 subtypes for various barcode types.
791 * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
793 Modified to conform to above API. Now more stringent with data length
794 for various subtypes.
796 * src/bc-gnubarcode.h:
797 * src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new),
798 (is_length_valid), (is_length1_valid), (is_length2_valid):
799 Modified to conform to above API. Now more stringent with data length
800 for various subtypes.
802 * src/label-barcode.h:
803 * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
804 (gl_label_barcode_get_props), (get_size):
805 Modified to use above API for storing barcode type.
807 * src/object-editor.h:
808 * src/object-editor-bc-page.c: (style_changed_cb),
809 (gl_object_editor_set_bc_style), (gl_object_editor_get_bc_style):
810 Modified to use above API for storing barcode type.
812 * src/object-editor-size-page.c:
813 (gl_object_editor_prepare_size_page), (aspect_toggle_cb),
814 (w_spin_cb), (h_spin_cb), (size_reset_cb):
817 * src/object-editor.glade:
818 Made barcode style combo's text entry non-editable.
820 * src/print.c: (draw_barcode_object):
821 Modified to use above API for barcode type.
823 * src/view-barcode.c: (update_object_from_editor_cb),
824 (update_editor_from_object_cb),
825 (gl_view_barcode_create_event_handler), (draw_barcode):
826 Modified to use above API for barcode type.
828 * src/xml-label-04.c: (xml04_parse_barcode_props):
829 * src/xml-label-191.c: (xml191_parse_barcode_props):
830 * src/xml-label.c: (xml_parse_object_barcode),
831 (xml_create_object_barcode):
832 Modified to use above API for barcode type.
834 2004-02-07 Jim Evins <evins@snaught.com>
836 * src/stock-pixmaps/Makefile.am:
837 * src/stock-pixmaps/stock_hchain_24.png:
838 * src/stock-pixmaps/stock_hchain_broken_24.png:
839 * src/stock-pixmaps/stock_vchain_24.png:
840 * src/stock-pixmaps/stock_vchain_broken_24.png:
841 Added chain pixmaps borrowed from the gimp's default theme.
844 * src/stock.c: (gl_stock_init), (add_button_icon):
845 Added above pixmaps to stock icon sets. Created add_button_icon() to
846 add these pixmaps sized as GTK_ICON_SIZE_BUTTON.
848 * src/wdgt-chain-button.h
849 * src/wdgt-chain-button.c
852 Added this Modified version of gimpchainbutton widget, borrowed from
856 Added acknowledgements of the above borrowing from the gimp.
858 * src/object-editor-size-page.c: (aspect_toggle_cb), (w_spin_cb),
860 * src/object-editor.c: (gl_object_editor_construct_chain_button):
861 * src/object-editor.glade:
862 Replaced the keep aspect ratio check box with the above chain-button
865 * src/text-node.c: (gl_text_node_equal):
867 Added function gl_text_node_equal() to compare text_nodes.
869 * src/label-image.c: (gl_label_image_set_filename):
870 Replaced incomplete text_node comparison code with invocation of
871 gl_text_node_equal. This fixed the problem of not being able to
872 resize an image using the object_editor if the aspect ratio is not
875 2004-02-04 Jim Evins <evins@snaught.com>
877 * src/object-editor-image-page.c:
878 (gl_object_editor_prepare_image_page):
879 Track "changed" signal of pixmap entry's GtkEntry rather than its
880 "activate" signal -- this catches all changes to the entry rather than
881 just changes resulting from a browse, so one can easily pull previous
882 entries from the history. (This change is marked below on 2004-02-03,
883 but somehow never got checked in.)
885 * src/view-highlight.c: (sl_resize_event_handler),
886 (sr_resize_event_handler), (st_resize_event_handler),
887 (sb_resize_event_handler):
888 Side resize handles will now confirm the actual resize that the object
889 accepted before adjusting position parameters. Previously some interesting
890 things happened when resizing a barcode to its minimum size.
892 2004-02-03 Jim Evins <evins@snaught.com>
894 * src/object-editor-image-page.c:
895 (gl_object_editor_prepare_image_page):
896 Track "changed" signal of pixmap entry's GtkEntry rather than its
897 "activate" signal -- this catches all changes to the entry rather than
898 just changes resulting from a browse, so one can easily pull previous
899 entries from the history.
901 * src/view-highlight.c: (tl_resize_event_handler),
902 (tr_resize_event_handler), (bl_resize_event_handler),
903 (br_resize_event_handler):
904 Allow control key to be dropped while dragging a corner resize handle
905 without losing the aspect ratio lock.
907 2004-02-02 Jim Evins <evins@snaught.com>
909 * src/label-image.c: (gl_label_image_set_filename):
910 When setting a new filename adjust size such that the aspect ratio of
911 the image is preserved using the current size as a bounding box.
913 * src/view-image.c: (update_object_from_editor_cb):
914 When updating object from editor, feed back possible size changes to
915 editor as a result of a possible change in image.
917 * src/object-editor-size-page.c: (size_reset_cb):
918 Fixed typo when blocking spin handlers. If the base size is larger than
919 the max size, treat max size as a bounding box while keeping aspect
923 2004-02-02 Jim Evins <evins@snaught.com>
925 * src/label-object.h:
926 * src/label-object.c: (gl_label_object_set_size),
927 (gl_label_object_set_size_honor_aspect):
928 Added gl_label_object_set_size_honor_aspect() which will maintain the
929 current aspect ratio by modifying the supplied w or h apropriately.
931 * src/view-highlight.c: (tl_resize_event_handler),
932 (tr_resize_event_handler), (bl_resize_event_handler),
933 (br_resize_event_handler):
934 Corner handles will now maintain the current aspect ratio if the
935 control key is pressed while resizing. This addresses feature
939 2004-01-31 Jim Evins <evins@snaught.com>
942 * data/avery-us-templates.xml:
943 Added entries for "LSK-3," "LSK-5," and "LSK-8." Submitted by JBadger.
945 * libglabels/template.c: (read_template_files_from_dir):
946 Corrected problem with testing for extensions.
948 * src/object-editor.glade:
949 Corrected grouping of radio buttons in barcode data page.
951 * src/print.c: (draw_barcode_object):
952 * src/view-barcode.c: (draw_barcode):
953 Corrected problem with calculation of y_offset for locating characters.
955 2004-01-24 Jim Evins <evins@snaught.com>
958 * data/avery-us-templates.xml:
959 Added Avery 5824, submitted by Fred Bacon.
961 2004-01-20 Jim Evins <evins@snaught.com>
963 Catching up on a couple of backlogged user template submissions.
965 * data/avery-iso-templates.xml:
966 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
967 Suggested by Linas Jakucionis.
969 * data/zweckform-iso-templates.xml:
970 Added Zweckform 4760, submitted by Thomas Vill.
973 Updated to reflect above submissions.
975 2004-01-06 Jim Evins <evins@snaught.com>
977 Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
978 xml.[ch] into a separate library called libglabels, to facilitate third
979 party use of glabels template files. This was suggested by Wayne Schuller.
980 Once split-out, some modifications to the structures and functions to
981 make a cleaner more useful API, hopefully. Rather extensive changes have
982 propogated to other modules.
990 * src/xml-template.h:
991 * src/xml-template.c:
994 These files have been moved to libglabels/. API cleanup performed.
996 * libglabels/libglabels.h:
997 * libglabels/libglabels-private.h:
998 * libglabels/Makefile.am:
999 These files have been added to finish out libglabels.
1006 Modified to reflect new sets of files in src/ and libglabels/.
1008 * COPYING.LIBGLABELS:
1010 Added copy of the LGPL for libglabels, and a copy the GFDL for
1013 * src/glabels-batch.c:
1015 * src/label.c: (gl_label_finalize), (gl_label_set_template),
1016 (gl_label_get_size):
1018 * src/prefs-model.c: (gl_prefs_model_load_settings):
1019 * src/print-dialog.c:
1020 * src/print.c: (gl_print_simple), (gl_print_merge_collated),
1021 (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
1022 (print_crop_marks), (print_label), (draw_outline),
1023 (clip_to_outline), (clip_punchouts):
1024 * src/template-designer.c: (construct_pg_size_page),
1025 (pg_size_page_changed_cb), (layout_page_changed_cb),
1026 (print_test_cb), (build_template):
1027 * src/util.c: (gl_util_fraction):
1029 * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
1030 (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
1031 (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
1032 (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
1033 (draw_markup_margin_round), (draw_markup_margin_cd),
1034 (draw_markup_margin_cd_bc), (draw_markup_line),
1035 (draw_markup_circle), (gl_view_copy):
1036 * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
1037 (page_size_entry_changed_cb), (details_update), (get_layout_desc),
1038 (get_label_size_desc):
1039 * src/wdgt-mini-preview.c:
1040 (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
1042 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
1043 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
1044 * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
1045 (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
1046 * src/wdgt-rotate-label.h:
1047 * src/xml-label-04.c: (xml04_parse_media_description):
1048 * src/xml-label-191.c: (gl_xml_label_191_parse),
1049 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
1050 (xml191_parse_markup), (xml191_parse_alias):
1051 * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
1053 Various changes to accomodate new libglabels API.
1055 2004-01-03 Jim Evins <evins@snaught.com>
1060 2004-01-03 Jim Evins <evins@snaught.com>
1063 Added acknowledgement of contributions by Wayne Schuller.
1065 * src/commands.c: (gl_cmd_file_print):
1066 Create extra reference to print dialog, so that it can be properly re-used.
1068 * src/mygal/mygal-combo-box.h:
1069 * src/mygal/mygal-combo-box.c:
1070 (mygal_combo_box_popup_hide_unconditional),
1071 (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
1072 (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
1073 (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
1074 (mygal_combo_box_set_tearable):
1075 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
1076 complete the rename of this widget to prevent namespace collisions
1079 * src/prefs-dialog.glade:
1080 Fixed alignment of Fill/Color widgets.
1082 2004-01-03 Jim Evins <evins@snaught.com>
1084 * data/avery-iso-templates.xml:
1085 Added user submitted templates.
1086 Avery 8435A & 8435B, submitted by Ludger Solbach.
1088 * doc/C/glabels.xml:
1089 Added minimal documentation, noting the new template designer.
1091 2004-01-03 Jim Evins <evins@snaught.com>
1093 * pixmaps/ex-rect-size.png:
1094 * pixmaps/ex-round-size.png:
1095 * pixmaps/ex-cd-size.png:
1096 * pixmaps/Makefile.am:
1097 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
1098 files to be used as illustrations/examples in the template-designer.
1100 * src/template-designer.c: (construct_rect_size_page),
1101 (construct_round_size_page), (construct_cd_size_page),
1102 (construct_nlayouts_page), (rect_size_page_prepare_cb),
1103 (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
1104 (layout_page_prepare_cb), (build_template):
1105 * src/template-designer.glade:
1106 Added illustrations for rectangle, round, and cd label size pages.
1107 Added margin spinboxes to these pages, and now add a margin markup
1108 to the constructed template. Added realistic default values for
1109 some of the size spinboxes. Cleaned up the code for setting spinbox
1110 ranges on the layouts page.
1112 2004-01-02 Jim Evins <evins@snaught.com>
1114 * src/object-editor-size-page.c: (h_spin_cb):
1115 Fixed cut-n-paste error in h_spin_cb that loaded h from
1116 the wrong spinbutton.
1118 * src/object-editor.h:
1119 * src/object-editor.c: (gl_object_editor_class_init),
1120 (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
1121 * src/object-editor-private.h:
1122 * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
1124 Added "size_changed" signal.
1126 * src/view-text.c: (construct_properties_editor),
1127 (update_object_from_editor_cb),
1128 (update_object_from_editor_size_cb):
1129 Track size changes from object editor separately from other
1130 properties. This is so the default size (0,0) of a text
1131 object is not modified unintentionally.
1133 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
1135 Added feature: line spacing - allows you to comfortably space a text box to
1136 fit a label perfectly.
1138 * data/glabels-2.0.dtd:
1139 * src/label-object.c: (gl_label_object_set_text_line_spacing),
1140 (gl_label_object_get_text_alignment),
1141 (gl_label_object_get_text_line_spacing):
1142 * src/label-object.h:
1143 * src/label-text.c: (gl_label_text_class_init),
1144 (gl_label_text_instance_init), (copy), (get_size),
1145 (set_text_line_spacing), (get_text_alignment),
1146 (get_text_line_spacing):
1147 * src/object-editor-private.h:
1148 * src/object-editor-text-page.c:
1149 (gl_object_editor_prepare_text_page),
1150 (gl_object_editor_set_text_line_spacing),
1151 (gl_object_editor_get_text_line_spacing):
1152 * src/object-editor.glade:
1153 * src/object-editor.h:
1154 * src/prefs-dialog.c: (construct_object_page),
1155 (update_object_page_from_prefs), (update_prefs_from_object_page):
1156 * src/prefs-dialog.glade:
1157 * src/prefs-model.c: (gl_prefs_model_save_settings),
1158 (gl_prefs_model_load_settings), (get_float):
1159 * src/prefs-model.h:
1160 * src/print.c: (draw_text_object):
1162 * src/view-text.c: (update_object_from_editor_cb),
1163 (update_editor_from_object_cb),
1164 (gl_view_text_create_event_handler), (draw_hacktext):
1165 * src/view.c: (gl_view_construct),
1166 (gl_view_set_selection_text_line_spacing),
1167 (gl_view_set_default_text_line_spacing),
1168 (gl_view_get_default_text_line_spacing):
1170 * src/xml-label.c: (xml_parse_toplevel_span),
1171 (xml_create_toplevel_span):
1173 2003-12-30 Jim Evins <evins@snaught.com>
1175 * src/template-designer.c:
1176 * src/template-designer.h:
1177 * src/template-designer.glade:
1178 New template designer assistant.
1182 Added entries for src/template-designer.* files.
1184 * pixmaps/ex-1layout.png
1185 * pixmaps/ex-2layouts.png
1186 * pixmaps/Makefile.am:
1187 Added the new image files ex-*.png used as illustrations in the
1188 template designer assistant.
1190 * src/print-dialog.h:
1191 * src/print-dialog.c: (gl_print_dialog_finalize),
1192 (gl_print_dialog_new), (gl_print_dialog_construct),
1193 (gl_print_dialog_force_outline_flag):
1194 Changed first argument of gl_print_dialog_new() from glView to glLabel,
1195 to support printing from the template designer assistant which does not
1196 have a full-fledged view. Nothing else from the view object was being
1197 used by the dialog anyway.
1199 Added the gl_print_dialog_force_outline_flag() method, for better
1200 integration with the template designer assistant.
1204 * src/commands.c: (gl_cmd_file_template_designer),
1205 (gl_cmd_file_print):
1206 Modified print command to provide label instead of view to dialog.
1207 Added the gl_cmd_file_template_designer() command to invoke the
1208 template designer assistant.
1211 * src/glabels-ui.xml:
1212 Added support for template designer assistant.
1214 * src/wdgt-mini-preview.h:
1215 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
1216 (gl_wdgt_mini_preview_set_bg_color):
1217 Preview is now centered in canvas. Added
1218 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
1219 assistant to match the background color with its own.
1221 * src/print.c: (clip_to_outline):
1222 Fixed really stupid bug when adding waste to clip region of rectangular
1223 labels/cards. Each side of the clip region needs to be extended by
1224 twice the waste margin, as well as negatively offset by the waste
1227 2003-12-28 Jim Evins <evins@snaught.com>
1229 * src/prefs-dialog.c: (update_object_page_from_prefs):
1230 Block intermediary function align_toggle_cb() instead of
1231 update_prefs_from_object_page() for the three alignment
1234 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
1236 * src/file.c: (gl_file_new), (gl_file_properties):
1237 Swap button order and set default for higificatory pleasure.
1239 2003-12-27 Jim Evins <evins@snaught.com>
1241 * barcode-0.98/Makefile.am:
1242 One last time: removed doc/Makefile and po/Makefile.in.in from
1245 2003-12-27 Jim Evins <evins@snaught.com>
1247 * barcode-0.98/Makefile.am:
1248 Removed config.stat entry from EXTRA_DIST files.
1250 * barcode-0.98/Makefile.in:
1253 2003-12-27 Jim Evins <evins@snaught.com>
1256 Updated to work with latest gnome-common package from CVS.
1257 Removed recursive configuration of barcode-0.98.
1264 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
1266 * barcode-0.98/Makefile.in:
1267 * barcode-0.98/configure.in:
1268 * barcode-0.98/Makefile.am:
1269 * barcode-0.98/README.glabels:
1270 Modified to ignore the barcode package's build system, and build
1271 as a part of glabels.
1272 Renamed Makefile.in to Makefile.in.dist.
1273 Renamed configure.in to configure.in.dist.
1274 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
1277 * src/mygal/Makefile.am:
1278 * src/recent-files/Makefile.am:
1279 In order to build against the GNOME 2.5 platform,
1280 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
1282 * src/mygal/Makefile.am:
1283 * src/mygal/mygal-combo-box.c:
1284 * src/mygal/mygal-combo-box.h:
1285 * src/mygal/widget-color-combo.c:
1286 * src/mygal/widget-color-combo.h:
1288 In order to build against the GNOME 2.5 platform,
1289 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
1290 collisions with the real gtk_combo_box widget, now a part of gtk.
1292 2003-12-26 Jim Evins <evins@snaught.com>
1298 Moved local versions of get_home_data_dir() in paper.c and
1299 template.c to util package. Cleaned up formatting in
1303 In gl_template_register() save a copy of the template in
1304 ~/.glabels if the template is not known. Still need to
1305 handle duplicate filename case and duplicate name but
1306 different template case.
1310 Moved local definition of NAME_SPACE macro from xml-label.c
1313 * src/xml-template.c:
1314 * src/xml-template.h:
1315 Added function gl_xml_template_write_template_to_file(), used
1316 in gl_template_register().