1 2005-07-01 Jim Evins <evins@snaught.com>
4 Updated italian translation (Daniele Medri)
6 2005-06-26 Jim Evins <evins@snaught.com>
8 * docs/libglabels/libglabels-decl-list.txt:
9 Somehow never got checked in before.
10 * docs/libglabels/libglabels.types:
11 Removed -- don't need it afterall.
13 2005-06-20 Jim Evins <evins@snaught.com>
16 Final prep for 2.1.1 release.
18 2005-06-20 Jim Evins <evins@snaught.com>
21 Final preps for 2.1.1 release.
22 * docs/libglabels/libglabels.types:
23 Somehow never got checked in before.
25 Bring up-to-date with recent reorg of ui code.
28 2005-06-19 Jim Evins <evins@snaught.com>
30 * src/template-designer.c: (construct_layout_page):
31 Removed attempt to match background color of mini preview widget to
34 2005-06-17 Jim Evins <evins@snaught.com>
36 * help/C/figures/merge-ex2-4.png:
40 2005-06-13 Jim Evins <evins@snaught.com>
42 * help/C/figures/merge-ex1-1.png:
43 * help/C/figures/merge-ex1-2.png:
44 * help/C/figures/merge-ex1-3.png:
45 * help/C/figures/merge-ex1-4.png:
46 * help/C/figures/merge-ex2-1.png:
47 * help/C/figures/merge-ex2-2.png:
48 * help/C/figures/merge-ex2-3.png:
49 * help/C/figures/merge-ex2-4.png:
50 Added figures for document merge tutorial.
52 Added document merge tutorial.
54 2005-05-19 Jim Evins <evins@snaught.com>
56 * data/glade/merge-properties-dialog.glade:
57 Fixed irregular spacing.
58 * src/merge-properties-dialog.c: (gl_merge_properties_dialog_init),
59 (gl_merge_properties_dialog_construct):
60 Set outer padding and remove separator.
62 2005-05-18 Jim Evins <evins@snaught.com>
66 Removed glHigDialog class.
67 * src/file.c: (gl_file_new), (create_new_dialog_widgets),
68 (gl_file_properties), (create_properties_dialog_widgets):
70 * src/prefs-dialog.c: (gl_prefs_dialog_get_type),
71 (gl_prefs_dialog_init), (gl_prefs_dialog_construct):
74 * src/print-dialog.c: (gl_print_dialog_get_type),
75 (gl_print_dialog_init), (gl_print_dialog_construct):
76 Replaced all instances of glHigDialog with GtkDialog.
78 2005-05-17 Jim Evins <evins@snaught.com>
82 Removed HigAlert class since it is obsoleted by the GtkMessageDialog class.
83 * src/file.c: (open_response), (gl_file_open_real), (gl_file_save),
84 (save_as_response), (gl_file_close):
85 Replaced all instances of HigAlert widgets with GtkMessageDialog widgets.
87 2005-05-15 Jim Evins <evins@snaught.com>
97 A little code reformatting -- no functional changes.
99 2005-05-14 Jim Evins <evins@snaught.com>
102 Removed obsolete macros.
104 Added marshalling template to support new view signal: "context_menu_activate."
106 * src/view.c: (gl_view_class_init), (gl_view_construct),
107 (canvas_event_arrow_mode):
108 - Removed hardcoded context menus and added new signal "context_menu_activate"
109 to push this up to the uimanager.
110 - Removed merge properties and print dialogs so that they can be managed with
111 the window by the uimanager.
112 * src/merge-properties-dialog.h:
113 * src/merge-properties-dialog.c: (gl_merge_properties_dialog_new),
114 (gl_merge_properties_dialog_construct):
115 Changed calling convention of gl_merge_properties_dialog_new() to use
116 glLabel and GtkWindow instead of view to make more consistent with other
118 * src/print-dialog.h:
119 * src/print-dialog.c: (gl_print_dialog_new),
120 (gl_print_dialog_construct):
121 Removed last artifact of libbonoboui.
122 * src/ui-commands.c: (gl_ui_cmd_file_print),
123 (gl_ui_cmd_objects_merge_properties), (gl_ui_cmd_help_about):
124 Reconciled style for launching dialogs.
125 * src/ui.c: (gl_ui_new):
126 Added context menus to ui manager.
127 * src/view-object.c: (item_event_arrow_mode):
128 No longer try to select objects with right-click.
130 * src/window.c: (gl_window_init), (gl_window_set_label),
131 (context_menu_activate_cb):
132 Context menus and all dialogs are now managed in a consistent way in window
135 2005-05-11 Jim Evins <evins@snaught.com>
138 * src/window.c: (gl_window_init), (gl_window_destroy):
139 * src/ui.c: (gl_ui_new), (gl_ui_unref), (recent_tooltip_func):
140 * src/ui-commands.c: (gl_ui_cmd_file_open_recent):
141 Moved management of recent_view back from window.c to ui.c -- it just feels
144 2005-05-10 Jim Evins <evins@snaught.com>
147 * src/window.c: (gl_window_init):
149 * src/ui.c: (gl_ui_new), (connect_proxy_cb), (disconnect_proxy_cb),
150 (menu_item_select_cb), (menu_item_deselect_cb):
151 Added GtkStatusbar which displays menu tooltips.
153 2005-05-09 Jim Evins <evins@snaught.com>
155 Replaced libbonoboui with GtkUIManager for creation of basic user interface menus
160 Removed dependencies on libbonoboui.
162 * data/ui/Makefile.am:
163 * data/ui/glabels-ui.xml:
164 Removed data/ui directory.
165 * data/glade/Makefile.am:
166 * data/property-bar.glade:
167 Added glade description of property-bar for new libglade implementation
176 Replaced commands.[ch] and tools.[ch] with the single ui-commands.[ch] module
177 since the distinction between "commands" and "tools" is no longer that clear.
180 Modified to expect glWindow instead of GtkWindow. gl_file_open_recent()
181 no longer has knowledge of eggRecent*.
182 * src/glabels.c: (main):
183 Removed libbonobo initialization and replaced bonobo_main loop with gtk_main
185 * src/object-editor.c: (gl_object_editor_init):
186 Make sure notebook does not respond to a "show_all" on the parent.
187 * src/recent-files/Makefile.am:
188 * src/recent-files/*.[ch]
189 Updated from latest version of libegg which now has a view based on
190 GtkUIManager. Removed unused bonobo and gtk views.
191 * src/ui-property-bar.h:
192 * src/ui-property-bar.c:
193 New implementation based on libglade.
196 Sidebar is now simply a GtkWidget and does not expect to be a part of
197 a libbonoboui interface.
202 Converted for use with GtkUIManager.
205 Now derived from GtkWindow instead of BonoboWindow and uses GtkUIManager
206 to create menus and toolbars.
208 2005-04-25 Jim Evins <evins@snaught.com>
210 * data/templates/misc-iso-templates.xml:
211 Added Fellows 04715 template provided by Steve Saxon.
213 Updated acknowledgement for above.
215 2005-04-23 Jim Evins <evins@snaught.com>
217 * src/util.c: (gl_util_combo_box_set_strings):
218 Make sure to clear model before loading a new list of strings.
219 * src/wdgt-media-select.h:
220 * src/wdgt-media-select.c: (gl_wdgt_media_select_instance_init),
221 (gl_wdgt_media_select_construct), (page_size_combo_changed_cb),
222 (template_combo_changed_cb), (prefs_changed_cb),
223 (gl_wdgt_media_select_get_name), (gl_wdgt_media_select_set_name),
224 (gl_wdgt_media_select_get_page_size),
225 (gl_wdgt_media_select_set_page_size):
226 Replaced the deprecated GtkCombo widget with the new
229 2005-04-21 Jim Evins <evins@snaught.com>
231 * data/glade/template-designer.glade:
232 * src/template-designer.c: (construct_pg_size_page),
233 (pg_size_page_changed_cb), (build_template):
234 Replaced the deprecated GtkCombo widget with the new
237 2005-04-20 Jim Evins <evins@snaught.com>
239 * data/glade/prefs-dialog.glade:
240 * src/prefs-dialog.c: (construct_object_page),
241 (update_object_page_from_prefs), (update_prefs_from_object_page):
242 Replaced the deprecated GtkCombo widget with the new
245 2005-04-19 Jim Evins <evins@snaught.com>
247 * data/glade/object-editor.glade:
248 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page),
249 (style_changed_cb), (gl_object_editor_set_bc_style),
250 (gl_object_editor_get_bc_style), (gl_object_editor_set_bc_color),
251 (gl_object_editor_get_bc_color):
252 * src/object-editor-data-page.c:
253 (gl_object_editor_prepare_data_page), (gl_object_editor_set_data),
254 (gl_object_editor_get_data):
255 * src/object-editor-edit-page.c:
256 (gl_object_editor_prepare_edit_page), (insert_button_cb):
257 * src/object-editor-fill-page.c:
258 (gl_object_editor_prepare_fill_page),
259 (gl_object_editor_set_fill_color),
260 (gl_object_editor_get_fill_color):
261 * src/object-editor-image-page.c:
262 (gl_object_editor_prepare_image_page),
263 (gl_object_editor_set_image), (gl_object_editor_get_image):
264 * src/object-editor-line-page.c:
265 (gl_object_editor_prepare_line_page),
266 (gl_object_editor_set_line_color),
267 (gl_object_editor_get_line_color):
268 * src/object-editor-private.h:
269 * src/object-editor-text-page.c:
270 (gl_object_editor_prepare_text_page),
271 (gl_object_editor_set_font_family),
272 (gl_object_editor_get_font_family),
273 (gl_object_editor_set_text_color),
274 (gl_object_editor_get_text_color):
275 * src/object-editor.c: (gl_object_editor_set_key_names):
277 In the object editor: replaced all instances of the deprecated
278 GtkCombo widget with the new GtkComboBox.
280 2005-04-18 Jim Evins <evins@snaught.com>
283 Neglected to save this one in previous checkin to support
286 2005-04-17 Jim Evins <evins@snaught.com>
288 * libglabels/libglabels-private.h:
289 * libglabels/paper.c:
290 * libglabels/paper.h:
291 * libglabels/template.c:
292 * libglabels/template.h:
293 * libglabels/xml-paper.c:
294 * libglabels/xml-paper.h:
295 * libglabels/xml-template.c:
300 * src/bc-gnubarcode.c:
311 * src/label-barcode.c:
313 * src/label-ellipse.c:
317 * src/label-object.c:
321 * src/merge-properties-dialog.c:
322 * src/object-editor-bc-page.c:
323 * src/object-editor-data-page.c:
324 * src/object-editor-edit-page.c:
325 * src/object-editor-fill-page.c:
326 * src/object-editor-image-page.c:
327 * src/object-editor-line-page.c:
328 * src/object-editor-lsize-page.c:
329 * src/object-editor-position-page.c:
330 * src/object-editor-private.h:
331 * src/object-editor-size-page.c:
332 * src/object-editor-text-page.c:
333 * src/object-editor.c:
334 * src/object-editor.h:
335 * src/pixbuf-cache.h:
336 * src/prefs-dialog.c:
337 * src/prefs-dialog.h:
341 * src/print-dialog.c:
342 * src/print-dialog.h:
350 * src/template-designer.c:
351 * src/template-designer.h:
354 * src/ui-property-bar.c: (gl_ui_property_bar_construct):
360 * src/view-barcode.c:
362 * src/view-ellipse.c:
363 * src/view-highlight.c:
364 * src/view-highlight.h:
372 * src/wdgt-chain-button.c:
373 * src/wdgt-media-select.c:
374 * src/wdgt-media-select.h:
375 * src/wdgt-mini-preview.c:
376 * src/wdgt-mini-preview.h:
377 * src/wdgt-print-copies.c:
378 * src/wdgt-print-copies.h:
379 * src/wdgt-print-merge.c:
380 * src/wdgt-print-merge.h:
381 * src/wdgt-rotate-label.c:
382 * src/wdgt-rotate-label.h:
385 * src/xml-label-04.c:
386 * src/xml-label-191.c:
388 Cleanup of header files:
389 - all header files are now stand-alone, verified by including
390 first in corresponding "c" files
391 - replaced blanket includes of gnome, gtk, and glib with
394 2005-04-16 Jim Evins <evins@snaught.com>
396 * data/glade/Makefile.am:
397 * data/glade/merge-properties-dialog.glade:
398 Added merge properties dialog glade description file.
399 * src/merge-properties-dialog.h:
400 * src/merge-properties-dialog.c:
401 (gl_merge_properties_dialog_get_type),
402 (gl_merge_properties_dialog_init),
403 (gl_merge_properties_dialog_finalize),
404 (gl_merge_properties_dialog_new),
405 (gl_merge_properties_dialog_construct), (type_changed_cb),
406 (src_changed_cb), (response_cb), (load_tree),
407 (record_select_toggled_cb), (select_all_button_clicked_cb),
408 (unselect_all_button_clicked_cb):
409 Modified merge properties dialog to use libglade. Added
410 "select all" and "unselect all" buttons.
411 * src/merge-text.c: (parse_line):
412 Handle empty lines better.
413 * src/merge.c: (gl_merge_eval_key):
414 Evaluate the key whether the record is selected or not.
416 * src/util.c: (gl_util_combo_box_add_text_model):
417 Since libglade does not use the gtk_combo_box_new_text()
418 constructor for GtkComboBoxes, a utility function was created
419 to add an appropriate text model to a GtkComboBox.
420 * src/view.c: (gl_view_edit_merge_props):
421 Removed unnecessary "show all's".
423 2005-04-15 Jim Evins <evins@snaught.com>
426 Updated russian translation (Vitaly Lipatov)
427 * data/templates/misc-iso-templates.xml:
428 Added templates for russian business cards provided by Vitaly Lipatov.
430 Updated acknowledgements for above.
432 2005-04-15 Jim Evins <evins@snaught.com>
434 * data/templates/avery-us-templates.xml:
435 Added Avery 5388 and 5389 templates provided by Peter L. Berghold.
436 * data/templates/misc-iso-templates.xml:
437 Added Ryman standard CD/DVD template, provided by Dan Clark.
439 Added acknowledgements for above.
441 2005-04-10 Jim Evins <evins@snaught.com>
443 * libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
444 * libglabels/xml-template.c: (gl_xml_template_parse_template_node),
445 (xml_parse_label_rectangle_node), (xml_parse_label_round_node),
446 (xml_parse_label_cd_node), (xml_parse_alias_node):
447 * libglabels/xml.c: (gl_xml_get_prop_double),
448 (gl_xml_get_prop_boolean), (gl_xml_get_prop_int),
449 (gl_xml_get_prop_uint), (gl_xml_get_prop_length):
450 * src/xml-label-04.c: (xml04_parse_media_description),
451 (xml04_parse_text_props), (xml04_parse_barcode_props),
452 (xml04_parse_merge_properties):
453 * src/xml-label-191.c: (xml191_parse_object),
454 (xml191_parse_text_props), (xml191_parse_barcode_props),
455 (xml191_parse_merge_fields), (xml191_parse_pixdata),
456 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_markup),
457 (xml191_parse_alias):
458 * src/xml-label.c: (xml_parse_object_text),
459 (xml_parse_object_barcode), (xml_parse_merge_fields),
460 (xml_parse_pixdata), (xml_parse_toplevel_span):
461 Make sure to use xmlFree for anything obtained from libxml
462 in case libxml and glib use different memory management
465 2005-04-08 Jim Evins <evins@snaught.com>
468 * src/util.c: (gl_util_combo_box_set_strings), (search_text_func),
469 (gl_util_combo_box_set_active_text):
470 Added utility functions to simplify working with GtkComboBox
472 * src/ui-property-bar.h:
473 * src/ui-property-bar.c: (gl_ui_property_bar_construct),
474 (reset_to_default_properties), (update_text_properties),
475 (font_family_changed_cb):
476 Replaced deprecated GtkCombo with GtkComboBox.
479 2005-04-03 Jim Evins <evins@snaught.com>
482 * src/wdgt-image-select.h:
483 * src/wdgt-image-select.c:
484 Removed obsolete wdgt-image-select.[ch] files.
485 * libglabels/paper.c: (gl_paper_dup):
486 Fixed rename of parameter introduced during documentation
488 * data/glade/object-editor.glade:
489 * src/object-editor-image-page.c:
490 (gl_object_editor_prepare_image_page), (img_radio_toggled_cb),
491 (gl_object_editor_set_image), (gl_object_editor_get_image),
492 (update_preview_cb), (add_image_filters_to_chooser):
493 * src/object-editor-private.h:
494 Replaced deprecated GnomePixmapEntry with
495 GtkFileChooserButton.
497 2005-04-02 Jim Evins <evins@snaught.com>
499 * src/mygal/mygal-combo-box.c: (deactivate_arrow),
500 (mygal_combo_box_popup_hide_unconditional),
501 (mygal_combo_box_popup_hide), (mygal_combo_box_popup_display),
502 (mygal_combo_toggle_pressed), (mygal_combo_box_init),
503 (mygal_combo_popup_tear_off), (mygal_combo_set_tearoff_state),
504 (mygal_combo_tearoff_bg_copy), (mygal_combo_popup_reparent),
505 (cb_tearable_button_release), (mygal_combo_box_set_tearable):
506 Renamed all internal gtk_combo functions to mygal_combo
507 to prevent namespace confusion.
509 2005-04-02 Jim Evins <evins@snaught.com>
511 * src/mygal/color-palette.c: (color_palette_change_custom_color),
512 (cust_color_set), (color_palette_setup):
513 * src/mygal/color-palette.h:
514 Replaced deprecated GnomeColorPicker with GtkColorButton.
516 2005-04-02 Jim Evins <evins@snaught.com>
518 * docs/libglabels/libglabels-sections.txt:
519 * docs/libglabels/libglabels-undocumented.txt:
520 * docs/libglabels/tmpl/enums.sgml:
521 * docs/libglabels/tmpl/paper.sgml:
522 * docs/libglabels/tmpl/xml-paper.sgml:
523 * docs/libglabels/tmpl/xml-template.sgml:
524 * libglabels/enums.h:
525 * libglabels/paper.c: (gl_paper_dup):
526 * libglabels/paper.h:
527 * libglabels/xml-paper.c:
528 * libglabels/xml-template.c:
529 More documentation updates for libglabels.
531 2005-03-23 Jim Evins <evins@snaught.com>
534 Automatically updated.
539 * docs/libglabels/Makefile.am:
540 * docs/libglabels/libglabels-docs.sgml:
541 * docs/libglabels/libglabels-sections.txt:
542 * docs/libglabels/libglabels-undocumented.txt:
543 * docs/libglabels/tmpl/enums.sgml:
544 * docs/libglabels/tmpl/libglabels-unused.sgml:
545 * docs/libglabels/tmpl/libglabels.sgml:
546 * docs/libglabels/tmpl/paper.sgml:
547 * docs/libglabels/tmpl/template.sgml:
548 * docs/libglabels/tmpl/xml-paper.sgml:
549 * docs/libglabels/tmpl/xml-template.sgml:
550 * docs/libglabels/tmpl/xml.sgml:
551 Added basic gtk-doc stuff to support documenting libglabels
554 Updated function comments with gtk-doc markup.
558 2005-03-22 Jim Evins <evins@snaught.com>
560 Since the development version now requires gtk-2.6/gnome-2.10, I
561 have made a first pass at removing deprecations.
564 * libglabels/Makefile.am:
566 Added configure option to turn on X_DISABLE_DEPRECATED flags.
567 Also removed all remnants of HAVE_FILECHOOSER.
568 * src/file.c: (gl_file_open_real):
569 Removed code for old GtkFileSelection.
570 * libglabels/libglabels-private.h:
571 * libglabels/paper.c:
572 * libglabels/template.c:
573 * libglabels/xml-paper.c:
574 * libglabels/xml-template.c:
578 * src/glabels-batch.c:
582 * src/merge-properties-dialog.c:
584 * src/object-editor.c:
585 * src/prefs-dialog.c:
587 * src/print-dialog.c:
590 * src/template-designer.c:
591 * src/ui-property-bar.c:
593 * src/view-barcode.c:
595 * src/view-ellipse.c:
600 * src/wdgt-image-select.c:
601 * src/wdgt-media-select.c:
602 * src/wdgt-print-copies.c:
603 * src/wdgt-print-merge.c:
604 * src/wdgt-rotate-label.c:
606 * src/xml-label-04.c:
607 * src/xml-label-191.c:
609 Added '#include <glib/gi18n.h>" where needed.
610 Removed any unused '#include <gnome.h>"s.
612 2005-03-22 Jim Evins <evins@snaught.com>
614 * src/commands.c: (activate_url), (gl_cmd_help_about):
615 Replaced GnomeAbout with GtkAboutDialog. Therefore the
616 development version of glabels now depends on GTK 2.6 and
619 Updated library dependencies.
621 2005-02-28 Jim Evins <evins@snaught.com>
624 * data/templates/misc-iso-templates.xml:
625 Added 'Ednet 45021' template provided by Ali Akcaagac
628 2005-02-14 Jim Evins <evins@snaught.com>
630 * data/templates/avery-us-templates.xml:
631 Updated templates to use inches instead of points.
632 * src/print-dialog.c: (printer_page_new):
633 Changed packing style when adding printer selector widget. This fixes
636 2005-02-13 Jim Evins <evins@snaught.com>
640 Updated spanish translations. (sergio rivadero)
642 2005-02-05 Jim Evins <evins@snaught.com>
644 Some cleanup to libglabels.
647 Updated version to 2.1.1cvs. Added generation of libglabels.pc.
648 * libglabels/libglabels.pc.in
651 Created. Currently only contains glUnitsType which provides enumerations
652 for all possible units of distance.
653 * libglabels/Makefile.am:
654 Incorporated new files enums.h and libglabels.pc[.in].
655 * libglabels/libglabels.h:
657 * libglabels/template.h:
658 * libglabels/template.c: (gl_template_layout_new):
659 Changed parameters nx and ny to gint from gdouble.
661 * libglabels/xml.c: (gl_xml_get_prop_length),
662 (gl_xml_set_prop_length), (gl_xml_set_default_units):
663 Added support for different output units.
664 * src/prefs-dialog.c: (update_locale_page_from_prefs),
665 (update_prefs_from_locale_page):
666 * src/prefs-model.c: (string_to_units), (units_to_string):
668 * src/prefs.c: (gl_prefs_get_units_per_point),
669 (gl_prefs_get_units_precision), (gl_prefs_get_units_step_size),
670 (gl_prefs_get_units_string):
672 * src/wdgt-media-select.c: (details_update), (get_label_size_desc):
673 Reconciled all length enumerations with the new enumerations provided
674 in libglabels/enums.h.
676 2005-02-03 Jim Evins <evins@snaught.com>
679 Updated Czech translations. (David Makovský and Zbynek Mrkvick)
681 Updated Italian translations. (Daniele Medri)
683 Updated credits to reflect above translations.
686 2005-01-22 Jim Evins <evins@snaught.com>
691 Added MESSAGE-OF-DOOM to EXTRA_DIST.
693 Final prep for 2.1.0.
695 Set version to 2.1.0. Output MESSAGE-OF-DOOM.
697 Added '--remove-original' flag to desktop-file-install, so that there is
700 2005-01-20 Jim Evins <evins@snaught.com>
702 * data/glade/object-editor.glade:
703 - Font family entry should not be editable.
704 - img_key_entry should have sensitivity=YES, so that it follows the
705 sensitivity of img_key_combo.
707 2005-01-19 Jim Evins <evins@snaught.com>
710 Give credit to Frederic Ruaudel for the color merge patches.
712 2005-01-18 Frederic Ruaudel <grumz@users.sf.net>
714 Add support to merge color for all other color attribute (Feature
715 Requests item #1008635. If the data is invalid, the color used is transparent
716 (GL_COLOR_NONE). The format for color in merge data file are those accepted
717 by gdk_color_parse() these include name for a color from rgb.txt, such as
718 DarkSlateGray, or a hex specification such as #305050. File format has been
719 changed but backward compatibility is preserved for all format. For
720 box/ellipse/line, keep attribute "line_color" for static color or replace by
721 "line_color_field" for merge data. For text/barcode objects, keep attribute
722 "color" for static color or replace by "color_field" for merge data. In the
723 edit canvas window, merged color are represented by half-transparent black
726 * data/dtd/glabels-2.0.dtd:
727 Added line_color_field to line_attrs. Added color_field to
728 Object-barcode and Span.
729 * data/glade/object-editor.glade:
730 Modify the layout of the editor to add merge possibility to color options
732 Fix a copy/paste error in a comment
734 Add default color for merge color representation in the editor canvas.
735 * src/label-barcode.c:
736 * src/object-editor-bc-page.c:
737 * src/view-barcode.c:
738 Add merge color support for barcode color.
741 Add merge color support for box border color.
742 * src/label-ellipse.c:
743 * src/view-ellipse.c:
744 Add merge color support for ellipse border color.
747 Add merge color support for line color.
748 * src/label-object.c:
749 * src/label-object.h:
750 * src/object-editor.c:
751 * src/object-editor.h:
752 * src/ui-property-bar.c:
755 * src/xml-label-04.c:
756 * src/xml-label-191.c:
757 Add support for merging to other color attribute.
759 * src/object-editor-text-page.c:
761 Add merge color support for text color.
762 * src/object-editor-fill-page.c:
763 Change a blocked handler that didn't match the good widget. Fix the type
764 of some debug message.
765 * src/object-editor-line-page.c:
766 Add merging support to line color option.
767 * src/object-editor-private.h:
768 Add variables for new widget.
770 Modify the draw functions to get merge data if needed.
772 Change the default size of the window in order to see all widget in the
773 "text style tab" of the editor.
775 Modify the parser to record/retreive the field value for objects that need
776 "color" attribute. For box/ellipse/line, keep attribute "line_color" for
777 static color or replace by "line_color_field" for merge data. For
778 text/barcode objects, keep attribute "color" for static color or replace
779 by "color_field" for merge data.
781 2005-01-17 Jim Evins <evins@snaught.com>
783 * src/view.c: (screen_changed_cb):
784 Don't do anything if we don't have a screen.
786 2005-01-06 Jim Evins <evins@snaught.com>
788 * src/view.c: (get_home_scale):
789 Fixed bad call to gtk_widget_has_screen() -- huh?.
791 2005-01-06 Jim Evins <evins@snaught.com>
793 * data/dtd/glabels-2.0.dtd:
794 Added fill_color_field to fill_attrs. Also added xmlns attribute to all
797 2005-01-06 Jim Evins <evins@snaught.com>
799 * data/glade/object-editor.glade:
800 Set entries for fill and data field key dropdowns to NOT editable.
801 * src/view-box.c: (construct_properties_editor):
802 * src/view-ellipse.c: (construct_properties_editor):
803 Update object editor when label's merge property has changed.
804 * src/xml-label.c: (xml_parse_object_ellipse):
805 Completed the merge color support for the ellipse item.
807 2005-01-06 Frederic Ruaudel <grumz@users.sf.net>
809 Add support to merge color for object that have a "Fill color" attribute (Feature
810 Requests item #1008635. If the data is invalid, the color used is transparent
811 (GL_COLOR_NONE). The format for color in merge data file are those accepted
812 by gdk_color_parse() these include name for a color from rgb.txt, such as
813 DarkSlateGray, or a hex specification such as #305050. File format has been
814 changed but backward compatibility is preserved for all format. For box/ellipse,
815 keep attribute "fill_color" for static color or replace by "fill_color_field"
818 * data/glade/object-editor.glade:
819 Modify "Fill" tab to add the merge key combo and convert the labels into
823 Add "glColorNode" structure and associated functions to manage it. This
824 structure is equivalent for color than the "glTextNode". It holds the color
826 * src/label-object.h:
827 * src/label-object.c:
829 * src/label-ellipse.c:
830 * src/ui-property-bar.c:
834 * src/view-ellipse.c:
835 * src/xml-label-04.c:
836 * src/xml-label-191.c:
837 Change functions of objects that have a "fill color" attribute to use the
838 new "glColorNode" structure. Use barcode code as example.
840 Add the color.[ch] file to glabels_batch binary that now need support for
842 * src/object-editor.h:
843 * src/object-editor.c:
844 * src/object-editor-fill-page.c:
845 Manage the new widget of the editor's "Fill" tab : key combo and radio button
846 to choose between static color or merge key. Use barcode code as example.
847 * src/object-editor-private.h:
848 Add new widget in the "_glObjectEditorPrivate" structure.
850 Modify the draw functions to get merge data if needed.
852 Modify the parser to record/retreive the field value for objects that need
853 "Fill color" attribute. For box/ellipse, put attribute "fill_color" for static
854 color or "fill_color_field" for merge data.
856 2005-01-04 Jim Evins <evins@snaught.com>
859 * data/templates/avery-iso-templates.xml:
860 * data/templates/misc-iso-templates.xml:
861 * data/templates/misc-us-templates.xml:
862 Added templates, submitted by Larry Harriman, Juan Carlos Valero, and
865 2004-11-26 Jim Evins <evins@snaught.com>
869 Updated french translations provided by Florent Morel <florent@taket.org>.
870 * src/view-barcode.c:
872 * src/view-ellipse.c:
876 Added '#include <config.h>' -- HAVE_*GETTEXT macros were not defined and
877 thus _() strings were not being translated.
879 2004-11-14 Jim Evins <evins@snaught.com>
882 * src/debug.c: (gl_debug_init), (gl_debug):
883 Borrowed from gedit: use environmental variables to select debug
886 Removed unused include of debug.h.
887 * src/glabels.c: (main):
888 Added call to gl_debug_init(), and removed debug clutter from command line
890 * src/glabels-batch.c: (main):
891 Added call to gl_debug_init().
893 2004-11-13 Jim Evins <evins@snaught.com>
895 Drawing and property toolbars were being initialized with the "icons and text"
896 look in Fedora Core 3. Even though none of the buttons had any text attached to
897 them, the buttons were being sized as if they were. This led to less real estate
898 for the property editor, leading to Bug #1064630. The
900 * data/ui/glabels-ui.xml:
901 Added explicit "look" property to both drawing and property toolbars.
902 * src/prefs-model.c: (gl_prefs_model_save_settings),
903 (gl_prefs_model_load_settings):
905 Removed drawing_toolbar_button_style configuration parameter.
906 * src/ui.c: (view_menu_item_toggled_cb),
907 (set_app_drawing_toolbar_style):
908 Do not attempt to adjust look property of the drawing toolbar.
910 2004-10-28 Jim Evins <evins@snaught.com>
912 * data/pixmaps/glabels-about-logo.png:
915 2004-10-28 Jim Evins <evins@snaught.com>
917 * data/man/glabels.1:
918 * src/glabels-batch.c: (main):
920 * src/print.c: (gl_print_batch):
922 Added option to glabels-batch to select the first label to begin
925 2004-09-26 Jim Evins <evins@snaught.com>
927 * data/desktop/glabels.desktop.in:
928 Point to app icon, "glabels.png"
929 * data/mime/glabels.keys.in:
930 Point at mime icon, "glabels-application-x-glabels.png"
931 * data/pixmaps/Makefile.am:
932 Added glabels_app_icondir. Renamed icons.
933 * data/pixmaps/glabels.png:
934 New cleaned up app icon. Deleted glabels-icon.png.
935 * data/pixmaps/glabels-application-x-glabels.png:
937 * data/pixmaps/glabels-splash.png:
938 Renamed glabels-logo to glabels-splash to be more correct about role.
940 * src/template-designer.c:
941 Point at app icon, "glabels.png"
943 Point at renamed splash image, "glabels-splash.png"
945 2004-08-22 Jim Evins <evins@snaught.com>
948 * src/glabels-batch.c: (main):
949 Applied patch with minor mods to allow selecting merge source and
950 crop-marks on glabels-batch's command line. Original patch provided by
951 José Dapena Paz <jdapena@igalia.com>.
953 2004-08-15 Jim Evins <evins@snaught.com>
955 * data/desktop/glabels.desktop.in:
956 - Added encoding line
957 - Removed period from comment
958 - Fixed Terminal line, changed "0" to "false"
959 - Added semicolen to Categories line
961 - Made sure desktop.in comment string above still translated properly
963 2004-08-14 Jim Evins <evins@snaught.com>
965 * libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
966 * libglabels/xml-template.c: (gl_xml_template_parse_template_node):
967 * src/xml-label-191.c: (xml191_parse_sheet):
968 Fixed improper freeing of gettext strings. Merged from 2.0.1.
970 Reconciled libglabels versioning with 2.0.1.
973 2004-08-14 Jim Evins <evins@snaught.com>
976 Updated version to 2.1cvs.
978 2004-08-14 Jim Evins <evins@snaught.com>
981 Updated 2.0.x translation by Takeshi AIHANA <aihana@gnome.gr.jp>.
983 2004-08-14 Jim Evins <evins@snaught.com>
985 Fixes for Bug #1008181.
987 * src/bc.c: (gl_barcode_default_digits):
988 Make a format of zero digits, harmless.
989 * src/xml-label.c: (xml_parse_object_barcode):
990 Set default value of the format property of barcode objects to 10, not
991 zero. This will prevent crashes when reading pre 2.0.x files.
993 2004-08-09 Jim Evins <evins@snaught.com>
997 * help/C/glabels-C.omf:
998 * help/C/glabels.xml:
999 Brought documentation up-to-date for 2.0.0 release.
1001 2004-08-09 Jim Evins <evins@snaught.com>
1003 These are hopefully the final preparations for 2.0.0.
1005 * data/mime/Makefile.am:
1006 Include glabels.xml in EXTRA_DIST.
1008 - Updated comment style.
1009 - Added LIBGLABELS_VERSION_INFO macro, updated Current.
1010 - Added package and version info to configuration printout
1011 - Update version to 2.0.0
1012 * libglabels/Makefile.am:
1013 Use the new LIBGLABELS_VERSION_INFO macro.
1015 2004-08-09 Jim Evins <evins@snaught.com>
1019 Cleanup of required library macros.
1021 2004-08-08 Jim Evins <evins@snaught.com>
1025 - More specific of what to install in /usr/bin and /usr/lib
1026 - Remove built mime registration files from staging directory
1028 2004-08-08 Jim Evins <evins@snaught.com>
1030 * data/mime/Makefile.am:
1031 Fixed typo: key_files should have been keys_files.
1033 2004-08-08 Jim Evins <evins@snaught.com>
1035 Reorganization of runtime data files. Also added registration of mimetype with
1036 new freedesktop.org mime database if available.
1039 Moved files to appropriate subdirectories, creating local Makefile.am
1040 in each subdirectory.
1041 - Moved paper-sizes.xml and *-templates.xml to templates subdirectory.
1042 These are now installed at $datadir/glabels/templates.
1043 - Moved glabels.1 to man subdirectory.
1044 - Moved glabels-2.0.dtd to dtd subdirectory.
1045 - Moved glabels.desktop.in to desktop subdirectory.
1046 - Moved glabels.keys.in and glabels.mime to mime subdirectory.
1048 Moved "./pixmaps" to "./data/pixmaps"
1050 Moved src/glabels-ui.xml to data/ui directory. Created Makefile.am.
1052 Moved libglade files from src to data/glade. Created Makefile.am.
1054 Removed pixmaps from SUBDIRS.
1056 - Removed pixmaps from makefiles.
1057 - Added makefiles for new subdirs of data.
1058 - Added tests for freedesktop.org mime database.
1060 - Added tests for freedesktop.org mime database for post install and
1061 post un-install actions.
1062 * libglabels/Makefile.am:
1063 Moved system template files to $(datadir)/glabels/templates.
1064 * libglabels/libglabels-private.h:
1065 Moved system template files to $(datadir)/glabels/templates.
1067 - Accounted for movement of ui and libglade files.
1068 - Added missing .in files.
1069 - Reorganized by directory.
1071 Accounted for movement of ui and libglade files.
1072 * data/mime/glabels.xml.in:
1073 New file for registering with freedesktop.org mime database.
1075 2004-08-07 Jim Evins <evins@snaught.com>
1077 * src/recent-files/*:
1078 Re-synced to latest libegg/recent-files.
1080 2004-08-07 Jim Evins <evins@snaught.com>
1085 Renamed "./doc" directory to "./help" which contains user documentation,
1086 to be more consistent with other GNOME applications.
1089 2004-07-26 Jim Evins <evins@snaught.com>
1091 * src/merge-properties-dialog.c: (gl_merge_properties_dialog_init):
1092 Corrected button order of merge properties dialog.
1094 2004-07-18 Jim Evins <evins@snaught.com>
1096 * data/glabels-2.0.dtd:
1097 * src/bc.c: (gl_barcode_default_digits), (gl_barcode_can_freeform),
1098 (gl_barcode_get_prefered_n):
1100 * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
1101 (gl_label_barcode_get_props), (get_size):
1102 * src/label-barcode.h:
1103 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page),
1104 (style_changed_cb), (gl_object_editor_set_bc_style),
1105 (gl_object_editor_get_bc_style):
1106 * src/object-editor-data-page.c: (data_radio_toggled_cb),
1107 (gl_object_editor_set_data), (gl_object_editor_get_data):
1108 * src/object-editor-private.h:
1109 * src/object-editor.c: (gl_object_editor_set_key_names):
1110 * src/object-editor.glade:
1111 * src/object-editor.h:
1112 * src/print.c: (draw_barcode_object):
1113 * src/view-barcode.c: (update_object_from_editor_cb),
1114 (update_editor_from_object_cb),
1115 (gl_view_barcode_create_event_handler), (draw_barcode):
1116 * src/xml-label-04.c: (xml04_parse_barcode_props):
1117 * src/xml-label-191.c: (xml191_parse_barcode_props):
1118 * src/xml-label.c: (xml_parse_object_barcode),
1119 (xml_create_object_barcode):
1120 Added "format" attribute to barcode objects. This attribute is used
1121 to properly format freeform barcodes barcodes prior to merge data is
1122 applied, so that barcodes can be accurately layed out. This addresses
1123 remaining issues of feature request #824787. Also added an example of
1124 the format in the object editor.
1126 2004-07-12 Jim Evins <evins@snaught.com>
1128 Various code cleanups.
1130 * src/label-barcode.c:
1131 Removed unneeded include of gnome-glyphlist.h.
1133 * src/label-text.c: (get_size):
1134 Fixed memory leak: unref glyphlists when done with them.
1136 * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page):
1137 * src/object-editor-data-page.c:
1138 (gl_object_editor_prepare_data_page):
1139 * src/object-editor-image-page.c:
1140 (gl_object_editor_prepare_image_page):
1141 * src/object-editor-line-page.c:
1142 (gl_object_editor_prepare_line_page):
1143 * src/object-editor-lsize-page.c:
1144 (gl_object_editor_prepare_lsize_page):
1145 * src/object-editor-position-page.c:
1146 (gl_object_editor_prepare_position_page):
1147 * src/object-editor-size-page.c:
1148 (gl_object_editor_prepare_size_page):
1149 * src/object-editor-text-page.c:
1150 (gl_object_editor_prepare_text_page):
1151 Removed unneeded size groups, originally intended to keep widgets aligned.
1152 Now use tables to lay these out in object-editor.glade.
1154 * src/print.c: (draw_text_object):
1155 Fixed memory leak: unref glyphlists when done with them.
1157 * src/view-barcode.c: (draw_barcode):
1158 Fixed memory leak: unref glyphlists when done with them.
1160 * src/view-text.c: (update_object_from_editor_cb), (draw_hacktext):
1161 - Removed unneeded cast of gl_object_editor_get_text_line_spacing()s
1163 - Fixed memory leak: unref glyphlists when done with them.
1165 2004-07-11 Jim Evins <evins@snaught.com>
1167 * data/glabels-2.0.dtd:
1168 * src/label-text.c: (gl_label_text_instance_init), (copy),
1169 (gl_label_text_set_auto_shrink), (gl_label_text_get_auto_shrink):
1171 * src/object-editor-private.h:
1172 * src/object-editor-text-page.c:
1173 (gl_object_editor_prepare_text_page),
1174 (gl_object_editor_set_text_auto_shrink),
1175 (gl_object_editor_get_text_auto_shrink):
1176 * src/object-editor.c: (gl_object_editor_set_key_names):
1177 * src/object-editor.glade:
1178 * src/object-editor.h:
1179 * src/print.c: (draw_text_object):
1180 * src/view-text.c: (update_object_from_editor_cb),
1181 (update_editor_from_object_cb):
1182 * src/xml-label.c: (xml_parse_object_text),
1183 (xml_create_object_text):
1184 Added option to allow document merge to auto shrink text size to fit
1185 within the text box. The code in print.c that actually shrinks the
1186 text is loosely based on a patch submitted by Mark Harrison
1187 <mark.harrison@velocitynet.com.au>. This addresses feature request
1190 2004-07-11 Jim Evins <evins@snaught.com>
1192 * data/glabels-2.0.dtd:
1193 * libglabels/template.c: (gl_template_rect_label_type_new),
1194 (gl_template_round_label_type_new),
1195 (gl_template_cd_label_type_new), (gl_template_label_type_dup),
1196 (template_full_page):
1197 * libglabels/template.h:
1198 * libglabels/xml-template.c: (xml_parse_label_rectangle_node),
1199 (xml_create_label_node):
1200 * pixmaps/ex-rect-size.png:
1201 * src/print.c: (clip_to_outline), (clip_punchouts):
1202 * src/template-designer.c: (construct_rect_size_page),
1203 (rect_size_page_prepare_cb), (layout_page_prepare_cb),
1205 * src/template-designer.glade:
1206 * src/xml-label-191.c: (xml191_parse_label):
1207 Modifications to allow separate horizontal (x_waste) and vertical (y_waste)
1208 properties for rectangular labels. Templates remain backwards compatible,
1209 but this breaks the libglabels API (I don't know of anyone outside of
1210 glabels using libglabels at this time -- what can I say, the program is
1211 is still "unstable"). This addresses the suggestion in Feature Request
1214 2004-07-05 Jim Evins <evins@snaught.com>
1215 * src/print.c: (print_crop_marks), (draw_outline):
1216 Changed crop marks and label outlines to black, instead of 25% gray.
1217 This addresses debian Bug #257460.
1219 2004-07-05 Jim Evins <evins@snaught.com>
1221 * src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
1222 * src/object-editor-line-page.c: (gl_object_editor_set_line_color):
1223 Preserve "is_default" of fill and line color_combos when creating from
1226 2004-07-02 Jim Evins <evins@snaught.com>
1229 Created man page. Based on page submitted by Matthew J. Lockner, however
1230 it has been severely edited.
1232 * data/avery-other-templates.xml
1233 * data/misc-other-templates.xml:
1234 Started new files for predefined templates with non-standard sheet sizes.
1235 These have been initially populated with the Avery 06141 and
1236 OfficeMax #86112, both provided by Matthew J. Lockner.
1239 Install above manpage and template files.
1242 Make sure we install man pages.
1244 * src/glabels-batch.c:
1245 Changed short form of help option to '-?' to be consistent with glabels.
1248 Added acknowledgement for above labels.
1250 2004-07-02 Jim Evins <evins@snaught.com>
1252 * src/glabels.c: (main), (save_session_cb):
1253 - Now include libbonoboui.h, recent.h, and file.h to provide missing
1255 - save_session_cb() now returns gboolean.
1256 - Minor formatting changes.
1260 - Now include file.h to provide missing prototype.
1261 - gl_window_get_type() now returns GType, not guint. I believe this may
1262 ultimately be cause of the segfault reported in Bug #982287, since
1263 GType is actually a gulong, which may not be compatible on other
1264 architectures (64bit) -- I cannot personally test this at this time.
1265 I was sloppy in several other xxx_get_type() functions which also
1266 returned guint -- see next group of files:
1268 * src/window.c: (gl_window_get_type):
1269 * src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
1270 * src/canvas-hacktext.h:
1271 * src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
1272 (gl_hig_category_get_type), (gl_hig_vbox_get_type),
1273 (gl_hig_hbox_get_type):
1275 * src/label-barcode.c: (gl_label_barcode_get_type):
1276 * src/label-barcode.h:
1277 * src/label-box.c: (gl_label_box_get_type):
1279 * src/label-ellipse.c: (gl_label_ellipse_get_type):
1280 * src/label-ellipse.h:
1281 * src/label-image.c: (gl_label_image_get_type):
1282 * src/label-image.h:
1283 * src/label-line.c: (gl_label_line_get_type):
1285 * src/label-object.c: (gl_label_object_get_type):
1286 * src/label-object.h:
1287 * src/label-text.c: (gl_label_text_get_type):
1289 * src/label.c: (gl_label_get_type):
1291 * src/merge-properties-dialog.c:
1292 (gl_merge_properties_dialog_get_type):
1293 * src/merge-properties-dialog.h:
1294 * src/merge-text.c: (gl_merge_text_get_type):
1296 * src/merge.c: (gl_merge_get_type):
1298 * src/object-editor.c: (gl_object_editor_get_type):
1299 * src/prefs-dialog.c: (gl_prefs_dialog_get_type):
1300 * src/prefs-dialog.h:
1301 * src/prefs-model.c: (gl_prefs_model_get_type):
1302 * src/prefs-model.h:
1303 * src/print-dialog.c: (gl_print_dialog_get_type):
1304 * src/print-dialog.h:
1305 * src/template-designer.c: (gl_template_designer_get_type):
1306 * src/template-designer.h:
1307 * src/ui-property-bar.c: (gl_ui_property_bar_get_type):
1308 * src/ui-property-bar.h:
1309 * src/ui-sidebar.c: (gl_ui_sidebar_get_type):
1311 * src/view-barcode.c: (gl_view_barcode_get_type):
1312 * src/view-barcode.h:
1313 * src/view-box.c: (gl_view_box_get_type):
1315 * src/view-ellipse.c: (gl_view_ellipse_get_type):
1316 * src/view-ellipse.h:
1317 * src/view-highlight.c: (gl_view_highlight_get_type):
1318 * src/view-highlight.h:
1319 * src/view-image.c: (gl_view_image_get_type):
1321 * src/view-line.c: (gl_view_line_get_type):
1323 * src/view-object.c: (gl_view_object_get_type):
1324 * src/view-object.h:
1325 * src/view-text.c: (gl_view_text_get_type):
1327 * src/view.c: (gl_view_get_type):
1329 * src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
1330 * src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
1331 * src/wdgt-image-select.h:
1332 * src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
1333 * src/wdgt-media-select.h:
1334 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
1335 * src/wdgt-mini-preview.h:
1336 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
1337 * src/wdgt-print-copies.h:
1338 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
1339 * src/wdgt-print-merge.h:
1340 * src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
1341 * src/wdgt-rotate-label.h:
1342 - Made sure all xxx_get_type functions returned GType, not guint. This
1343 was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
1344 ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
1345 wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
1346 wdt-print-merge.[ch], and wdgt-rotate-label.[ch]. See separate
1347 window.[ch] details above for more info.
1348 - Reconciled various coding style differences in all xxx_get_type()
1350 * All prototypes include G_GNUC_CONST.
1351 * All prototypes specify the return value as GType, not GtkType
1353 * Info structures are all declared as "static const."
1354 * Generalized the names of type and info variables.
1355 * Miscelaneous formatting.
1357 2004-06-08 Jim Evins <evins@snaught.com>
1363 Don't touch compression of original file -- still defaults to 9 for
1364 new files. Original patch provided by Javier Donaire Segarra
1365 (#912252 in patch tracker).
1367 2004-05-05 Jim Evins <evins@snaught.com>
1369 * data/glabels-2.0.dtd:
1370 Broke DTD previously when adding new barcode types that contain a
1371 plus sign (+). Simply changed the BC_STYLE_TYPE entity to "CDATA"
1372 to avoid the problem.
1373 * data/avery-iso-templates.xml:
1374 * data/zweckform-iso-templates.xml:
1376 Added templates for Avery 7165, Zweckform 3688, 4732, and 6021. Templates
1377 provided by Frank Altpeter.
1378 * libglabels/xml-template.c: (xml_create_label_node):
1379 Reordered markup and layout sub-nodes so that resulting templates will
1380 validate against DTD.
1382 2004-03-13 Jim Evins <evins@snaught.com>
1384 * src/object-editor-size-page.c: (gl_object_editor_prepare_size_page):
1385 Changed spin callback signals from "value-changed" back to "changed."
1386 This was accidentally introduced in a previous revision, and can cause
1387 size changes just by selecting the size tab.
1389 2004-03-06 Jim Evins <evins@snaught.com>
1391 * src/view.c: (draw_grid_layer):
1392 For round labels (round and cd) adjust grid so that it lines up with
1393 center of label. Also, no longer draw box around label in the grid layer,
1394 it is hidden by he fg layer anyway. Feature suggested by
1395 nemolivier@free.fr. Although the grid is aligned with the center of the
1396 label, the coordinate system is still relative to the upper left corner
1397 of the rectangle containing the label.
1399 2004-02-25 Jim Evins <evins@snaught.com>
1402 Changed version to 2.0pre1cvs
1404 * libglabels/xml-template.c: (gl_xml_template_parse_templates_doc):
1405 Removed extra xmlFreeDoc() calls upon error. Also print the doc->URL
1406 instead of doc->name fields when errors encountered.
1408 2004-02-21 Jim Evins <evins@snaught.com>
1410 * data/avery-iso-templates.xml:
1411 Added aliases for Avery 8651. Patch provided by Wayne Schuller.
1414 Added libglabels library and include file to installed files.
1417 Final prep for 1.93.3.
1419 2004-02-20 Jim Evins <evins@snaught.com>
1421 * src/glabels-batch.c: (main):
1422 Changed key for setting output filename to GNOME_PRINT_KEY_OUTPUT_FILENAME
1423 as suggested by Javier Donaire Segarra. This addresses bug #901063.
1425 2004-02-16 Jim Evins <evins@snaught.com>
1428 If gtk+ >= 2.3.2 then define HAVE_FILE_CHOOSER.
1431 Added HAVE_FILE_CHOOSER to INCLUDES.
1433 * src/file.c: (gl_file_open), (open_response), (gl_file_open_real),
1434 (gl_file_save_as), (save_as_response):
1435 Ported to use GtkFileChooserDialog if HAVE_FILE_CHOOSER is defined.
1437 2004-02-16 Jim Evins <evins@snaught.com>
1439 * src/xml-label-04.c: (xml04_parse_image_props):
1440 * src/xml-label-191.c: (xml191_parse_image_props):
1441 * src/xml-label.c: (xml_parse_object_image):
1442 Delay setting image size until after image has been applied to new
1445 2004-02-15 Jim Evins <evins@snaught.com>
1447 * src/label-barcode.c: (gl_label_barcode_set_data),
1448 (gl_label_barcode_set_props):
1449 Don't emit "changed" signal, if no change actually made for these
1450 methods. Reduces number of unnecessary redraws of barcodes.
1452 * src/label-object.h:
1453 * src/label-object.c: (gl_label_object_set_position),
1454 (gl_label_object_set_position_relative), (set_size),
1455 (gl_label_object_set_size),
1456 (gl_label_object_set_size_honor_aspect):
1457 Don't emit "changed" signal, if no change actually made for these
1460 2004-02-15 Jim Evins <evins@snaught.com>
1462 * data/glabels-2.0.dtd:
1463 Added specific subtypes for various barcode types.
1466 * src/bc.c: (id_to_index), (name_to_index), (gl_barcode_new),
1467 (gl_barcode_get_styles_list), (gl_barcode_default_digits),
1468 (gl_barcode_can_text), (gl_barcode_text_optional),
1469 (gl_barcode_can_csum), (gl_barcode_csum_optional),
1470 (gl_barcode_id_to_name), (gl_barcode_name_to_id):
1471 Changed API to use a string id, rather than a fixed enumeration. Id and
1472 name are separate strings. Added entries to backend table for specific
1473 subtypes for various barcode types.
1476 * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
1478 Modified to conform to above API. Now more stringent with data length
1479 for various subtypes.
1481 * src/bc-gnubarcode.h:
1482 * src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new),
1483 (is_length_valid), (is_length1_valid), (is_length2_valid):
1484 Modified to conform to above API. Now more stringent with data length
1485 for various subtypes.
1487 * src/label-barcode.h:
1488 * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
1489 (gl_label_barcode_get_props), (get_size):
1490 Modified to use above API for storing barcode type.
1492 * src/object-editor.h:
1493 * src/object-editor-bc-page.c: (style_changed_cb),
1494 (gl_object_editor_set_bc_style), (gl_object_editor_get_bc_style):
1495 Modified to use above API for storing barcode type.
1497 * src/object-editor-size-page.c:
1498 (gl_object_editor_prepare_size_page), (aspect_toggle_cb),
1499 (w_spin_cb), (h_spin_cb), (size_reset_cb):
1500 Added debug markers.
1502 * src/object-editor.glade:
1503 Made barcode style combo's text entry non-editable.
1505 * src/print.c: (draw_barcode_object):
1506 Modified to use above API for barcode type.
1508 * src/view-barcode.c: (update_object_from_editor_cb),
1509 (update_editor_from_object_cb),
1510 (gl_view_barcode_create_event_handler), (draw_barcode):
1511 Modified to use above API for barcode type.
1513 * src/xml-label-04.c: (xml04_parse_barcode_props):
1514 * src/xml-label-191.c: (xml191_parse_barcode_props):
1515 * src/xml-label.c: (xml_parse_object_barcode),
1516 (xml_create_object_barcode):
1517 Modified to use above API for barcode type.
1519 2004-02-07 Jim Evins <evins@snaught.com>
1521 * src/stock-pixmaps/Makefile.am:
1522 * src/stock-pixmaps/stock_hchain_24.png:
1523 * src/stock-pixmaps/stock_hchain_broken_24.png:
1524 * src/stock-pixmaps/stock_vchain_24.png:
1525 * src/stock-pixmaps/stock_vchain_broken_24.png:
1526 Added chain pixmaps borrowed from the gimp's default theme.
1529 * src/stock.c: (gl_stock_init), (add_button_icon):
1530 Added above pixmaps to stock icon sets. Created add_button_icon() to
1531 add these pixmaps sized as GTK_ICON_SIZE_BUTTON.
1533 * src/wdgt-chain-button.h
1534 * src/wdgt-chain-button.c
1537 Added this Modified version of gimpchainbutton widget, borrowed from
1541 Added acknowledgements of the above borrowing from the gimp.
1543 * src/object-editor-size-page.c: (aspect_toggle_cb), (w_spin_cb),
1545 * src/object-editor.c: (gl_object_editor_construct_chain_button):
1546 * src/object-editor.glade:
1547 Replaced the keep aspect ratio check box with the above chain-button
1550 * src/text-node.c: (gl_text_node_equal):
1552 Added function gl_text_node_equal() to compare text_nodes.
1554 * src/label-image.c: (gl_label_image_set_filename):
1555 Replaced incomplete text_node comparison code with invocation of
1556 gl_text_node_equal. This fixed the problem of not being able to
1557 resize an image using the object_editor if the aspect ratio is not
1560 2004-02-04 Jim Evins <evins@snaught.com>
1562 * src/object-editor-image-page.c:
1563 (gl_object_editor_prepare_image_page):
1564 Track "changed" signal of pixmap entry's GtkEntry rather than its
1565 "activate" signal -- this catches all changes to the entry rather than
1566 just changes resulting from a browse, so one can easily pull previous
1567 entries from the history. (This change is marked below on 2004-02-03,
1568 but somehow never got checked in.)
1570 * src/view-highlight.c: (sl_resize_event_handler),
1571 (sr_resize_event_handler), (st_resize_event_handler),
1572 (sb_resize_event_handler):
1573 Side resize handles will now confirm the actual resize that the object
1574 accepted before adjusting position parameters. Previously some interesting
1575 things happened when resizing a barcode to its minimum size.
1577 2004-02-03 Jim Evins <evins@snaught.com>
1579 * src/object-editor-image-page.c:
1580 (gl_object_editor_prepare_image_page):
1581 Track "changed" signal of pixmap entry's GtkEntry rather than its
1582 "activate" signal -- this catches all changes to the entry rather than
1583 just changes resulting from a browse, so one can easily pull previous
1584 entries from the history.
1586 * src/view-highlight.c: (tl_resize_event_handler),
1587 (tr_resize_event_handler), (bl_resize_event_handler),
1588 (br_resize_event_handler):
1589 Allow control key to be dropped while dragging a corner resize handle
1590 without losing the aspect ratio lock.
1592 2004-02-02 Jim Evins <evins@snaught.com>
1594 * src/label-image.c: (gl_label_image_set_filename):
1595 When setting a new filename adjust size such that the aspect ratio of
1596 the image is preserved using the current size as a bounding box.
1598 * src/view-image.c: (update_object_from_editor_cb):
1599 When updating object from editor, feed back possible size changes to
1600 editor as a result of a possible change in image.
1602 * src/object-editor-size-page.c: (size_reset_cb):
1603 Fixed typo when blocking spin handlers. If the base size is larger than
1604 the max size, treat max size as a bounding box while keeping aspect
1608 2004-02-02 Jim Evins <evins@snaught.com>
1610 * src/label-object.h:
1611 * src/label-object.c: (gl_label_object_set_size),
1612 (gl_label_object_set_size_honor_aspect):
1613 Added gl_label_object_set_size_honor_aspect() which will maintain the
1614 current aspect ratio by modifying the supplied w or h apropriately.
1616 * src/view-highlight.c: (tl_resize_event_handler),
1617 (tr_resize_event_handler), (bl_resize_event_handler),
1618 (br_resize_event_handler):
1619 Corner handles will now maintain the current aspect ratio if the
1620 control key is pressed while resizing. This addresses feature
1624 2004-01-31 Jim Evins <evins@snaught.com>
1627 * data/avery-us-templates.xml:
1628 Added entries for "LSK-3," "LSK-5," and "LSK-8." Submitted by JBadger.
1630 * libglabels/template.c: (read_template_files_from_dir):
1631 Corrected problem with testing for extensions.
1633 * src/object-editor.glade:
1634 Corrected grouping of radio buttons in barcode data page.
1636 * src/print.c: (draw_barcode_object):
1637 * src/view-barcode.c: (draw_barcode):
1638 Corrected problem with calculation of y_offset for locating characters.
1640 2004-01-24 Jim Evins <evins@snaught.com>
1643 * data/avery-us-templates.xml:
1644 Added Avery 5824, submitted by Fred Bacon.
1646 2004-01-20 Jim Evins <evins@snaught.com>
1648 Catching up on a couple of backlogged user template submissions.
1650 * data/avery-iso-templates.xml:
1651 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
1652 Suggested by Linas Jakucionis.
1654 * data/zweckform-iso-templates.xml:
1655 Added Zweckform 4760, submitted by Thomas Vill.
1658 Updated to reflect above submissions.
1660 2004-01-06 Jim Evins <evins@snaught.com>
1662 Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
1663 xml.[ch] into a separate library called libglabels, to facilitate third
1664 party use of glabels template files. This was suggested by Wayne Schuller.
1665 Once split-out, some modifications to the structures and functions to
1666 make a cleaner more useful API, hopefully. Rather extensive changes have
1667 propogated to other modules.
1675 * src/xml-template.h:
1676 * src/xml-template.c:
1679 These files have been moved to libglabels/. API cleanup performed.
1681 * libglabels/libglabels.h:
1682 * libglabels/libglabels-private.h:
1683 * libglabels/Makefile.am:
1684 These files have been added to finish out libglabels.
1691 Modified to reflect new sets of files in src/ and libglabels/.
1693 * COPYING.LIBGLABELS:
1695 Added copy of the LGPL for libglabels, and a copy the GFDL for
1698 * src/glabels-batch.c:
1700 * src/label.c: (gl_label_finalize), (gl_label_set_template),
1701 (gl_label_get_size):
1703 * src/prefs-model.c: (gl_prefs_model_load_settings):
1704 * src/print-dialog.c:
1705 * src/print.c: (gl_print_simple), (gl_print_merge_collated),
1706 (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
1707 (print_crop_marks), (print_label), (draw_outline),
1708 (clip_to_outline), (clip_punchouts):
1709 * src/template-designer.c: (construct_pg_size_page),
1710 (pg_size_page_changed_cb), (layout_page_changed_cb),
1711 (print_test_cb), (build_template):
1712 * src/util.c: (gl_util_fraction):
1714 * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
1715 (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
1716 (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
1717 (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
1718 (draw_markup_margin_round), (draw_markup_margin_cd),
1719 (draw_markup_margin_cd_bc), (draw_markup_line),
1720 (draw_markup_circle), (gl_view_copy):
1721 * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
1722 (page_size_entry_changed_cb), (details_update), (get_layout_desc),
1723 (get_label_size_desc):
1724 * src/wdgt-mini-preview.c:
1725 (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
1727 * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
1728 * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
1729 * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
1730 (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
1731 * src/wdgt-rotate-label.h:
1732 * src/xml-label-04.c: (xml04_parse_media_description):
1733 * src/xml-label-191.c: (gl_xml_label_191_parse),
1734 (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
1735 (xml191_parse_markup), (xml191_parse_alias):
1736 * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
1738 Various changes to accomodate new libglabels API.
1740 2004-01-03 Jim Evins <evins@snaught.com>
1745 2004-01-03 Jim Evins <evins@snaught.com>
1748 Added acknowledgement of contributions by Wayne Schuller.
1750 * src/commands.c: (gl_cmd_file_print):
1751 Create extra reference to print dialog, so that it can be properly re-used.
1753 * src/mygal/mygal-combo-box.h:
1754 * src/mygal/mygal-combo-box.c:
1755 (mygal_combo_box_popup_hide_unconditional),
1756 (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
1757 (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
1758 (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
1759 (mygal_combo_box_set_tearable):
1760 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
1761 complete the rename of this widget to prevent namespace collisions
1764 * src/prefs-dialog.glade:
1765 Fixed alignment of Fill/Color widgets.
1767 2004-01-03 Jim Evins <evins@snaught.com>
1769 * data/avery-iso-templates.xml:
1770 Added user submitted templates.
1771 Avery 8435A & 8435B, submitted by Ludger Solbach.
1773 * doc/C/glabels.xml:
1774 Added minimal documentation, noting the new template designer.
1776 2004-01-03 Jim Evins <evins@snaught.com>
1778 * pixmaps/ex-rect-size.png:
1779 * pixmaps/ex-round-size.png:
1780 * pixmaps/ex-cd-size.png:
1781 * pixmaps/Makefile.am:
1782 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
1783 files to be used as illustrations/examples in the template-designer.
1785 * src/template-designer.c: (construct_rect_size_page),
1786 (construct_round_size_page), (construct_cd_size_page),
1787 (construct_nlayouts_page), (rect_size_page_prepare_cb),
1788 (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
1789 (layout_page_prepare_cb), (build_template):
1790 * src/template-designer.glade:
1791 Added illustrations for rectangle, round, and cd label size pages.
1792 Added margin spinboxes to these pages, and now add a margin markup
1793 to the constructed template. Added realistic default values for
1794 some of the size spinboxes. Cleaned up the code for setting spinbox
1795 ranges on the layouts page.
1797 2004-01-02 Jim Evins <evins@snaught.com>
1799 * src/object-editor-size-page.c: (h_spin_cb):
1800 Fixed cut-n-paste error in h_spin_cb that loaded h from
1801 the wrong spinbutton.
1803 * src/object-editor.h:
1804 * src/object-editor.c: (gl_object_editor_class_init),
1805 (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
1806 * src/object-editor-private.h:
1807 * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
1809 Added "size_changed" signal.
1811 * src/view-text.c: (construct_properties_editor),
1812 (update_object_from_editor_cb),
1813 (update_object_from_editor_size_cb):
1814 Track size changes from object editor separately from other
1815 properties. This is so the default size (0,0) of a text
1816 object is not modified unintentionally.
1818 2003-12-30 Wayne Schuller <k_wayne@linuxpower.org>
1820 Added feature: line spacing - allows you to comfortably space a text box to
1821 fit a label perfectly.
1823 * data/glabels-2.0.dtd:
1824 * src/label-object.c: (gl_label_object_set_text_line_spacing),
1825 (gl_label_object_get_text_alignment),
1826 (gl_label_object_get_text_line_spacing):
1827 * src/label-object.h:
1828 * src/label-text.c: (gl_label_text_class_init),
1829 (gl_label_text_instance_init), (copy), (get_size),
1830 (set_text_line_spacing), (get_text_alignment),
1831 (get_text_line_spacing):
1832 * src/object-editor-private.h:
1833 * src/object-editor-text-page.c:
1834 (gl_object_editor_prepare_text_page),
1835 (gl_object_editor_set_text_line_spacing),
1836 (gl_object_editor_get_text_line_spacing):
1837 * src/object-editor.glade:
1838 * src/object-editor.h:
1839 * src/prefs-dialog.c: (construct_object_page),
1840 (update_object_page_from_prefs), (update_prefs_from_object_page):
1841 * src/prefs-dialog.glade:
1842 * src/prefs-model.c: (gl_prefs_model_save_settings),
1843 (gl_prefs_model_load_settings), (get_float):
1844 * src/prefs-model.h:
1845 * src/print.c: (draw_text_object):
1847 * src/view-text.c: (update_object_from_editor_cb),
1848 (update_editor_from_object_cb),
1849 (gl_view_text_create_event_handler), (draw_hacktext):
1850 * src/view.c: (gl_view_construct),
1851 (gl_view_set_selection_text_line_spacing),
1852 (gl_view_set_default_text_line_spacing),
1853 (gl_view_get_default_text_line_spacing):
1855 * src/xml-label.c: (xml_parse_toplevel_span),
1856 (xml_create_toplevel_span):
1858 2003-12-30 Jim Evins <evins@snaught.com>
1860 * src/template-designer.c:
1861 * src/template-designer.h:
1862 * src/template-designer.glade:
1863 New template designer assistant.
1867 Added entries for src/template-designer.* files.
1869 * pixmaps/ex-1layout.png
1870 * pixmaps/ex-2layouts.png
1871 * pixmaps/Makefile.am:
1872 Added the new image files ex-*.png used as illustrations in the
1873 template designer assistant.
1875 * src/print-dialog.h:
1876 * src/print-dialog.c: (gl_print_dialog_finalize),
1877 (gl_print_dialog_new), (gl_print_dialog_construct),
1878 (gl_print_dialog_force_outline_flag):
1879 Changed first argument of gl_print_dialog_new() from glView to glLabel,
1880 to support printing from the template designer assistant which does not
1881 have a full-fledged view. Nothing else from the view object was being
1882 used by the dialog anyway.
1884 Added the gl_print_dialog_force_outline_flag() method, for better
1885 integration with the template designer assistant.
1889 * src/commands.c: (gl_cmd_file_template_designer),
1890 (gl_cmd_file_print):
1891 Modified print command to provide label instead of view to dialog.
1892 Added the gl_cmd_file_template_designer() command to invoke the
1893 template designer assistant.
1896 * src/glabels-ui.xml:
1897 Added support for template designer assistant.
1899 * src/wdgt-mini-preview.h:
1900 * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
1901 (gl_wdgt_mini_preview_set_bg_color):
1902 Preview is now centered in canvas. Added
1903 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
1904 assistant to match the background color with its own.
1906 * src/print.c: (clip_to_outline):
1907 Fixed really stupid bug when adding waste to clip region of rectangular
1908 labels/cards. Each side of the clip region needs to be extended by
1909 twice the waste margin, as well as negatively offset by the waste
1912 2003-12-28 Jim Evins <evins@snaught.com>
1914 * src/prefs-dialog.c: (update_object_page_from_prefs):
1915 Block intermediary function align_toggle_cb() instead of
1916 update_prefs_from_object_page() for the three alignment
1919 2003-12-28 Wayne Schuller <k_wayne@linuxpower.org>
1921 * src/file.c: (gl_file_new), (gl_file_properties):
1922 Swap button order and set default for higificatory pleasure.
1924 2003-12-27 Jim Evins <evins@snaught.com>
1926 * barcode-0.98/Makefile.am:
1927 One last time: removed doc/Makefile and po/Makefile.in.in from
1930 2003-12-27 Jim Evins <evins@snaught.com>
1932 * barcode-0.98/Makefile.am:
1933 Removed config.stat entry from EXTRA_DIST files.
1935 * barcode-0.98/Makefile.in:
1938 2003-12-27 Jim Evins <evins@snaught.com>
1941 Updated to work with latest gnome-common package from CVS.
1942 Removed recursive configuration of barcode-0.98.
1949 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
1951 * barcode-0.98/Makefile.in:
1952 * barcode-0.98/configure.in:
1953 * barcode-0.98/Makefile.am:
1954 * barcode-0.98/README.glabels:
1955 Modified to ignore the barcode package's build system, and build
1956 as a part of glabels.
1957 Renamed Makefile.in to Makefile.in.dist.
1958 Renamed configure.in to configure.in.dist.
1959 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
1962 * src/mygal/Makefile.am:
1963 * src/recent-files/Makefile.am:
1964 In order to build against the GNOME 2.5 platform,
1965 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
1967 * src/mygal/Makefile.am:
1968 * src/mygal/mygal-combo-box.c:
1969 * src/mygal/mygal-combo-box.h:
1970 * src/mygal/widget-color-combo.c:
1971 * src/mygal/widget-color-combo.h:
1973 In order to build against the GNOME 2.5 platform,
1974 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
1975 collisions with the real gtk_combo_box widget, now a part of gtk.
1977 2003-12-26 Jim Evins <evins@snaught.com>
1983 Moved local versions of get_home_data_dir() in paper.c and
1984 template.c to util package. Cleaned up formatting in
1988 In gl_template_register() save a copy of the template in
1989 ~/.glabels if the template is not known. Still need to
1990 handle duplicate filename case and duplicate name but
1991 different template case.
1995 Moved local definition of NAME_SPACE macro from xml-label.c
1998 * src/xml-template.c:
1999 * src/xml-template.h:
2000 Added function gl_xml_template_write_template_to_file(), used
2001 in gl_template_register().