1 2005-04-19 Jim Evins <evins@snaught.com>
3 * data/glade/object-editor.glade:
4 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page),
5 (style_changed_cb), (gl_object_editor_set_bc_style),
6 (gl_object_editor_get_bc_style), (gl_object_editor_set_bc_color),
7 (gl_object_editor_get_bc_color):
8 * src/object-editor-data-page.c:
9 (gl_object_editor_prepare_data_page), (gl_object_editor_set_data),
10 (gl_object_editor_get_data):
11 * src/object-editor-edit-page.c:
12 (gl_object_editor_prepare_edit_page), (insert_button_cb):
13 * src/object-editor-fill-page.c:
14 (gl_object_editor_prepare_fill_page),
15 (gl_object_editor_set_fill_color),
16 (gl_object_editor_get_fill_color):
17 * src/object-editor-image-page.c:
18 (gl_object_editor_prepare_image_page),
19 (gl_object_editor_set_image), (gl_object_editor_get_image):
20 * src/object-editor-line-page.c:
21 (gl_object_editor_prepare_line_page),
22 (gl_object_editor_set_line_color),
23 (gl_object_editor_get_line_color):
24 * src/object-editor-private.h:
25 * src/object-editor-text-page.c:
26 (gl_object_editor_prepare_text_page),
27 (gl_object_editor_set_font_family),
28 (gl_object_editor_get_font_family),
29 (gl_object_editor_set_text_color),
30 (gl_object_editor_get_text_color):
31 * src/object-editor.c: (gl_object_editor_set_key_names):
33 In the object editor: replaced all instances of the deprecated
34 GtkCombo widget with the new GtkComboBox.
36 2005-04-18 Jim Evins <evins@snaught.com>
39 Neglected to save this one in previous checkin to support
42 2005-04-17 Jim Evins <evins@snaught.com>
44 * libglabels/libglabels-private.h:
47 * libglabels/template.c:
48 * libglabels/template.h:
49 * libglabels/xml-paper.c:
50 * libglabels/xml-paper.h:
51 * libglabels/xml-template.c:
56 * src/bc-gnubarcode.c:
67 * src/label-barcode.c:
69 * src/label-ellipse.c:
77 * src/merge-properties-dialog.c:
78 * src/object-editor-bc-page.c:
79 * src/object-editor-data-page.c:
80 * src/object-editor-edit-page.c:
81 * src/object-editor-fill-page.c:
82 * src/object-editor-image-page.c:
83 * src/object-editor-line-page.c:
84 * src/object-editor-lsize-page.c:
85 * src/object-editor-position-page.c:
86 * src/object-editor-private.h:
87 * src/object-editor-size-page.c:
88 * src/object-editor-text-page.c:
89 * src/object-editor.c:
90 * src/object-editor.h:
106 * src/template-designer.c:
107 * src/template-designer.h:
110 * src/ui-property-bar.c: (gl_ui_property_bar_construct):
116 * src/view-barcode.c:
118 * src/view-ellipse.c:
119 * src/view-highlight.c:
120 * src/view-highlight.h:
128 * src/wdgt-chain-button.c:
129 * src/wdgt-media-select.c:
130 * src/wdgt-media-select.h:
131 * src/wdgt-mini-preview.c:
132 * src/wdgt-mini-preview.h:
133 * src/wdgt-print-copies.c:
134 * src/wdgt-print-copies.h:
135 * src/wdgt-print-merge.c:
136 * src/wdgt-print-merge.h:
137 * src/wdgt-rotate-label.c:
138 * src/wdgt-rotate-label.h:
141 * src/xml-label-04.c:
142 * src/xml-label-191.c:
144 Cleanup of header files:
145 - all header files are now stand-alone, verified by including
146 first in corresponding "c" files
147 - replaced blanket includes of gnome, gtk, and glib with
150 2005-04-16 Jim Evins <evins@snaught.com>
152 * data/glade/Makefile.am:
153 * data/glade/merge-properties-dialog.glade:
154 Added merge properties dialog glade description file.
155 * src/merge-properties-dialog.h:
156 * src/merge-properties-dialog.c:
157 (gl_merge_properties_dialog_get_type),
158 (gl_merge_properties_dialog_init),
159 (gl_merge_properties_dialog_finalize),
160 (gl_merge_properties_dialog_new),
161 (gl_merge_properties_dialog_construct), (type_changed_cb),
162 (src_changed_cb), (response_cb), (load_tree),
163 (record_select_toggled_cb), (select_all_button_clicked_cb),
164 (unselect_all_button_clicked_cb):
165 Modified merge properties dialog to use libglade. Added
166 "select all" and "unselect all" buttons.
167 * src/merge-text.c: (parse_line):
168 Handle empty lines better.
169 * src/merge.c: (gl_merge_eval_key):
170 Evaluate the key whether the record is selected or not.
172 * src/util.c: (gl_util_combo_box_add_text_model):
173 Since libglade does not use the gtk_combo_box_new_text()
174 constructor for GtkComboBoxes, a utility function was created
175 to add an appropriate text model to a GtkComboBox.
176 * src/view.c: (gl_view_edit_merge_props):
177 Removed unnecessary "show all's".
179 2005-04-15 Jim Evins <evins@snaught.com>
182 Updated russian translation (Vitaly Lipatov)
183 * data/templates/misc-iso-templates.xml:
184 Added templates for russian business cards provided by Vitaly Lipatov.
186 Updated acknowledgements for above.
188 2005-04-15 Jim Evins <evins@snaught.com>
190 * data/templates/avery-us-templates.xml:
191 Added Avery 5388 and 5389 templates provided by Peter L. Berghold.
192 * data/templates/misc-iso-templates.xml:
193 Added Ryman standard CD/DVD template, provided by Dan Clark.
195 Added acknowledgements for above.
197 2005-04-10 Jim Evins <evins@snaught.com>
199 * libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
200 * libglabels/xml-template.c: (gl_xml_template_parse_template_node),
201 (xml_parse_label_rectangle_node), (xml_parse_label_round_node),
202 (xml_parse_label_cd_node), (xml_parse_alias_node):
203 * libglabels/xml.c: (gl_xml_get_prop_double),
204 (gl_xml_get_prop_boolean), (gl_xml_get_prop_int),
205 (gl_xml_get_prop_uint), (gl_xml_get_prop_length):
206 * src/xml-label-04.c: (xml04_parse_media_description),
207 (xml04_parse_text_props), (xml04_parse_barcode_props),
208 (xml04_parse_merge_properties):
209 * src/xml-label-191.c: (xml191_parse_object),
210 (xml191_parse_text_props), (xml191_parse_barcode_props),
211 (xml191_parse_merge_fields), (xml191_parse_pixdata),
212 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_markup),
213 (xml191_parse_alias):
214 * src/xml-label.c: (xml_parse_object_text),
215 (xml_parse_object_barcode), (xml_parse_merge_fields),
216 (xml_parse_pixdata), (xml_parse_toplevel_span):
217 Make sure to use xmlFree for anything obtained from libxml
218 in case libxml and glib use different memory management
221 2005-04-08 Jim Evins <evins@snaught.com>
224 * src/util.c: (gl_util_combo_box_set_strings), (search_text_func),
225 (gl_util_combo_box_set_active_text):
226 Added utility functions to simplify working with GtkComboBox
228 * src/ui-property-bar.h:
229 * src/ui-property-bar.c: (gl_ui_property_bar_construct),
230 (reset_to_default_properties), (update_text_properties),
231 (font_family_changed_cb):
232 Replaced deprecated GtkCombo with GtkComboBox.
235 2005-04-03 Jim Evins <evins@snaught.com>
238 * src/wdgt-image-select.h:
239 * src/wdgt-image-select.c:
240 Removed obsolete wdgt-image-select.[ch] files.
241 * libglabels/paper.c: (gl_paper_dup):
242 Fixed rename of parameter introduced during documentation
244 * data/glade/object-editor.glade:
245 * src/object-editor-image-page.c:
246 (gl_object_editor_prepare_image_page), (img_radio_toggled_cb),
247 (gl_object_editor_set_image), (gl_object_editor_get_image),
248 (update_preview_cb), (add_image_filters_to_chooser):
249 * src/object-editor-private.h:
250 Replaced deprecated GnomePixmapEntry with
251 GtkFileChooserButton.
253 2005-04-02 Jim Evins <evins@snaught.com>
255 * src/mygal/mygal-combo-box.c: (deactivate_arrow),
256 (mygal_combo_box_popup_hide_unconditional),
257 (mygal_combo_box_popup_hide), (mygal_combo_box_popup_display),
258 (mygal_combo_toggle_pressed), (mygal_combo_box_init),
259 (mygal_combo_popup_tear_off), (mygal_combo_set_tearoff_state),
260 (mygal_combo_tearoff_bg_copy), (mygal_combo_popup_reparent),
261 (cb_tearable_button_release), (mygal_combo_box_set_tearable):
262 Renamed all internal gtk_combo functions to mygal_combo
263 to prevent namespace confusion.
265 2005-04-02 Jim Evins <evins@snaught.com>
267 * src/mygal/color-palette.c: (color_palette_change_custom_color),
268 (cust_color_set), (color_palette_setup):
269 * src/mygal/color-palette.h:
270 Replaced deprecated GnomeColorPicker with GtkColorButton.
272 2005-04-02 Jim Evins <evins@snaught.com>
274 * docs/libglabels/libglabels-sections.txt:
275 * docs/libglabels/libglabels-undocumented.txt:
276 * docs/libglabels/tmpl/enums.sgml:
277 * docs/libglabels/tmpl/paper.sgml:
278 * docs/libglabels/tmpl/xml-paper.sgml:
279 * docs/libglabels/tmpl/xml-template.sgml:
280 * libglabels/enums.h:
281 * libglabels/paper.c: (gl_paper_dup):
282 * libglabels/paper.h:
283 * libglabels/xml-paper.c:
284 * libglabels/xml-template.c:
285 More documentation updates for libglabels.
287 2005-03-23 Jim Evins <evins@snaught.com>
290 Automatically updated.
295 * docs/libglabels/Makefile.am:
296 * docs/libglabels/libglabels-docs.sgml:
297 * docs/libglabels/libglabels-sections.txt:
298 * docs/libglabels/libglabels-undocumented.txt:
299 * docs/libglabels/tmpl/enums.sgml:
300 * docs/libglabels/tmpl/libglabels-unused.sgml:
301 * docs/libglabels/tmpl/libglabels.sgml:
302 * docs/libglabels/tmpl/paper.sgml:
303 * docs/libglabels/tmpl/template.sgml:
304 * docs/libglabels/tmpl/xml-paper.sgml:
305 * docs/libglabels/tmpl/xml-template.sgml:
306 * docs/libglabels/tmpl/xml.sgml:
307 Added basic gtk-doc stuff to support documenting libglabels
310 Updated function comments with gtk-doc markup.
314 2005-03-22 Jim Evins <evins@snaught.com>
316 Since the development version now requires gtk-2.6/gnome-2.10, I
317 have made a first pass at removing deprecations.
320 * libglabels/Makefile.am:
322 Added configure option to turn on X_DISABLE_DEPRECATED flags.
323 Also removed all remnants of HAVE_FILECHOOSER.
324 * src/file.c: (gl_file_open_real):
325 Removed code for old GtkFileSelection.
326 * libglabels/libglabels-private.h:
327 * libglabels/paper.c:
328 * libglabels/template.c:
329 * libglabels/xml-paper.c:
330 * libglabels/xml-template.c:
334 * src/glabels-batch.c:
338 * src/merge-properties-dialog.c:
340 * src/object-editor.c:
341 * src/prefs-dialog.c:
343 * src/print-dialog.c:
346 * src/template-designer.c:
347 * src/ui-property-bar.c:
349 * src/view-barcode.c:
351 * src/view-ellipse.c:
356 * src/wdgt-image-select.c:
357 * src/wdgt-media-select.c:
358 * src/wdgt-print-copies.c:
359 * src/wdgt-print-merge.c:
360 * src/wdgt-rotate-label.c:
362 * src/xml-label-04.c:
363 * src/xml-label-191.c:
365 Added '#include <glib/gi18n.h>" where needed.
366 Removed any unused '#include <gnome.h>"s.
368 2005-03-22 Jim Evins <evins@snaught.com>
370 * src/commands.c: (activate_url), (gl_cmd_help_about):
371 Replaced GnomeAbout with GtkAboutDialog. Therefore the
372 development version of glabels now depends on GTK 2.6 and
375 Updated library dependencies.
377 2005-02-28 Jim Evins <evins@snaught.com>
380 * data/templates/misc-iso-templates.xml:
381 Added 'Ednet 45021' template provided by Ali Akcaagac
384 2005-02-14 Jim Evins <evins@snaught.com>
386 * data/templates/avery-us-templates.xml:
387 Updated templates to use inches instead of points.
388 * src/print-dialog.c: (printer_page_new):
389 Changed packing style when adding printer selector widget. This fixes
392 2005-02-13 Jim Evins <evins@snaught.com>
396 Updated spanish translations. (sergio rivadero)
398 2005-02-05 Jim Evins <evins@snaught.com>
400 Some cleanup to libglabels.
403 Updated version to 2.1.1cvs. Added generation of libglabels.pc.
404 * libglabels/libglabels.pc.in
407 Created. Currently only contains glUnitsType which provides enumerations
408 for all possible units of distance.
409 * libglabels/Makefile.am:
410 Incorporated new files enums.h and libglabels.pc[.in].
411 * libglabels/libglabels.h:
413 * libglabels/template.h:
414 * libglabels/template.c: (gl_template_layout_new):
415 Changed parameters nx and ny to gint from gdouble.
417 * libglabels/xml.c: (gl_xml_get_prop_length),
418 (gl_xml_set_prop_length), (gl_xml_set_default_units):
419 Added support for different output units.
420 * src/prefs-dialog.c: (update_locale_page_from_prefs),
421 (update_prefs_from_locale_page):
422 * src/prefs-model.c: (string_to_units), (units_to_string):
424 * src/prefs.c: (gl_prefs_get_units_per_point),
425 (gl_prefs_get_units_precision), (gl_prefs_get_units_step_size),
426 (gl_prefs_get_units_string):
428 * src/wdgt-media-select.c: (details_update), (get_label_size_desc):
429 Reconciled all length enumerations with the new enumerations provided
430 in libglabels/enums.h.
432 2005-02-03 Jim Evins <evins@snaught.com>
435 Updated Czech translations. (David Makovský and Zbynek Mrkvick)
437 Updated Italian translations. (Daniele Medri)
439 Updated credits to reflect above translations.
442 2005-01-22 Jim Evins <evins@snaught.com>
447 Added MESSAGE-OF-DOOM to EXTRA_DIST.
449 Final prep for 2.1.0.
451 Set version to 2.1.0. Output MESSAGE-OF-DOOM.
453 Added '--remove-original' flag to desktop-file-install, so that there is
456 2005-01-20 Jim Evins <evins@snaught.com>
458 * data/glade/object-editor.glade:
459 - Font family entry should not be editable.
460 - img_key_entry should have sensitivity=YES, so that it follows the
461 sensitivity of img_key_combo.
463 2005-01-19 Jim Evins <evins@snaught.com>
466 Give credit to Frederic Ruaudel for the color merge patches.
468 2005-01-18 Frederic Ruaudel <grumz@users.sf.net>
470 Add support to merge color for all other color attribute (Feature
471 Requests item #1008635. If the data is invalid, the color used is transparent
472 (GL_COLOR_NONE). The format for color in merge data file are those accepted
473 by gdk_color_parse() these include name for a color from rgb.txt, such as
474 DarkSlateGray, or a hex specification such as #305050. File format has been
475 changed but backward compatibility is preserved for all format. For
476 box/ellipse/line, keep attribute "line_color" for static color or replace by
477 "line_color_field" for merge data. For text/barcode objects, keep attribute
478 "color" for static color or replace by "color_field" for merge data. In the
479 edit canvas window, merged color are represented by half-transparent black
482 * data/dtd/glabels-2.0.dtd:
483 Added line_color_field to line_attrs. Added color_field to
484 Object-barcode and Span.
485 * data/glade/object-editor.glade:
486 Modify the layout of the editor to add merge possibility to color options
488 Fix a copy/paste error in a comment
490 Add default color for merge color representation in the editor canvas.
491 * src/label-barcode.c:
492 * src/object-editor-bc-page.c:
493 * src/view-barcode.c:
494 Add merge color support for barcode color.
497 Add merge color support for box border color.
498 * src/label-ellipse.c:
499 * src/view-ellipse.c:
500 Add merge color support for ellipse border color.
503 Add merge color support for line color.
504 * src/label-object.c:
505 * src/label-object.h:
506 * src/object-editor.c:
507 * src/object-editor.h:
508 * src/ui-property-bar.c:
511 * src/xml-label-04.c:
512 * src/xml-label-191.c:
513 Add support for merging to other color attribute.
515 * src/object-editor-text-page.c:
517 Add merge color support for text color.
518 * src/object-editor-fill-page.c:
519 Change a blocked handler that didn't match the good widget. Fix the type
520 of some debug message.
521 * src/object-editor-line-page.c:
522 Add merging support to line color option.
523 * src/object-editor-private.h:
524 Add variables for new widget.
526 Modify the draw functions to get merge data if needed.
528 Change the default size of the window in order to see all widget in the
529 "text style tab" of the editor.
531 Modify the parser to record/retreive the field value for objects that need
532 "color" attribute. For box/ellipse/line, keep attribute "line_color" for
533 static color or replace by "line_color_field" for merge data. For
534 text/barcode objects, keep attribute "color" for static color or replace
535 by "color_field" for merge data.
537 2005-01-17 Jim Evins <evins@snaught.com>
539 * src/view.c: (screen_changed_cb):
540 Don't do anything if we don't have a screen.
542 2005-01-06 Jim Evins <evins@snaught.com>
544 * src/view.c: (get_home_scale):
545 Fixed bad call to gtk_widget_has_screen() -- huh?.
547 2005-01-06 Jim Evins <evins@snaught.com>
549 * data/dtd/glabels-2.0.dtd:
550 Added fill_color_field to fill_attrs. Also added xmlns attribute to all
553 2005-01-06 Jim Evins <evins@snaught.com>
555 * data/glade/object-editor.glade:
556 Set entries for fill and data field key dropdowns to NOT editable.
557 * src/view-box.c: (construct_properties_editor):
558 * src/view-ellipse.c: (construct_properties_editor):
559 Update object editor when label's merge property has changed.
560 * src/xml-label.c: (xml_parse_object_ellipse):
561 Completed the merge color support for the ellipse item.
563 2005-01-06 Frederic Ruaudel <grumz@users.sf.net>
565 Add support to merge color for object that have a "Fill color" attribute (Feature
566 Requests item #1008635. If the data is invalid, the color used is transparent
567 (GL_COLOR_NONE). The format for color in merge data file are those accepted
568 by gdk_color_parse() these include name for a color from rgb.txt, such as
569 DarkSlateGray, or a hex specification such as #305050. File format has been
570 changed but backward compatibility is preserved for all format. For box/ellipse,
571 keep attribute "fill_color" for static color or replace by "fill_color_field"
574 * data/glade/object-editor.glade:
575 Modify "Fill" tab to add the merge key combo and convert the labels into
579 Add "glColorNode" structure and associated functions to manage it. This
580 structure is equivalent for color than the "glTextNode". It holds the color
582 * src/label-object.h:
583 * src/label-object.c:
585 * src/label-ellipse.c:
586 * src/ui-property-bar.c:
590 * src/view-ellipse.c:
591 * src/xml-label-04.c:
592 * src/xml-label-191.c:
593 Change functions of objects that have a "fill color" attribute to use the
594 new "glColorNode" structure. Use barcode code as example.
596 Add the color.[ch] file to glabels_batch binary that now need support for
598 * src/object-editor.h:
599 * src/object-editor.c:
600 * src/object-editor-fill-page.c:
601 Manage the new widget of the editor's "Fill" tab : key combo and radio button
602 to choose between static color or merge key. Use barcode code as example.
603 * src/object-editor-private.h:
604 Add new widget in the "_glObjectEditorPrivate" structure.
606 Modify the draw functions to get merge data if needed.
608 Modify the parser to record/retreive the field value for objects that need
609 "Fill color" attribute. For box/ellipse, put attribute "fill_color" for static
610 color or "fill_color_field" for merge data.
612 2005-01-04 Jim Evins <evins@snaught.com>
615 * data/templates/avery-iso-templates.xml:
616 * data/templates/misc-iso-templates.xml:
617 * data/templates/misc-us-templates.xml:
618 Added templates, submitted by Larry Harriman, Juan Carlos Valero, and
621 2004-11-26 Jim Evins <evins@snaught.com>
625 Updated french translations provided by Florent Morel <florent@taket.org>.
626 * src/view-barcode.c:
628 * src/view-ellipse.c:
632 Added '#include <config.h>' -- HAVE_*GETTEXT macros were not defined and
633 thus _() strings were not being translated.
635 2004-11-14 Jim Evins <evins@snaught.com>
638 * src/debug.c: (gl_debug_init), (gl_debug):
639 Borrowed from gedit: use environmental variables to select debug
642 Removed unused include of debug.h.
643 * src/glabels.c: (main):
644 Added call to gl_debug_init(), and removed debug clutter from command line
646 * src/glabels-batch.c: (main):
647 Added call to gl_debug_init().
649 2004-11-13 Jim Evins <evins@snaught.com>
651 Drawing and property toolbars were being initialized with the "icons and text"
652 look in Fedora Core 3. Even though none of the buttons had any text attached to
653 them, the buttons were being sized as if they were. This led to less real estate
654 for the property editor, leading to Bug #1064630. The
656 * data/ui/glabels-ui.xml:
657 Added explicit "look" property to both drawing and property toolbars.
658 * src/prefs-model.c: (gl_prefs_model_save_settings),
659 (gl_prefs_model_load_settings):
661 Removed drawing_toolbar_button_style configuration parameter.
662 * src/ui.c: (view_menu_item_toggled_cb),
663 (set_app_drawing_toolbar_style):
664 Do not attempt to adjust look property of the drawing toolbar.
666 2004-10-28 Jim Evins <evins@snaught.com>
668 * data/pixmaps/glabels-about-logo.png:
671 2004-10-28 Jim Evins <evins@snaught.com>
673 * data/man/glabels.1:
674 * src/glabels-batch.c: (main):
676 * src/print.c: (gl_print_batch):
678 Added option to glabels-batch to select the first label to begin
681 2004-09-26 Jim Evins <evins@snaught.com>
683 * data/desktop/glabels.desktop.in:
684 Point to app icon, "glabels.png"
685 * data/mime/glabels.keys.in:
686 Point at mime icon, "glabels-application-x-glabels.png"
687 * data/pixmaps/Makefile.am:
688 Added glabels_app_icondir. Renamed icons.
689 * data/pixmaps/glabels.png:
690 New cleaned up app icon. Deleted glabels-icon.png.
691 * data/pixmaps/glabels-application-x-glabels.png:
693 * data/pixmaps/glabels-splash.png:
694 Renamed glabels-logo to glabels-splash to be more correct about role.
696 * src/template-designer.c:
697 Point at app icon, "glabels.png"
699 Point at renamed splash image, "glabels-splash.png"
701 2004-08-22 Jim Evins <evins@snaught.com>
704 * src/glabels-batch.c: (main):
705 Applied patch with minor mods to allow selecting merge source and
706 crop-marks on glabels-batch's command line. Original patch provided by
707 José Dapena Paz <jdapena@igalia.com>.
709 2004-08-15 Jim Evins <evins@snaught.com>
711 * data/desktop/glabels.desktop.in:
712 - Added encoding line
713 - Removed period from comment
714 - Fixed Terminal line, changed "0" to "false"
715 - Added semicolen to Categories line
717 - Made sure desktop.in comment string above still translated properly
719 2004-08-14 Jim Evins <evins@snaught.com>
721 * libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
722 * libglabels/xml-template.c: (gl_xml_template_parse_template_node):
723 * src/xml-label-191.c: (xml191_parse_sheet):
724 Fixed improper freeing of gettext strings. Merged from 2.0.1.
726 Reconciled libglabels versioning with 2.0.1.
729 2004-08-14 Jim Evins <evins@snaught.com>
732 Updated version to 2.1cvs.
734 2004-08-14 Jim Evins <evins@snaught.com>
737 Updated 2.0.x translation by Takeshi AIHANA <aihana@gnome.gr.jp>.
739 2004-08-14 Jim Evins <evins@snaught.com>
741 Fixes for Bug #1008181.
743 * src/bc.c: (gl_barcode_default_digits):
744 Make a format of zero digits, harmless.
745 * src/xml-label.c: (xml_parse_object_barcode):
746 Set default value of the format property of barcode objects to 10, not
747 zero. This will prevent crashes when reading pre 2.0.x files.
749 2004-08-09 Jim Evins <evins@snaught.com>
753 * help/C/glabels-C.omf:
754 * help/C/glabels.xml:
755 Brought documentation up-to-date for 2.0.0 release.
757 2004-08-09 Jim Evins <evins@snaught.com>
759 These are hopefully the final preparations for 2.0.0.
761 * data/mime/Makefile.am:
762 Include glabels.xml in EXTRA_DIST.
764 - Updated comment style.
765 - Added LIBGLABELS_VERSION_INFO macro, updated Current.
766 - Added package and version info to configuration printout
767 - Update version to 2.0.0
768 * libglabels/Makefile.am:
769 Use the new LIBGLABELS_VERSION_INFO macro.
771 2004-08-09 Jim Evins <evins@snaught.com>
775 Cleanup of required library macros.
777 2004-08-08 Jim Evins <evins@snaught.com>
781 - More specific of what to install in /usr/bin and /usr/lib
782 - Remove built mime registration files from staging directory
784 2004-08-08 Jim Evins <evins@snaught.com>
786 * data/mime/Makefile.am:
787 Fixed typo: key_files should have been keys_files.
789 2004-08-08 Jim Evins <evins@snaught.com>
791 Reorganization of runtime data files. Also added registration of mimetype with
792 new freedesktop.org mime database if available.
795 Moved files to appropriate subdirectories, creating local Makefile.am
796 in each subdirectory.
797 - Moved paper-sizes.xml and *-templates.xml to templates subdirectory.
798 These are now installed at $datadir/glabels/templates.
799 - Moved glabels.1 to man subdirectory.
800 - Moved glabels-2.0.dtd to dtd subdirectory.
801 - Moved glabels.desktop.in to desktop subdirectory.
802 - Moved glabels.keys.in and glabels.mime to mime subdirectory.
804 Moved "./pixmaps" to "./data/pixmaps"
806 Moved src/glabels-ui.xml to data/ui directory. Created Makefile.am.
808 Moved libglade files from src to data/glade. Created Makefile.am.
810 Removed pixmaps from SUBDIRS.
812 - Removed pixmaps from makefiles.
813 - Added makefiles for new subdirs of data.
814 - Added tests for freedesktop.org mime database.
816 - Added tests for freedesktop.org mime database for post install and
817 post un-install actions.
818 * libglabels/Makefile.am:
819 Moved system template files to $(datadir)/glabels/templates.
820 * libglabels/libglabels-private.h:
821 Moved system template files to $(datadir)/glabels/templates.
823 - Accounted for movement of ui and libglade files.
824 - Added missing .in files.
825 - Reorganized by directory.
827 Accounted for movement of ui and libglade files.
828 * data/mime/glabels.xml.in:
829 New file for registering with freedesktop.org mime database.
831 2004-08-07 Jim Evins <evins@snaught.com>
833 * src/recent-files/*:
834 Re-synced to latest libegg/recent-files.
836 2004-08-07 Jim Evins <evins@snaught.com>
841 Renamed "./doc" directory to "./help" which contains user documentation,
842 to be more consistent with other GNOME applications.
845 2004-07-26 Jim Evins <evins@snaught.com>
847 * src/merge-properties-dialog.c: (gl_merge_properties_dialog_init):
848 Corrected button order of merge properties dialog.
850 2004-07-18 Jim Evins <evins@snaught.com>
852 * data/glabels-2.0.dtd:
853 * src/bc.c: (gl_barcode_default_digits), (gl_barcode_can_freeform),
854 (gl_barcode_get_prefered_n):
856 * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
857 (gl_label_barcode_get_props), (get_size):
858 * src/label-barcode.h:
859 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page),
860 (style_changed_cb), (gl_object_editor_set_bc_style),
861 (gl_object_editor_get_bc_style):
862 * src/object-editor-data-page.c: (data_radio_toggled_cb),
863 (gl_object_editor_set_data), (gl_object_editor_get_data):
864 * src/object-editor-private.h:
865 * src/object-editor.c: (gl_object_editor_set_key_names):
866 * src/object-editor.glade:
867 * src/object-editor.h:
868 * src/print.c: (draw_barcode_object):
869 * src/view-barcode.c: (update_object_from_editor_cb),
870 (update_editor_from_object_cb),
871 (gl_view_barcode_create_event_handler), (draw_barcode):
872 * src/xml-label-04.c: (xml04_parse_barcode_props):
873 * src/xml-label-191.c: (xml191_parse_barcode_props):
874 * src/xml-label.c: (xml_parse_object_barcode),
875 (xml_create_object_barcode):
876 Added "format" attribute to barcode objects. This attribute is used
877 to properly format freeform barcodes barcodes prior to merge data is
878 applied, so that barcodes can be accurately layed out. This addresses
879 remaining issues of feature request #824787. Also added an example of
880 the format in the object editor.
882 2004-07-12 Jim Evins <evins@snaught.com>
884 Various code cleanups.
886 * src/label-barcode.c:
887 Removed unneeded include of gnome-glyphlist.h.
889 * src/label-text.c: (get_size):
890 Fixed memory leak: unref glyphlists when done with them.
892 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page):
893 * src/object-editor-data-page.c:
894 (gl_object_editor_prepare_data_page):
895 * src/object-editor-image-page.c:
896 (gl_object_editor_prepare_image_page):
897 * src/object-editor-line-page.c:
898 (gl_object_editor_prepare_line_page):
899 * src/object-editor-lsize-page.c:
900 (gl_object_editor_prepare_lsize_page):
901 * src/object-editor-position-page.c:
902 (gl_object_editor_prepare_position_page):
903 * src/object-editor-size-page.c:
904 (gl_object_editor_prepare_size_page):
905 * src/object-editor-text-page.c:
906 (gl_object_editor_prepare_text_page):
907 Removed unneeded size groups, originally intended to keep widgets aligned.
908 Now use tables to lay these out in object-editor.glade.
910 * src/print.c: (draw_text_object):
911 Fixed memory leak: unref glyphlists when done with them.
913 * src/view-barcode.c: (draw_barcode):
914 Fixed memory leak: unref glyphlists when done with them.
916 * src/view-text.c: (update_object_from_editor_cb), (draw_hacktext):
917 - Removed unneeded cast of gl_object_editor_get_text_line_spacing()s
919 - Fixed memory leak: unref glyphlists when done with them.
921 2004-07-11 Jim Evins <evins@snaught.com>
923 * data/glabels-2.0.dtd:
924 * src/label-text.c: (gl_label_text_instance_init), (copy),
925 (gl_label_text_set_auto_shrink), (gl_label_text_get_auto_shrink):
927 * src/object-editor-private.h:
928 * src/object-editor-text-page.c:
929 (gl_object_editor_prepare_text_page),
930 (gl_object_editor_set_text_auto_shrink),
931 (gl_object_editor_get_text_auto_shrink):
932 * src/object-editor.c: (gl_object_editor_set_key_names):
933 * src/object-editor.glade:
934 * src/object-editor.h:
935 * src/print.c: (draw_text_object):
936 * src/view-text.c: (update_object_from_editor_cb),
937 (update_editor_from_object_cb):
938 * src/xml-label.c: (xml_parse_object_text),
939 (xml_create_object_text):
940 Added option to allow document merge to auto shrink text size to fit
941 within the text box. The code in print.c that actually shrinks the
942 text is loosely based on a patch submitted by Mark Harrison
943 <mark.harrison@velocitynet.com.au>. This addresses feature request
946 2004-07-11 Jim Evins <evins@snaught.com>
948 * data/glabels-2.0.dtd:
949 * libglabels/template.c: (gl_template_rect_label_type_new),
950 (gl_template_round_label_type_new),
951 (gl_template_cd_label_type_new), (gl_template_label_type_dup),
952 (template_full_page):
953 * libglabels/template.h:
954 * libglabels/xml-template.c: (xml_parse_label_rectangle_node),
955 (xml_create_label_node):
956 * pixmaps/ex-rect-size.png:
957 * src/print.c: (clip_to_outline), (clip_punchouts):
958 * src/template-designer.c: (construct_rect_size_page),
959 (rect_size_page_prepare_cb), (layout_page_prepare_cb),
961 * src/template-designer.glade:
962 * src/xml-label-191.c: (xml191_parse_label):
963 Modifications to allow separate horizontal (x_waste) and vertical (y_waste)
964 properties for rectangular labels. Templates remain backwards compatible,
965 but this breaks the libglabels API (I don't know of anyone outside of
966 glabels using libglabels at this time -- what can I say, the program is
967 is still "unstable"). This addresses the suggestion in Feature Request
970 2004-07-05 Jim Evins <evins@snaught.com>
971 * src/print.c: (print_crop_marks), (draw_outline):
972 Changed crop marks and label outlines to black, instead of 25% gray.
973 This addresses debian Bug #257460.
975 2004-07-05 Jim Evins <evins@snaught.com>
977 * src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
978 * src/object-editor-line-page.c: (gl_object_editor_set_line_color):
979 Preserve "is_default" of fill and line color_combos when creating from
982 2004-07-02 Jim Evins <evins@snaught.com>
985 Created man page. Based on page submitted by Matthew J. Lockner, however
986 it has been severely edited.
988 * data/avery-other-templates.xml
989 * data/misc-other-templates.xml:
990 Started new files for predefined templates with non-standard sheet sizes.
991 These have been initially populated with the Avery 06141 and
992 OfficeMax #86112, both provided by Matthew J. Lockner.
995 Install above manpage and template files.
998 Make sure we install man pages.
1000 * src/glabels-batch.c:
1001 Changed short form of help option to '-?' to be consistent with glabels.
1004 Added acknowledgement for above labels.
1006 2004-07-02 Jim Evins <evins@snaught.com>
1008 * src/glabels.c: (main), (save_session_cb):
1009 - Now include libbonoboui.h, recent.h, and file.h to provide missing
1011 - save_session_cb() now returns gboolean.
1012 - Minor formatting changes.
1016 - Now include file.h to provide missing prototype.
1017 - gl_window_get_type() now returns GType, not guint. I believe this may
1018 ultimately be cause of the segfault reported in Bug #982287, since
1019 GType is actually a gulong, which may not be compatible on other
1020 architectures (64bit) -- I cannot personally test this at this time.
1021 I was sloppy in several other xxx_get_type() functions which also
1022 returned guint -- see next group of files:
1024 * src/window.c: (gl_window_get_type):
1025 * src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
1026 * src/canvas-hacktext.h:
1027 * src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
1028 (gl_hig_category_get_type), (gl_hig_vbox_get_type),
1029 (gl_hig_hbox_get_type):
1031 * src/label-barcode.c: (gl_label_barcode_get_type):
1032 * src/label-barcode.h:
1033 * src/label-box.c: (gl_label_box_get_type):
1035 * src/label-ellipse.c: (gl_label_ellipse_get_type):
1036 * src/label-ellipse.h:
1037 * src/label-image.c: (gl_label_image_get_type):
1038 * src/label-image.h:
1039 * src/label-line.c: (gl_label_line_get_type):
1041 * src/label-object.c: (gl_label_object_get_type):
1042 * src/label-object.h:
1043 * src/label-text.c: (gl_label_text_get_type):
1045 * src/label.c: (gl_label_get_type):
1047 * src/merge-properties-dialog.c:
1048 (gl_merge_properties_dialog_get_type):
1049 * src/merge-properties-dialog.h:
1050 * src/merge-text.c: (gl_merge_text_get_type):
1052 * src/merge.c: (gl_merge_get_type):
1054 * src/object-editor.c: (gl_object_editor_get_type):
1055 * src/prefs-dialog.c: (gl_prefs_dialog_get_type):
1056 * src/prefs-dialog.h:
1057 * src/prefs-model.c: (gl_prefs_model_get_type):
1058 * src/prefs-model.h:
1059 * src/print-dialog.c: (gl_print_dialog_get_type):
1060 * src/print-dialog.h:
1061 * src/template-designer.c: (gl_template_designer_get_type):
1062 * src/template-designer.h:
1063 * src/ui-property-bar.c: (gl_ui_property_bar_get_type):
1064 * src/ui-property-bar.h:
1065 * src/ui-sidebar.c: (gl_ui_sidebar_get_type):
1067 * src/view-barcode.c: (gl_view_barcode_get_type):
1068 * src/view-barcode.h:
1069 * src/view-box.c: (gl_view_box_get_type):
1071 * src/view-ellipse.c: (gl_view_ellipse_get_type):
1072 * src/view-ellipse.h:
1073 * src/view-highlight.c: (gl_view_highlight_get_type):
1074 * src/view-highlight.h:
1075 * src/view-image.c: (gl_view_image_get_type):
1077 * src/view-line.c: (gl_view_line_get_type):
1079 * src/view-object.c: (gl_view_object_get_type):
1080 * src/view-object.h:
1081 * src/view-text.c: (gl_view_text_get_type):
1083 * src/view.c: (gl_view_get_type):
1085 * src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
1086 * src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
1087 * src/wdgt-image-select.h:
1088 * src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
1089 * src/wdgt-media-select.h:
1090 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
1091 * src/wdgt-mini-preview.h:
1092 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
1093 * src/wdgt-print-copies.h:
1094 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
1095 * src/wdgt-print-merge.h:
1096 * src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
1097 * src/wdgt-rotate-label.h:
1098 - Made sure all xxx_get_type functions returned GType, not guint. This
1099 was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
1100 ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
1101 wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
1102 wdt-print-merge.[ch], and wdgt-rotate-label.[ch]. See separate
1103 window.[ch] details above for more info.
1104 - Reconciled various coding style differences in all xxx_get_type()
1106 * All prototypes include G_GNUC_CONST.
1107 * All prototypes specify the return value as GType, not GtkType
1109 * Info structures are all declared as "static const."
1110 * Generalized the names of type and info variables.
1111 * Miscelaneous formatting.
1113 2004-06-08 Jim Evins <evins@snaught.com>
1119 Don't touch compression of original file -- still defaults to 9 for
1120 new files. Original patch provided by Javier Donaire Segarra
1121 (#912252 in patch tracker).
1123 2004-05-05 Jim Evins <evins@snaught.com>
1125 * data/glabels-2.0.dtd:
1126 Broke DTD previously when adding new barcode types that contain a
1127 plus sign (+). Simply changed the BC_STYLE_TYPE entity to "CDATA"
1128 to avoid the problem.
1129 * data/avery-iso-templates.xml:
1130 * data/zweckform-iso-templates.xml:
1132 Added templates for Avery 7165, Zweckform 3688, 4732, and 6021. Templates
1133 provided by Frank Altpeter.
1134 * libglabels/xml-template.c: (xml_create_label_node):
1135 Reordered markup and layout sub-nodes so that resulting templates will
1136 validate against DTD.
1138 2004-03-13 Jim Evins <evins@snaught.com>
1140 * src/object-editor-size-page.c: (gl_object_editor_prepare_size_page):
1141 Changed spin callback signals from "value-changed" back to "changed."
1142 This was accidentally introduced in a previous revision, and can cause
1143 size changes just by selecting the size tab.
1145 2004-03-06 Jim Evins <evins@snaught.com>
1147 * src/view.c: (draw_grid_layer):
1148 For round labels (round and cd) adjust grid so that it lines up with
1149 center of label. Also, no longer draw box around label in the grid layer,
1150 it is hidden by he fg layer anyway. Feature suggested by
1151 nemolivier@free.fr. Although the grid is aligned with the center of the
1152 label, the coordinate system is still relative to the upper left corner
1153 of the rectangle containing the label.
1155 2004-02-25 Jim Evins <evins@snaught.com>
1158 Changed version to 2.0pre1cvs
1160 * libglabels/xml-template.c: (gl_xml_template_parse_templates_doc):
1161 Removed extra xmlFreeDoc() calls upon error. Also print the doc->URL
1162 instead of doc->name fields when errors encountered.
1164 2004-02-21 Jim Evins <evins@snaught.com>
1166 * data/avery-iso-templates.xml:
1167 Added aliases for Avery 8651. Patch provided by Wayne Schuller.
1170 Added libglabels library and include file to installed files.
1173 Final prep for 1.93.3.
1175 2004-02-20 Jim Evins <evins@snaught.com>
1177 * src/glabels-batch.c: (main):
1178 Changed key for setting output filename to GNOME_PRINT_KEY_OUTPUT_FILENAME
1179 as suggested by Javier Donaire Segarra. This addresses bug #901063.
1181 2004-02-16 Jim Evins <evins@snaught.com>
1184 If gtk+ >= 2.3.2 then define HAVE_FILE_CHOOSER.
1187 Added HAVE_FILE_CHOOSER to INCLUDES.
1189 * src/file.c: (gl_file_open), (open_response), (gl_file_open_real),
1190 (gl_file_save_as), (save_as_response):
1191 Ported to use GtkFileChooserDialog if HAVE_FILE_CHOOSER is defined.
1193 2004-02-16 Jim Evins <evins@snaught.com>
1195 * src/xml-label-04.c: (xml04_parse_image_props):
1196 * src/xml-label-191.c: (xml191_parse_image_props):
1197 * src/xml-label.c: (xml_parse_object_image):
1198 Delay setting image size until after image has been applied to new
1201 2004-02-15 Jim Evins <evins@snaught.com>
1203 * src/label-barcode.c: (gl_label_barcode_set_data),
1204 (gl_label_barcode_set_props):
1205 Don't emit "changed" signal, if no change actually made for these
1206 methods. Reduces number of unnecessary redraws of barcodes.
1208 * src/label-object.h:
1209 * src/label-object.c: (gl_label_object_set_position),
1210 (gl_label_object_set_position_relative), (set_size),
1211 (gl_label_object_set_size),
1212 (gl_label_object_set_size_honor_aspect):
1213 Don't emit "changed" signal, if no change actually made for these
1216 2004-02-15 Jim Evins <evins@snaught.com>
1218 * data/glabels-2.0.dtd:
1219 Added specific subtypes for various barcode types.
1222 * src/bc.c: (id_to_index), (name_to_index), (gl_barcode_new),
1223 (gl_barcode_get_styles_list), (gl_barcode_default_digits),
1224 (gl_barcode_can_text), (gl_barcode_text_optional),
1225 (gl_barcode_can_csum), (gl_barcode_csum_optional),
1226 (gl_barcode_id_to_name), (gl_barcode_name_to_id):
1227 Changed API to use a string id, rather than a fixed enumeration. Id and
1228 name are separate strings. Added entries to backend table for specific
1229 subtypes for various barcode types.
1232 * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
1234 Modified to conform to above API. Now more stringent with data length
1235 for various subtypes.
1237 * src/bc-gnubarcode.h:
1238 * src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new),
1239 (is_length_valid), (is_length1_valid), (is_length2_valid):
1240 Modified to conform to above API. Now more stringent with data length
1241 for various subtypes.
1243 * src/label-barcode.h:
1244 * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
1245 (gl_label_barcode_get_props), (get_size):
1246 Modified to use above API for storing barcode type.
1248 * src/object-editor.h:
1249 * src/object-editor-bc-page.c: (style_changed_cb),
1250 (gl_object_editor_set_bc_style), (gl_object_editor_get_bc_style):
1251 Modified to use above API for storing barcode type.
1253 * src/object-editor-size-page.c:
1254 (gl_object_editor_prepare_size_page), (aspect_toggle_cb),
1255 (w_spin_cb), (h_spin_cb), (size_reset_cb):
1256 Added debug markers.
1258 * src/object-editor.glade:
1259 Made barcode style combo's text entry non-editable.
1261 * src/print.c: (draw_barcode_object):
1262 Modified to use above API for barcode type.
1264 * src/view-barcode.c: (update_object_from_editor_cb),
1265 (update_editor_from_object_cb),
1266 (gl_view_barcode_create_event_handler), (draw_barcode):
1267 Modified to use above API for barcode type.
1269 * src/xml-label-04.c: (xml04_parse_barcode_props):
1270 * src/xml-label-191.c: (xml191_parse_barcode_props):
1271 * src/xml-label.c: (xml_parse_object_barcode),
1272 (xml_create_object_barcode):
1273 Modified to use above API for barcode type.
1275 2004-02-07 Jim Evins <evins@snaught.com>
1277 * src/stock-pixmaps/Makefile.am:
1278 * src/stock-pixmaps/stock_hchain_24.png:
1279 * src/stock-pixmaps/stock_hchain_broken_24.png:
1280 * src/stock-pixmaps/stock_vchain_24.png:
1281 * src/stock-pixmaps/stock_vchain_broken_24.png:
1282 Added chain pixmaps borrowed from the gimp's default theme.
1285 * src/stock.c: (gl_stock_init), (add_button_icon):
1286 Added above pixmaps to stock icon sets. Created add_button_icon() to
1287 add these pixmaps sized as GTK_ICON_SIZE_BUTTON.
1289 * src/wdgt-chain-button.h
1290 * src/wdgt-chain-button.c
1293 Added this Modified version of gimpchainbutton widget, borrowed from
1297 Added acknowledgements of the above borrowing from the gimp.
1299 * src/object-editor-size-page.c: (aspect_toggle_cb), (w_spin_cb),
1301 * src/object-editor.c: (gl_object_editor_construct_chain_button):
1302 * src/object-editor.glade:
1303 Replaced the keep aspect ratio check box with the above chain-button
1306 * src/text-node.c: (gl_text_node_equal):
1308 Added function gl_text_node_equal() to compare text_nodes.
1310 * src/label-image.c: (gl_label_image_set_filename):
1311 Replaced incomplete text_node comparison code with invocation of
1312 gl_text_node_equal. This fixed the problem of not being able to
1313 resize an image using the object_editor if the aspect ratio is not
1316 2004-02-04 Jim Evins <evins@snaught.com>
1318 * src/object-editor-image-page.c:
1319 (gl_object_editor_prepare_image_page):
1320 Track "changed" signal of pixmap entry's GtkEntry rather than its
1321 "activate" signal -- this catches all changes to the entry rather than
1322 just changes resulting from a browse, so one can easily pull previous
1323 entries from the history. (This change is marked below on 2004-02-03,
1324 but somehow never got checked in.)
1326 * src/view-highlight.c: (sl_resize_event_handler),
1327 (sr_resize_event_handler), (st_resize_event_handler),
1328 (sb_resize_event_handler):
1329 Side resize handles will now confirm the actual resize that the object
1330 accepted before adjusting position parameters. Previously some interesting
1331 things happened when resizing a barcode to its minimum size.
1333 2004-02-03 Jim Evins <evins@snaught.com>
1335 * src/object-editor-image-page.c:
1336 (gl_object_editor_prepare_image_page):
1337 Track "changed" signal of pixmap entry's GtkEntry rather than its
1338 "activate" signal -- this catches all changes to the entry rather than
1339 just changes resulting from a browse, so one can easily pull previous
1340 entries from the history.
1342 * src/view-highlight.c: (tl_resize_event_handler),
1343 (tr_resize_event_handler), (bl_resize_event_handler),
1344 (br_resize_event_handler):
1345 Allow control key to be dropped while dragging a corner resize handle
1346 without losing the aspect ratio lock.
1348 2004-02-02 Jim Evins <evins@snaught.com>
1350 * src/label-image.c: (gl_label_image_set_filename):
1351 When setting a new filename adjust size such that the aspect ratio of
1352 the image is preserved using the current size as a bounding box.
1354 * src/view-image.c: (update_object_from_editor_cb):
1355 When updating object from editor, feed back possible size changes to
1356 editor as a result of a possible change in image.
1358 * src/object-editor-size-page.c: (size_reset_cb):
1359 Fixed typo when blocking spin handlers. If the base size is larger than
1360 the max size, treat max size as a bounding box while keeping aspect
1364 2004-02-02 Jim Evins <evins@snaught.com>
1366 * src/label-object.h:
1367 * src/label-object.c: (gl_label_object_set_size),
1368 (gl_label_object_set_size_honor_aspect):
1369 Added gl_label_object_set_size_honor_aspect() which will maintain the
1370 current aspect ratio by modifying the supplied w or h apropriately.
1372 * src/view-highlight.c: (tl_resize_event_handler),
1373 (tr_resize_event_handler), (bl_resize_event_handler),
1374 (br_resize_event_handler):
1375 Corner handles will now maintain the current aspect ratio if the
1376 control key is pressed while resizing. This addresses feature
1380 2004-01-31 Jim Evins <evins@snaught.com>
1383 * data/avery-us-templates.xml:
1384 Added entries for "LSK-3," "LSK-5," and "LSK-8." Submitted by JBadger.
1386 * libglabels/template.c: (read_template_files_from_dir):
1387 Corrected problem with testing for extensions.
1389 * src/object-editor.glade:
1390 Corrected grouping of radio buttons in barcode data page.
1392 * src/print.c: (draw_barcode_object):
1393 * src/view-barcode.c: (draw_barcode):
1394 Corrected problem with calculation of y_offset for locating characters.
1396 2004-01-24 Jim Evins <evins@snaught.com>
1399 * data/avery-us-templates.xml:
1400 Added Avery 5824, submitted by Fred Bacon.
1402 2004-01-20 Jim Evins <evins@snaught.com>
1404 Catching up on a couple of backlogged user template submissions.
1406 * data/avery-iso-templates.xml:
1407 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
1408 Suggested by Linas Jakucionis.
1410 * data/zweckform-iso-templates.xml:
1411 Added Zweckform 4760, submitted by Thomas Vill.
1414 Updated to reflect above submissions.
1416 2004-01-06 Jim Evins <evins@snaught.com>
1418 Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
1419 xml.[ch] into a separate library called libglabels, to facilitate third
1420 party use of glabels template files. This was suggested by Wayne Schuller.
1421 Once split-out, some modifications to the structures and functions to
1422 make a cleaner more useful API, hopefully. Rather extensive changes have
1423 propogated to other modules.
1431 * src/xml-template.h:
1432 * src/xml-template.c:
1435 These files have been moved to libglabels/. API cleanup performed.
1437 * libglabels/libglabels.h:
1438 * libglabels/libglabels-private.h:
1439 * libglabels/Makefile.am:
1440 These files have been added to finish out libglabels.
1447 Modified to reflect new sets of files in src/ and libglabels/.
1449 * COPYING.LIBGLABELS:
1451 Added copy of the LGPL for libglabels, and a copy the GFDL for
1454 * src/glabels-batch.c:
1456 * src/label.c: (gl_label_finalize), (gl_label_set_template),
1457 (gl_label_get_size):
1459 * src/prefs-model.c: (gl_prefs_model_load_settings):
1460 * src/print-dialog.c:
1461 * src/print.c: (gl_print_simple), (gl_print_merge_collated),
1462 (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
1463 (print_crop_marks), (print_label), (draw_outline),
1464 (clip_to_outline), (clip_punchouts):
1465 * src/template-designer.c: (construct_pg_size_page),
1466 (pg_size_page_changed_cb), (layout_page_changed_cb),
1467 (print_test_cb), (build_template):
1468 * src/util.c: (gl_util_fraction):
1470 * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
1471 (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
1472 (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
1473 (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
1474 (draw_markup_margin_round), (draw_markup_margin_cd),
1475 (draw_markup_margin_cd_bc), (draw_markup_line),
1476 (draw_markup_circle), (gl_view_copy):
1477 * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
1478 (page_size_entry_changed_cb), (details_update), (get_layout_desc),
1479 (get_label_size_desc):
1480 * src/wdgt-mini-preview.c:
1481 (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
1483 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
1484 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
1485 * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
1486 (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
1487 * src/wdgt-rotate-label.h:
1488 * src/xml-label-04.c: (xml04_parse_media_description):
1489 * src/xml-label-191.c: (gl_xml_label_191_parse),
1490 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
1491 (xml191_parse_markup), (xml191_parse_alias):
1492 * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
1494 Various changes to accomodate new libglabels API.
1496 2004-01-03 Jim Evins <evins@snaught.com>
1501 2004-01-03 Jim Evins <evins@snaught.com>
1504 Added acknowledgement of contributions by Wayne Schuller.
1506 * src/commands.c: (gl_cmd_file_print):
1507 Create extra reference to print dialog, so that it can be properly re-used.
1509 * src/mygal/mygal-combo-box.h:
1510 * src/mygal/mygal-combo-box.c:
1511 (mygal_combo_box_popup_hide_unconditional),
1512 (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
1513 (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
1514 (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
1515 (mygal_combo_box_set_tearable):
1516 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
1517 complete the rename of this widget to prevent namespace collisions
1520 * src/prefs-dialog.glade:
1521 Fixed alignment of Fill/Color widgets.
1523 2004-01-03 Jim Evins <evins@snaught.com>
1525 * data/avery-iso-templates.xml:
1526 Added user submitted templates.
1527 Avery 8435A & 8435B, submitted by Ludger Solbach.
1529 * doc/C/glabels.xml:
1530 Added minimal documentation, noting the new template designer.
1532 2004-01-03 Jim Evins <evins@snaught.com>
1534 * pixmaps/ex-rect-size.png:
1535 * pixmaps/ex-round-size.png:
1536 * pixmaps/ex-cd-size.png:
1537 * pixmaps/Makefile.am:
1538 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
1539 files to be used as illustrations/examples in the template-designer.
1541 * src/template-designer.c: (construct_rect_size_page),
1542 (construct_round_size_page), (construct_cd_size_page),
1543 (construct_nlayouts_page), (rect_size_page_prepare_cb),
1544 (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
1545 (layout_page_prepare_cb), (build_template):
1546 * src/template-designer.glade:
1547 Added illustrations for rectangle, round, and cd label size pages.
1548 Added margin spinboxes to these pages, and now add a margin markup
1549 to the constructed template. Added realistic default values for
1550 some of the size spinboxes. Cleaned up the code for setting spinbox
1551 ranges on the layouts page.
1553 2004-01-02 Jim Evins <evins@snaught.com>
1555 * src/object-editor-size-page.c: (h_spin_cb):
1556 Fixed cut-n-paste error in h_spin_cb that loaded h from
1557 the wrong spinbutton.
1559 * src/object-editor.h:
1560 * src/object-editor.c: (gl_object_editor_class_init),
1561 (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
1562 * src/object-editor-private.h:
1563 * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
1565 Added "size_changed" signal.
1567 * src/view-text.c: (construct_properties_editor),
1568 (update_object_from_editor_cb),
1569 (update_object_from_editor_size_cb):
1570 Track size changes from object editor separately from other
1571 properties. This is so the default size (0,0) of a text
1572 object is not modified unintentionally.
1574 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
1576 Added feature: line spacing - allows you to comfortably space a text box to
1577 fit a label perfectly.
1579 * data/glabels-2.0.dtd:
1580 * src/label-object.c: (gl_label_object_set_text_line_spacing),
1581 (gl_label_object_get_text_alignment),
1582 (gl_label_object_get_text_line_spacing):
1583 * src/label-object.h:
1584 * src/label-text.c: (gl_label_text_class_init),
1585 (gl_label_text_instance_init), (copy), (get_size),
1586 (set_text_line_spacing), (get_text_alignment),
1587 (get_text_line_spacing):
1588 * src/object-editor-private.h:
1589 * src/object-editor-text-page.c:
1590 (gl_object_editor_prepare_text_page),
1591 (gl_object_editor_set_text_line_spacing),
1592 (gl_object_editor_get_text_line_spacing):
1593 * src/object-editor.glade:
1594 * src/object-editor.h:
1595 * src/prefs-dialog.c: (construct_object_page),
1596 (update_object_page_from_prefs), (update_prefs_from_object_page):
1597 * src/prefs-dialog.glade:
1598 * src/prefs-model.c: (gl_prefs_model_save_settings),
1599 (gl_prefs_model_load_settings), (get_float):
1600 * src/prefs-model.h:
1601 * src/print.c: (draw_text_object):
1603 * src/view-text.c: (update_object_from_editor_cb),
1604 (update_editor_from_object_cb),
1605 (gl_view_text_create_event_handler), (draw_hacktext):
1606 * src/view.c: (gl_view_construct),
1607 (gl_view_set_selection_text_line_spacing),
1608 (gl_view_set_default_text_line_spacing),
1609 (gl_view_get_default_text_line_spacing):
1611 * src/xml-label.c: (xml_parse_toplevel_span),
1612 (xml_create_toplevel_span):
1614 2003-12-30 Jim Evins <evins@snaught.com>
1616 * src/template-designer.c:
1617 * src/template-designer.h:
1618 * src/template-designer.glade:
1619 New template designer assistant.
1623 Added entries for src/template-designer.* files.
1625 * pixmaps/ex-1layout.png
1626 * pixmaps/ex-2layouts.png
1627 * pixmaps/Makefile.am:
1628 Added the new image files ex-*.png used as illustrations in the
1629 template designer assistant.
1631 * src/print-dialog.h:
1632 * src/print-dialog.c: (gl_print_dialog_finalize),
1633 (gl_print_dialog_new), (gl_print_dialog_construct),
1634 (gl_print_dialog_force_outline_flag):
1635 Changed first argument of gl_print_dialog_new() from glView to glLabel,
1636 to support printing from the template designer assistant which does not
1637 have a full-fledged view. Nothing else from the view object was being
1638 used by the dialog anyway.
1640 Added the gl_print_dialog_force_outline_flag() method, for better
1641 integration with the template designer assistant.
1645 * src/commands.c: (gl_cmd_file_template_designer),
1646 (gl_cmd_file_print):
1647 Modified print command to provide label instead of view to dialog.
1648 Added the gl_cmd_file_template_designer() command to invoke the
1649 template designer assistant.
1652 * src/glabels-ui.xml:
1653 Added support for template designer assistant.
1655 * src/wdgt-mini-preview.h:
1656 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
1657 (gl_wdgt_mini_preview_set_bg_color):
1658 Preview is now centered in canvas. Added
1659 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
1660 assistant to match the background color with its own.
1662 * src/print.c: (clip_to_outline):
1663 Fixed really stupid bug when adding waste to clip region of rectangular
1664 labels/cards. Each side of the clip region needs to be extended by
1665 twice the waste margin, as well as negatively offset by the waste
1668 2003-12-28 Jim Evins <evins@snaught.com>
1670 * src/prefs-dialog.c: (update_object_page_from_prefs):
1671 Block intermediary function align_toggle_cb() instead of
1672 update_prefs_from_object_page() for the three alignment
1675 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
1677 * src/file.c: (gl_file_new), (gl_file_properties):
1678 Swap button order and set default for higificatory pleasure.
1680 2003-12-27 Jim Evins <evins@snaught.com>
1682 * barcode-0.98/Makefile.am:
1683 One last time: removed doc/Makefile and po/Makefile.in.in from
1686 2003-12-27 Jim Evins <evins@snaught.com>
1688 * barcode-0.98/Makefile.am:
1689 Removed config.stat entry from EXTRA_DIST files.
1691 * barcode-0.98/Makefile.in:
1694 2003-12-27 Jim Evins <evins@snaught.com>
1697 Updated to work with latest gnome-common package from CVS.
1698 Removed recursive configuration of barcode-0.98.
1705 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
1707 * barcode-0.98/Makefile.in:
1708 * barcode-0.98/configure.in:
1709 * barcode-0.98/Makefile.am:
1710 * barcode-0.98/README.glabels:
1711 Modified to ignore the barcode package's build system, and build
1712 as a part of glabels.
1713 Renamed Makefile.in to Makefile.in.dist.
1714 Renamed configure.in to configure.in.dist.
1715 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
1718 * src/mygal/Makefile.am:
1719 * src/recent-files/Makefile.am:
1720 In order to build against the GNOME 2.5 platform,
1721 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
1723 * src/mygal/Makefile.am:
1724 * src/mygal/mygal-combo-box.c:
1725 * src/mygal/mygal-combo-box.h:
1726 * src/mygal/widget-color-combo.c:
1727 * src/mygal/widget-color-combo.h:
1729 In order to build against the GNOME 2.5 platform,
1730 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
1731 collisions with the real gtk_combo_box widget, now a part of gtk.
1733 2003-12-26 Jim Evins <evins@snaught.com>
1739 Moved local versions of get_home_data_dir() in paper.c and
1740 template.c to util package. Cleaned up formatting in
1744 In gl_template_register() save a copy of the template in
1745 ~/.glabels if the template is not known. Still need to
1746 handle duplicate filename case and duplicate name but
1747 different template case.
1751 Moved local definition of NAME_SPACE macro from xml-label.c
1754 * src/xml-template.c:
1755 * src/xml-template.h:
1756 Added function gl_xml_template_write_template_to_file(), used
1757 in gl_template_register().