]> git.sur5r.net Git - glabels/blob - glabels2/ChangeLog
2005-04-03 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / ChangeLog
1 2005-04-03  Jim Evins <evins@snaught.com>
2
3         * src/Makefile.am:
4         * src/wdgt-image-select.h:
5         * src/wdgt-image-select.c:
6                 Removed obsolete wdgt-image-select.[ch] files.
7         * libglabels/paper.c: (gl_paper_dup):
8                 Fixed rename of parameter introduced during documentation
9                 updates.
10         * data/glade/object-editor.glade:
11         * src/object-editor-image-page.c:
12         (gl_object_editor_prepare_image_page), (img_radio_toggled_cb),
13         (gl_object_editor_set_image), (gl_object_editor_get_image),
14         (update_preview_cb), (add_image_filters_to_chooser):
15         * src/object-editor-private.h:
16                 Replaced deprecated GnomePixmapEntry with
17                 GtkFileChooserButton.
18
19 2005-04-02  Jim Evins <evins@snaught.com>
20
21         * src/mygal/mygal-combo-box.c: (deactivate_arrow),
22         (mygal_combo_box_popup_hide_unconditional),
23         (mygal_combo_box_popup_hide), (mygal_combo_box_popup_display),
24         (mygal_combo_toggle_pressed), (mygal_combo_box_init),
25         (mygal_combo_popup_tear_off), (mygal_combo_set_tearoff_state),
26         (mygal_combo_tearoff_bg_copy), (mygal_combo_popup_reparent),
27         (cb_tearable_button_release), (mygal_combo_box_set_tearable):
28                 Renamed all internal gtk_combo functions to mygal_combo
29                 to prevent namespace confusion.
30
31 2005-04-02  Jim Evins <evins@snaught.com>
32
33         * src/mygal/color-palette.c: (color_palette_change_custom_color),
34         (cust_color_set), (color_palette_setup):
35         * src/mygal/color-palette.h:
36                 Replaced deprecated GnomeColorPicker with GtkColorButton.
37
38 2005-04-02  Jim Evins <evins@snaught.com>
39
40         * docs/libglabels/libglabels-sections.txt:
41         * docs/libglabels/libglabels-undocumented.txt:
42         * docs/libglabels/tmpl/enums.sgml:
43         * docs/libglabels/tmpl/paper.sgml:
44         * docs/libglabels/tmpl/xml-paper.sgml:
45         * docs/libglabels/tmpl/xml-template.sgml:
46         * libglabels/enums.h:
47         * libglabels/paper.c: (gl_paper_dup):
48         * libglabels/paper.h:
49         * libglabels/xml-paper.c:
50         * libglabels/xml-template.c:
51                 More documentation updates for libglabels.
52         
53 2005-03-23  Jim Evins  <evins@snaught.com>
54
55         * INSTALL:
56                 Automatically updated.
57         * Makefile.am:
58         * autogen.sh:
59         * configure.in:
60         * docs/Makefile.am:
61         * docs/libglabels/Makefile.am:
62         * docs/libglabels/libglabels-docs.sgml:
63         * docs/libglabels/libglabels-sections.txt:
64         * docs/libglabels/libglabels-undocumented.txt:
65         * docs/libglabels/tmpl/enums.sgml:
66         * docs/libglabels/tmpl/libglabels-unused.sgml:
67         * docs/libglabels/tmpl/libglabels.sgml:
68         * docs/libglabels/tmpl/paper.sgml:
69         * docs/libglabels/tmpl/template.sgml:
70         * docs/libglabels/tmpl/xml-paper.sgml:
71         * docs/libglabels/tmpl/xml-template.sgml:
72         * docs/libglabels/tmpl/xml.sgml:
73                 Added basic gtk-doc stuff to support documenting libglabels
74                 API.
75         * libglabels/xml.c:
76                 Updated function comments with gtk-doc markup.
77         * missing:
78                 Removed.
79
80 2005-03-22  Jim Evins  <evins@snaught.com>
81
82         Since the development version now requires gtk-2.6/gnome-2.10, I
83         have made a first pass at removing deprecations.
84
85         * configure.in:
86         * libglabels/Makefile.am:
87         * src/Makefile.am:
88                 Added configure option to turn on X_DISABLE_DEPRECATED flags.
89                 Also removed all remnants of HAVE_FILECHOOSER.
90         * src/file.c: (gl_file_open_real):
91                 Removed code for old GtkFileSelection.
92         * libglabels/libglabels-private.h:
93         * libglabels/paper.c:
94         * libglabels/template.c:
95         * libglabels/xml-paper.c:
96         * libglabels/xml-template.c:
97         * libglabels/xml.c:
98         * src/bc.c:
99         * src/file.c:
100         * src/glabels-batch.c:
101         * src/glabels.c:
102         * src/label.c:
103         * src/merge-init.c:
104         * src/merge-properties-dialog.c:
105         * src/merge.c:
106         * src/object-editor.c:
107         * src/prefs-dialog.c:
108         * src/prefs.c:
109         * src/print-dialog.c:
110         * src/print.c:
111         * src/stock.c:
112         * src/template-designer.c:
113         * src/ui-property-bar.c:
114         * src/ui-sidebar.c:
115         * src/view-barcode.c:
116         * src/view-box.c:
117         * src/view-ellipse.c:
118         * src/view-image.c:
119         * src/view-line.c:
120         * src/view-text.c:
121         * src/view.c:
122         * src/wdgt-image-select.c:
123         * src/wdgt-media-select.c:
124         * src/wdgt-print-copies.c:
125         * src/wdgt-print-merge.c:
126         * src/wdgt-rotate-label.c:
127         * src/window.c:
128         * src/xml-label-04.c:
129         * src/xml-label-191.c:
130         * src/xml-label.c:
131                 Added '#include <glib/gi18n.h>" where needed.
132                 Removed any unused '#include <gnome.h>"s.
133
134 2005-03-22  Jim Evins  <evins@snaught.com>
135
136         * src/commands.c: (activate_url), (gl_cmd_help_about):
137                 Replaced GnomeAbout with GtkAboutDialog.  Therefore the
138                 development version of glabels now depends on GTK 2.6 and
139                 GNOME 2.10.
140         * configure.in:
141                 Updated library dependencies.
142
143 2005-02-28  Jim Evins  <evins@snaught.com>
144
145         * AUTHORS:
146         * data/templates/misc-iso-templates.xml:
147                 Added 'Ednet 45021' template provided by Ali Akcaagac
148                 <aliakc@web.de>.
149
150 2005-02-14  Jim Evins  <evins@snaught.com>
151
152         * data/templates/avery-us-templates.xml:
153                 Updated templates to use inches instead of points.
154         * src/print-dialog.c: (printer_page_new):
155                 Changed packing style when adding printer selector widget.  This fixes
156                 debian Bug#295274.
157
158 2005-02-13  Jim Evins  <evins@snaught.com>
159
160         * AUTHORS:
161         * po/es.po:
162                 Updated spanish translations. (sergio rivadero)
163
164 2005-02-05  Jim Evins  <evins@snaught.com>
165
166         Some cleanup to libglabels.
167         
168         * configure.in:
169                 Updated version to 2.1.1cvs.  Added generation of libglabels.pc.
170         * libglabels/libglabels.pc.in
171                 Created.
172         * libglabels/enums.h
173                 Created.  Currently only contains glUnitsType which provides enumerations
174                 for all possible units of distance.
175         * libglabels/Makefile.am:
176                 Incorporated new files enums.h and libglabels.pc[.in].
177         * libglabels/libglabels.h:
178                 Include enums.h.
179         * libglabels/template.h:
180         * libglabels/template.c: (gl_template_layout_new):
181                 Changed parameters nx and ny to gint from gdouble.
182         * libglabels/xml.h:
183         * libglabels/xml.c: (gl_xml_get_prop_length),
184         (gl_xml_set_prop_length), (gl_xml_set_default_units):
185                 Added support for different output units.
186         * src/prefs-dialog.c: (update_locale_page_from_prefs),
187         (update_prefs_from_locale_page):
188         * src/prefs-model.c: (string_to_units), (units_to_string):
189         * src/prefs-model.h:
190         * src/prefs.c: (gl_prefs_get_units_per_point),
191         (gl_prefs_get_units_precision), (gl_prefs_get_units_step_size),
192         (gl_prefs_get_units_string):
193         * src/prefs.h:
194         * src/wdgt-media-select.c: (details_update), (get_label_size_desc):
195                 Reconciled all length enumerations with the new enumerations provided
196                 in libglabels/enums.h.
197
198 2005-02-03  Jim Evins  <evins@snaught.com>
199
200         * po/cs.po:
201                 Updated Czech translations. (David Makovský and Zbynek Mrkvick)
202         * po/it.po:
203                 Updated Italian translations. (Daniele Medri)
204         * AUTHORS:
205                 Updated credits to reflect above translations.
206
207
208 2005-01-22  Jim Evins  <evins@snaught.com>
209
210         * MESSAGE-OF-DOOM:
211                 Added.
212         * Makefile.am:
213                 Added MESSAGE-OF-DOOM to EXTRA_DIST.
214         * NEWS:
215                 Final prep for 2.1.0.
216         * configure.in:
217                 Set version to 2.1.0.  Output MESSAGE-OF-DOOM.
218         * glabels.spec.in:
219                 Added '--remove-original' flag to desktop-file-install, so that there is
220                 only one menu entry.
221         
222 2005-01-20  Jim Evins  <evins@snaught.com>
223
224         * data/glade/object-editor.glade:
225                 - Font family entry should not be editable.
226                 - img_key_entry should have sensitivity=YES, so that it follows the
227                   sensitivity of img_key_combo.
228         
229 2005-01-19  Jim Evins  <evins@snaught.com>
230
231         * AUTHORS:
232                 Give credit to Frederic Ruaudel for the color merge patches.
233
234 2005-01-18  Frederic Ruaudel  <grumz@users.sf.net>
235  
236         Add support to merge color for all other color attribute (Feature 
237         Requests item #1008635. If the data is invalid, the color used is transparent 
238         (GL_COLOR_NONE). The format     for color in merge data file are those accepted 
239         by gdk_color_parse() these include name for a color from rgb.txt, such as 
240         DarkSlateGray, or a hex specification such as #305050. File format has been 
241         changed but backward compatibility is preserved for all format. For
242         box/ellipse/line, keep attribute "line_color" for static color or replace by
243         "line_color_field" for merge data. For text/barcode objects, keep attribute
244         "color" for static color or replace by "color_field" for merge data. In the
245         edit canvas window, merged color are represented by half-transparent black
246         line/area.
247  
248         * data/dtd/glabels-2.0.dtd:
249                 Added line_color_field to line_attrs. Added color_field to 
250                 Object-barcode and Span.
251         * data/glade/object-editor.glade:
252                 Modify the layout of the editor to add merge possibility to color options
253         * src/color.c:
254                 Fix a copy/paste error in a comment
255         * src/color.h:
256                 Add default color for merge color representation in the editor canvas.
257         * src/label-barcode.c:
258         * src/object-editor-bc-page.c:
259         * src/view-barcode.c:
260                 Add merge color support for barcode color.
261         * src/label-box.c:
262         * src/view-box.c:
263                 Add merge color support for box border color.
264         * src/label-ellipse.c:
265         * src/view-ellipse.c:
266                 Add merge color support for ellipse border color.
267         * src/label-line.c:
268         * src/view-line.c:
269                 Add merge color support for line color.
270         * src/label-object.c:
271         * src/label-object.h:
272         * src/object-editor.c:
273         * src/object-editor.h:
274         * src/ui-property-bar.c:
275         * src/view.c:
276         * src/view.h:
277         * src/xml-label-04.c:
278         * src/xml-label-191.c:
279                 Add support for merging to other color attribute.
280         * src/label-text.c:
281         * src/object-editor-text-page.c:
282         * src/view-text.c:
283                 Add merge color support for text color.
284         * src/object-editor-fill-page.c:
285                 Change a blocked handler that didn't match the good widget. Fix the type
286                 of some debug message.
287         * src/object-editor-line-page.c:
288                 Add merging support to line color option.
289         * src/object-editor-private.h:
290                 Add variables for new widget.
291         * src/print.c:
292                 Modify the draw functions to get merge data if needed.
293         * src/window.c:
294                 Change the default size of the window in order to see all widget in the
295                 "text style tab" of the editor.
296         * src/xml-label.c:
297                 Modify the parser to record/retreive the field value for objects that need
298                 "color" attribute. For box/ellipse/line, keep attribute "line_color" for 
299                 static color or replace by "line_color_field" for merge data. For 
300                 text/barcode objects, keep attribute "color" for static color or replace 
301                 by "color_field" for merge data.
302         
303 2005-01-17  Jim Evins  <evins@snaught.com>
304
305         * src/view.c: (screen_changed_cb):
306                 Don't do anything if we don't have a screen.
307
308 2005-01-06  Jim Evins  <evins@snaught.com>
309
310         * src/view.c: (get_home_scale):
311                 Fixed bad call to gtk_widget_has_screen() -- huh?.
312
313 2005-01-06  Jim Evins  <evins@snaught.com>
314
315         * data/dtd/glabels-2.0.dtd:
316                 Added fill_color_field to fill_attrs.  Also added xmlns attribute to all
317                 top-level elements.
318
319 2005-01-06  Jim Evins  <evins@snaught.com>
320
321         * data/glade/object-editor.glade:
322                 Set entries for fill and data field key dropdowns to NOT editable.
323         * src/view-box.c: (construct_properties_editor):
324         * src/view-ellipse.c: (construct_properties_editor):
325                 Update object editor when label's merge property has changed.
326         * src/xml-label.c: (xml_parse_object_ellipse):
327                 Completed the merge color support for the ellipse item.
328
329 2005-01-06  Frederic Ruaudel  <grumz@users.sf.net>
330
331         Add support to merge color for object that have a "Fill color" attribute (Feature 
332         Requests item #1008635. If the data is invalid, the color used is transparent 
333         (GL_COLOR_NONE). The format     for color in merge data file are those accepted 
334         by gdk_color_parse() these include name for a color from rgb.txt, such as 
335         DarkSlateGray, or a hex specification such as #305050. File format has been 
336         changed but backward compatibility is preserved for all format. For box/ellipse, 
337         keep attribute "fill_color" for static  color or replace by "fill_color_field" 
338         for merge data.
339
340         * data/glade/object-editor.glade:
341                 Modify "Fill" tab to add the merge key combo and convert the labels into 
342                 radio button.
343         * src/color.h:
344         * src/color.c:
345                 Add "glColorNode" structure and associated functions to manage it. This 
346                 structure is equivalent for color than the "glTextNode". It holds the color
347                 and the key field.
348         * src/label-object.h:
349         * src/label-object.c:
350         * src/label-box.c:
351         * src/label-ellipse.c:
352         * src/ui-property-bar.c:
353         * src/view.h:
354         * src/view.c:
355         * src/view-box.c:
356         * src/view-ellipse.c:
357         * src/xml-label-04.c:
358         * src/xml-label-191.c:
359                 Change functions of objects that have a "fill color" attribute to use the 
360                 new "glColorNode" structure. Use barcode code as example.
361         * src/Makefile.am:
362                 Add the color.[ch] file to glabels_batch binary that now need support for 
363                 "glColorNode".
364         * src/object-editor.h:
365         * src/object-editor.c:
366         * src/object-editor-fill-page.c:
367                 Manage the new widget of the editor's "Fill" tab : key combo and radio button
368                 to choose between static color or merge key. Use barcode code as example.
369         * src/object-editor-private.h:
370                 Add new widget in the "_glObjectEditorPrivate" structure.
371         * src/print.c:
372                 Modify the draw functions to get merge data if needed.
373         * src/xml-label.c:
374                 Modify the parser to record/retreive the field value for objects that need
375                 "Fill color" attribute. For box/ellipse, put attribute "fill_color" for static
376                 color or "fill_color_field" for merge data.             
377         
378 2005-01-04  Jim Evins  <evins@snaught.com>
379
380         * AUTHORS:
381         * data/templates/avery-iso-templates.xml:
382         * data/templates/misc-iso-templates.xml:
383         * data/templates/misc-us-templates.xml:
384                 Added templates, submitted by Larry Harriman, Juan Carlos Valero, and
385                 Nick Hill.
386
387 2004-11-26  Jim Evins  <evins@snaught.com>
388
389         * AUTHORS:
390         * po/fr.po:
391                 Updated french translations provided by Florent Morel <florent@taket.org>.
392         * src/view-barcode.c:
393         * src/view-box.c:
394         * src/view-ellipse.c:
395         * src/view-image.c:
396         * src/view-line.c:
397         * src/view-text.c:
398                 Added '#include <config.h>' -- HAVE_*GETTEXT macros were not defined and
399                 thus _() strings were not being translated.
400
401 2004-11-14  Jim Evins  <evins@snaught.com>
402
403         * src/debug.h:
404         * src/debug.c: (gl_debug_init), (gl_debug):
405                 Borrowed from gedit:  use environmental variables to select debug
406                 sections.
407         * src/splash.c:
408                 Removed unused include of debug.h.
409         * src/glabels.c: (main):
410                 Added call to gl_debug_init(), and removed debug clutter from command line
411                 options.
412         * src/glabels-batch.c: (main):
413                 Added call to gl_debug_init().
414
415 2004-11-13  Jim Evins  <evins@snaught.com>
416
417         Drawing and property toolbars were being initialized with the "icons and text"
418         look in Fedora Core 3.  Even though none of the buttons had any text attached to
419         them, the buttons were being sized as if they were.  This led to less real estate
420         for the property editor, leading to Bug #1064630.  The
421         
422         * data/ui/glabels-ui.xml:
423                 Added explicit "look" property to both drawing and property toolbars.
424         * src/prefs-model.c: (gl_prefs_model_save_settings),
425         (gl_prefs_model_load_settings):
426         * src/prefs-model.h:
427                 Removed drawing_toolbar_button_style configuration parameter.
428         * src/ui.c: (view_menu_item_toggled_cb),
429         (set_app_drawing_toolbar_style):
430                 Do not attempt to adjust look property of the drawing toolbar.
431
432 2004-10-28  Jim Evins  <evins@snaught.com>
433
434         * data/pixmaps/glabels-about-logo.png:
435                 Updated about logo.
436         
437 2004-10-28  Jim Evins  <evins@snaught.com>
438
439         * data/man/glabels.1:
440         * src/glabels-batch.c: (main):
441         * src/print.h:
442         * src/print.c: (gl_print_batch):
443
444                 Added option to glabels-batch to select the first label to begin
445                 printing on.
446
447 2004-09-26  Jim Evins  <evins@snaught.com>
448
449         * data/desktop/glabels.desktop.in:
450                 Point to app icon, "glabels.png"
451         * data/mime/glabels.keys.in:
452                 Point at mime icon, "glabels-application-x-glabels.png"
453         * data/pixmaps/Makefile.am:
454                 Added glabels_app_icondir.  Renamed icons.
455         * data/pixmaps/glabels.png:
456                 New cleaned up app icon.  Deleted glabels-icon.png.
457         * data/pixmaps/glabels-application-x-glabels.png:
458                 New mime icon.
459         * data/pixmaps/glabels-splash.png:
460                 Renamed glabels-logo to glabels-splash to be more correct about role.
461         * src/glabels.c:
462         * src/template-designer.c:
463                 Point at app icon, "glabels.png"
464         * src/splash.c:
465                 Point at renamed splash image, "glabels-splash.png"
466
467 2004-08-22  Jim Evins  <evins@snaught.com>
468
469         * AUTHORS:
470         * src/glabels-batch.c: (main):
471                 Applied patch with minor mods to allow selecting merge source and
472                 crop-marks on glabels-batch's command line.  Original patch provided by
473                 José Dapena Paz <jdapena@igalia.com>.
474         
475 2004-08-15  Jim Evins  <evins@snaught.com>
476
477         * data/desktop/glabels.desktop.in:
478                 - Added encoding line
479                 - Removed period from comment
480                 - Fixed Terminal line, changed "0" to "false"
481                 - Added semicolen to Categories line
482         * po/ja.po:
483                 - Made sure desktop.in comment string above still translated properly
484
485 2004-08-14  Jim Evins  <evins@snaught.com>
486
487         * libglabels/xml-paper.c: (gl_xml_paper_parse_paper_node):
488         * libglabels/xml-template.c: (gl_xml_template_parse_template_node):
489         * src/xml-label-191.c: (xml191_parse_sheet):
490                 Fixed improper freeing of gettext strings.  Merged from 2.0.1.
491         * configure.in:
492                 Reconciled libglabels versioning with 2.0.1.
493         
494
495 2004-08-14  Jim Evins  <evins@snaught.com>
496
497         * configure.in:
498                 Updated version to 2.1cvs.
499         
500 2004-08-14  Jim Evins  <evins@snaught.com>
501
502         * po/ja.po:
503                 Updated 2.0.x translation by Takeshi AIHANA <aihana@gnome.gr.jp>.
504
505 2004-08-14  Jim Evins  <evins@snaught.com>
506
507         Fixes for Bug #1008181.
508
509         * src/bc.c: (gl_barcode_default_digits):
510                 Make a format of zero digits, harmless.
511         * src/xml-label.c: (xml_parse_object_barcode):
512                 Set default value of the format property of barcode objects to 10, not
513                 zero.  This will prevent crashes when reading pre 2.0.x files.
514
515 2004-08-09  Jim Evins  <evins@snaught.com>
516
517         * NEWS:
518         * TODO:
519         * help/C/glabels-C.omf:
520         * help/C/glabels.xml:
521                 Brought documentation up-to-date for 2.0.0 release.
522         
523 2004-08-09  Jim Evins  <evins@snaught.com>
524
525         These are hopefully the final preparations for 2.0.0.
526
527         * data/mime/Makefile.am:
528                 Include glabels.xml in EXTRA_DIST.
529         * configure.in:
530                 - Updated comment style.
531                 - Added LIBGLABELS_VERSION_INFO macro, updated Current.
532                 - Added package and version info to configuration printout
533                 - Update version to 2.0.0
534         * libglabels/Makefile.am:
535                 Use the new LIBGLABELS_VERSION_INFO macro.
536
537 2004-08-09  Jim Evins  <evins@snaught.com>
538
539         * configure.in:
540         * glabels.spec.in:
541                 Cleanup of required library macros.
542
543 2004-08-08  Jim Evins  <evins@snaught.com>
544
545         * glabels.spec.in:
546                 - Updated URL
547                 - More specific of what to install in /usr/bin and /usr/lib
548                 - Remove built mime registration files from staging directory
549
550 2004-08-08  Jim Evins  <evins@snaught.com>
551
552         * data/mime/Makefile.am:
553                 Fixed typo:  key_files should have been keys_files.
554
555 2004-08-08  Jim Evins  <evins@snaught.com>
556
557         Reorganization of runtime data files.  Also added registration of mimetype with
558         new freedesktop.org mime database if available.
559         
560         * data/*
561                 Moved files to appropriate subdirectories, creating local Makefile.am
562                 in each subdirectory.
563                 - Moved paper-sizes.xml and *-templates.xml to templates subdirectory.
564                   These are now installed at $datadir/glabels/templates.
565                 - Moved glabels.1 to man subdirectory.
566                 - Moved glabels-2.0.dtd to dtd subdirectory.
567                 - Moved glabels.desktop.in to desktop subdirectory.
568                 - Moved glabels.keys.in and glabels.mime to mime subdirectory.
569         * data/pixmaps/*
570                 Moved "./pixmaps" to "./data/pixmaps"
571         * data/ui/*
572                 Moved src/glabels-ui.xml to data/ui directory. Created Makefile.am.
573         * data/glade/*
574                 Moved libglade files from src to data/glade. Created Makefile.am.
575         * Makefile.am:
576                 Removed pixmaps from SUBDIRS.
577         * configure.in:
578                 - Removed pixmaps from makefiles.
579                 - Added makefiles for new subdirs of data.
580                 - Added tests for freedesktop.org mime database.
581         * glabels.spec.in:
582                 - Added tests for freedesktop.org mime database for post install and
583                   post un-install actions.
584         * libglabels/Makefile.am:
585                 Moved system template files to $(datadir)/glabels/templates.
586         * libglabels/libglabels-private.h:
587                 Moved system template files to $(datadir)/glabels/templates.
588         * po/POTFILES.in:
589                 - Accounted for movement of ui and libglade files.
590                 - Added missing .in files.
591                 - Reorganized by directory.
592         * src/Makefile.am:
593                 Accounted for movement of ui and libglade files.
594         * data/mime/glabels.xml.in:
595                 New file for registering with freedesktop.org mime database.
596
597 2004-08-07  Jim Evins  <evins@snaught.com>
598
599         * src/recent-files/*:
600                 Re-synced to latest libegg/recent-files.
601         
602 2004-08-07  Jim Evins  <evins@snaught.com>
603
604         * Makefile.am:
605         * configure.in:
606         * help/*
607                 Renamed "./doc" directory to "./help" which contains user documentation,
608                 to be more consistent with other GNOME applications.
609         
610
611 2004-07-26  Jim Evins  <evins@snaught.com>
612
613         * src/merge-properties-dialog.c: (gl_merge_properties_dialog_init):
614                 Corrected button order of merge properties dialog.
615
616 2004-07-18  Jim Evins  <evins@snaught.com>
617
618         * data/glabels-2.0.dtd:
619         * src/bc.c: (gl_barcode_default_digits), (gl_barcode_can_freeform),
620         (gl_barcode_get_prefered_n):
621         * src/bc.h:
622         * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
623         (gl_label_barcode_get_props), (get_size):
624         * src/label-barcode.h:
625         * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page),
626         (style_changed_cb), (gl_object_editor_set_bc_style),
627         (gl_object_editor_get_bc_style):
628         * src/object-editor-data-page.c: (data_radio_toggled_cb),
629         (gl_object_editor_set_data), (gl_object_editor_get_data):
630         * src/object-editor-private.h:
631         * src/object-editor.c: (gl_object_editor_set_key_names):
632         * src/object-editor.glade:
633         * src/object-editor.h:
634         * src/print.c: (draw_barcode_object):
635         * src/view-barcode.c: (update_object_from_editor_cb),
636         (update_editor_from_object_cb),
637         (gl_view_barcode_create_event_handler), (draw_barcode):
638         * src/xml-label-04.c: (xml04_parse_barcode_props):
639         * src/xml-label-191.c: (xml191_parse_barcode_props):
640         * src/xml-label.c: (xml_parse_object_barcode),
641         (xml_create_object_barcode):
642                 Added "format" attribute to barcode objects.  This attribute is used
643                 to properly format freeform barcodes barcodes prior to merge data is
644                 applied, so that barcodes can be accurately layed out.  This addresses
645                 remaining issues of feature request #824787.  Also added an example of
646                 the format in the object editor.
647
648 2004-07-12  Jim Evins  <evins@snaught.com>
649
650         Various code cleanups.
651
652         * src/label-barcode.c:
653                 Removed unneeded include of gnome-glyphlist.h.
654         
655         * src/label-text.c: (get_size):
656                 Fixed memory leak: unref glyphlists when done with them.
657         
658         * src/object-editor-bc-page.c: (gl_object_editor_prepare_bc_page):
659         * src/object-editor-data-page.c:
660         (gl_object_editor_prepare_data_page):
661         * src/object-editor-image-page.c:
662         (gl_object_editor_prepare_image_page):
663         * src/object-editor-line-page.c:
664         (gl_object_editor_prepare_line_page):
665         * src/object-editor-lsize-page.c:
666         (gl_object_editor_prepare_lsize_page):
667         * src/object-editor-position-page.c:
668         (gl_object_editor_prepare_position_page):
669         * src/object-editor-size-page.c:
670         (gl_object_editor_prepare_size_page):
671         * src/object-editor-text-page.c:
672         (gl_object_editor_prepare_text_page):
673                 Removed unneeded size groups, originally intended to keep widgets aligned.
674                 Now use tables to lay these out in object-editor.glade.
675         
676         * src/print.c: (draw_text_object):
677                 Fixed memory leak: unref glyphlists when done with them.
678
679         * src/view-barcode.c: (draw_barcode):
680                 Fixed memory leak: unref glyphlists when done with them.
681
682         * src/view-text.c: (update_object_from_editor_cb), (draw_hacktext):
683                 - Removed unneeded cast of gl_object_editor_get_text_line_spacing()s
684                   return value.
685                 - Fixed memory leak: unref glyphlists when done with them.
686
687 2004-07-11  Jim Evins  <evins@snaught.com>
688
689         * data/glabels-2.0.dtd:
690         * src/label-text.c: (gl_label_text_instance_init), (copy),
691         (gl_label_text_set_auto_shrink), (gl_label_text_get_auto_shrink):
692         * src/label-text.h:
693         * src/object-editor-private.h:
694         * src/object-editor-text-page.c:
695         (gl_object_editor_prepare_text_page),
696         (gl_object_editor_set_text_auto_shrink),
697         (gl_object_editor_get_text_auto_shrink):
698         * src/object-editor.c: (gl_object_editor_set_key_names):
699         * src/object-editor.glade:
700         * src/object-editor.h:
701         * src/print.c: (draw_text_object):
702         * src/view-text.c: (update_object_from_editor_cb),
703         (update_editor_from_object_cb):
704         * src/xml-label.c: (xml_parse_object_text),
705         (xml_create_object_text):
706                 Added option to allow document merge to auto shrink text size to fit
707                 within the text box.  The code in print.c that actually shrinks the
708                 text is loosely based on a patch submitted by Mark Harrison
709                 <mark.harrison@velocitynet.com.au>.  This addresses feature request
710                 #661421.
711         
712 2004-07-11  Jim Evins  <evins@snaught.com>
713
714         * data/glabels-2.0.dtd:
715         * libglabels/template.c: (gl_template_rect_label_type_new),
716         (gl_template_round_label_type_new),
717         (gl_template_cd_label_type_new), (gl_template_label_type_dup),
718         (template_full_page):
719         * libglabels/template.h:
720         * libglabels/xml-template.c: (xml_parse_label_rectangle_node),
721         (xml_create_label_node):
722         * pixmaps/ex-rect-size.png:
723         * src/print.c: (clip_to_outline), (clip_punchouts):
724         * src/template-designer.c: (construct_rect_size_page),
725         (rect_size_page_prepare_cb), (layout_page_prepare_cb),
726         (build_template):
727         * src/template-designer.glade:
728         * src/xml-label-191.c: (xml191_parse_label):
729                 Modifications to allow separate horizontal (x_waste) and vertical (y_waste)
730                 properties for rectangular labels.  Templates remain backwards compatible,
731                 but this breaks the libglabels API (I don't know of anyone outside of
732                 glabels using libglabels at this time -- what can I say, the program is
733                 is still "unstable").  This addresses the suggestion in Feature Request
734                 #976313.
735
736 2004-07-05  Jim Evins  <evins@snaught.com>
737         * src/print.c: (print_crop_marks), (draw_outline):
738                 Changed crop marks and label outlines to black, instead of 25% gray.
739                 This addresses debian Bug #257460.
740
741 2004-07-05  Jim Evins  <evins@snaught.com>
742
743         * src/object-editor-fill-page.c: (gl_object_editor_set_fill_color):
744         * src/object-editor-line-page.c: (gl_object_editor_set_line_color):
745                 Preserve "is_default" of fill and line color_combos when creating from
746                 existing objects.
747
748 2004-07-02  Jim Evins  <evins@snaught.com>
749
750         * data/glabels.1:
751                 Created man page.  Based on page submitted by Matthew J. Lockner, however
752                 it has been severely edited.
753         
754         * data/avery-other-templates.xml
755         * data/misc-other-templates.xml:
756                 Started new files for predefined templates with non-standard sheet sizes.
757                 These have been initially populated with the Avery 06141 and
758                 OfficeMax #86112, both provided by Matthew J. Lockner.
759         
760         * data/Makefile.am:
761                 Install above manpage and template files.
762         
763         * glabels.spec.in:
764                 Make sure we install man pages.
765         
766         * src/glabels-batch.c:
767                 Changed short form of help option to '-?' to be consistent with glabels.
768         
769         * AUTHORS:
770                 Added acknowledgement for above labels.
771
772 2004-07-02  Jim Evins  <evins@snaught.com>
773
774         * src/glabels.c: (main), (save_session_cb):
775                 - Now include libbonoboui.h, recent.h, and file.h to provide missing
776                   prototypes.
777                 - save_session_cb() now returns gboolean.
778                 - Minor formatting changes.
779
780         * src/window.h:
781         * src/window.c:
782                 - Now include file.h to provide missing prototype.
783                 - gl_window_get_type() now returns GType, not guint.  I believe this may
784                   ultimately be cause of the segfault reported in Bug #982287, since
785                   GType is actually a gulong, which may not be compatible on other
786                   architectures (64bit) -- I cannot personally test this at this time.
787                   I was sloppy in several other xxx_get_type() functions which also
788                   returned guint -- see next group of files:
789         
790         * src/window.c: (gl_window_get_type):
791         * src/canvas-hacktext.c: (gl_canvas_hacktext_get_type):
792         * src/canvas-hacktext.h:
793         * src/hig.c: (gl_hig_alert_get_type), (gl_hig_dialog_get_type),
794         (gl_hig_category_get_type), (gl_hig_vbox_get_type),
795         (gl_hig_hbox_get_type):
796         * src/hig.h:
797         * src/label-barcode.c: (gl_label_barcode_get_type):
798         * src/label-barcode.h:
799         * src/label-box.c: (gl_label_box_get_type):
800         * src/label-box.h:
801         * src/label-ellipse.c: (gl_label_ellipse_get_type):
802         * src/label-ellipse.h:
803         * src/label-image.c: (gl_label_image_get_type):
804         * src/label-image.h:
805         * src/label-line.c: (gl_label_line_get_type):
806         * src/label-line.h:
807         * src/label-object.c: (gl_label_object_get_type):
808         * src/label-object.h:
809         * src/label-text.c: (gl_label_text_get_type):
810         * src/label-text.h:
811         * src/label.c: (gl_label_get_type):
812         * src/label.h:
813         * src/merge-properties-dialog.c:
814         (gl_merge_properties_dialog_get_type):
815         * src/merge-properties-dialog.h:
816         * src/merge-text.c: (gl_merge_text_get_type):
817         * src/merge-text.h:
818         * src/merge.c: (gl_merge_get_type):
819         * src/merge.h:
820         * src/object-editor.c: (gl_object_editor_get_type):
821         * src/prefs-dialog.c: (gl_prefs_dialog_get_type):
822         * src/prefs-dialog.h:
823         * src/prefs-model.c: (gl_prefs_model_get_type):
824         * src/prefs-model.h:
825         * src/print-dialog.c: (gl_print_dialog_get_type):
826         * src/print-dialog.h:
827         * src/template-designer.c: (gl_template_designer_get_type):
828         * src/template-designer.h:
829         * src/ui-property-bar.c: (gl_ui_property_bar_get_type):
830         * src/ui-property-bar.h:
831         * src/ui-sidebar.c: (gl_ui_sidebar_get_type):
832         * src/ui-sidebar.h:
833         * src/view-barcode.c: (gl_view_barcode_get_type):
834         * src/view-barcode.h:
835         * src/view-box.c: (gl_view_box_get_type):
836         * src/view-box.h:
837         * src/view-ellipse.c: (gl_view_ellipse_get_type):
838         * src/view-ellipse.h:
839         * src/view-highlight.c: (gl_view_highlight_get_type):
840         * src/view-highlight.h:
841         * src/view-image.c: (gl_view_image_get_type):
842         * src/view-image.h:
843         * src/view-line.c: (gl_view_line_get_type):
844         * src/view-line.h:
845         * src/view-object.c: (gl_view_object_get_type):
846         * src/view-object.h:
847         * src/view-text.c: (gl_view_text_get_type):
848         * src/view-text.h:
849         * src/view.c: (gl_view_get_type):
850         * src/view.h:
851         * src/wdgt-chain-button.c: (gl_wdgt_chain_button_get_type):
852         * src/wdgt-image-select.c: (gl_wdgt_image_select_get_type):
853         * src/wdgt-image-select.h:
854         * src/wdgt-media-select.c: (gl_wdgt_media_select_get_type):
855         * src/wdgt-media-select.h:
856         * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_get_type):
857         * src/wdgt-mini-preview.h:
858         * src/wdgt-print-copies.c: (gl_wdgt_print_copies_get_type):
859         * src/wdgt-print-copies.h:
860         * src/wdgt-print-merge.c: (gl_wdgt_print_merge_get_type):
861         * src/wdgt-print-merge.h:
862         * src/wdgt-rotate-label.c: (gl_wdgt_rotate_label_get_type):
863         * src/wdgt-rotate-label.h:
864                 - Made sure all xxx_get_type functions returned GType, not guint.  This
865                   was the case in hig.[ch], window.[ch], ui-property-bar.[ch],
866                   ui-sidebar.[ch], view.[ch], wdgt-image-select.[ch],
867                   wdgt-media-select.[ch], wdgt-mini-preview.[ch], wdgt-print-copies.[ch],
868                   wdt-print-merge.[ch], and wdgt-rotate-label.[ch].  See separate
869                   window.[ch] details above for more info.
870                 - Reconciled various coding style differences in all xxx_get_type()
871                   functions:
872                         * All prototypes include G_GNUC_CONST.
873                         * All prototypes specify the return value as GType, not GtkType
874                           or guint.
875                         * Info structures are all declared as "static const."
876                         * Generalized the names of type and info variables.
877                         * Miscelaneous formatting.
878
879 2004-06-08  Jim Evins  <evins@snaught.com>
880
881         * src/label.c:
882         * src/label.h:
883         * src/xml-label.c:
884         * AUTHORS:
885                 Don't touch compression of original file -- still defaults to 9 for
886                 new files.  Original patch provided by Javier Donaire Segarra
887                 (#912252 in patch tracker).
888
889 2004-05-05  Jim Evins  <evins@snaught.com>
890
891         * data/glabels-2.0.dtd:
892                 Broke DTD previously when adding new barcode types that contain a
893                 plus sign (+).  Simply changed the BC_STYLE_TYPE entity to "CDATA"
894                 to avoid the problem.
895         * data/avery-iso-templates.xml:
896         * data/zweckform-iso-templates.xml:
897         * AUTHORS:
898                 Added templates for Avery 7165, Zweckform 3688, 4732, and 6021.  Templates
899                 provided by Frank Altpeter.
900         * libglabels/xml-template.c: (xml_create_label_node):
901                 Reordered markup and layout sub-nodes so that resulting templates will
902                 validate against DTD.
903
904 2004-03-13  Jim Evins  <evins@snaught.com>
905
906         * src/object-editor-size-page.c: (gl_object_editor_prepare_size_page):
907                 Changed spin callback signals from "value-changed" back to "changed."
908                 This was accidentally introduced in a previous revision, and can cause
909                 size changes just by selecting the size tab.
910
911 2004-03-06  Jim Evins  <evins@snaught.com>
912
913         * src/view.c: (draw_grid_layer):
914                 For round labels (round and cd) adjust grid so that it lines up with
915                 center of label.  Also, no longer draw box around label in the grid layer,
916                 it is hidden by he fg layer anyway.  Feature suggested by
917                 nemolivier@free.fr.  Although the grid is aligned with the center of the
918                 label, the coordinate system is still relative to the upper left corner
919                 of the rectangle containing the label.
920
921 2004-02-25  Jim Evins  <evins@snaught.com>
922
923         * configure.in:
924                 Changed version to 2.0pre1cvs
925         
926         * libglabels/xml-template.c: (gl_xml_template_parse_templates_doc):
927                 Removed extra xmlFreeDoc() calls upon error.  Also print the doc->URL
928                 instead of doc->name fields when errors encountered.
929
930 2004-02-21  Jim Evins  <evins@snaught.com>
931
932         * data/avery-iso-templates.xml:
933                 Added aliases for Avery 8651.  Patch provided by Wayne Schuller.
934         
935         * glabels.spec.in:
936                 Added libglabels library and include file to installed files.
937                 
938         * configure.in:
939                 Final prep for 1.93.3.
940
941 2004-02-20  Jim Evins  <evins@snaught.com>
942
943         * src/glabels-batch.c: (main):
944                 Changed key for setting output filename to GNOME_PRINT_KEY_OUTPUT_FILENAME
945                 as suggested by Javier Donaire Segarra.  This addresses bug #901063.
946
947 2004-02-16  Jim Evins  <evins@snaught.com>
948
949         * configure.in:
950                 If gtk+ >= 2.3.2 then define HAVE_FILE_CHOOSER.
951         
952         * src/Makefile.am:
953                 Added HAVE_FILE_CHOOSER to INCLUDES.
954         
955         * src/file.c: (gl_file_open), (open_response), (gl_file_open_real),
956         (gl_file_save_as), (save_as_response):
957                 Ported to use GtkFileChooserDialog if HAVE_FILE_CHOOSER is defined.
958
959 2004-02-16  Jim Evins  <evins@snaught.com>
960
961         * src/xml-label-04.c: (xml04_parse_image_props):
962         * src/xml-label-191.c: (xml191_parse_image_props):
963         * src/xml-label.c: (xml_parse_object_image):
964                 Delay setting image size until after image has been applied to new
965                 object.
966         
967 2004-02-15  Jim Evins  <evins@snaught.com>
968
969         * src/label-barcode.c: (gl_label_barcode_set_data),
970         (gl_label_barcode_set_props):
971                 Don't emit "changed" signal, if no change actually made for these
972                 methods.  Reduces number of unnecessary redraws of barcodes.
973         
974         * src/label-object.h:
975         * src/label-object.c: (gl_label_object_set_position),
976         (gl_label_object_set_position_relative), (set_size),
977         (gl_label_object_set_size),
978         (gl_label_object_set_size_honor_aspect):
979                 Don't emit "changed" signal, if no change actually made for these
980                 methods.
981
982 2004-02-15  Jim Evins  <evins@snaught.com>
983
984         * data/glabels-2.0.dtd:
985                 Added specific subtypes for various barcode types.
986         
987         * src/bc.h:
988         * src/bc.c: (id_to_index), (name_to_index), (gl_barcode_new),
989         (gl_barcode_get_styles_list), (gl_barcode_default_digits),
990         (gl_barcode_can_text), (gl_barcode_text_optional),
991         (gl_barcode_can_csum), (gl_barcode_csum_optional),
992         (gl_barcode_id_to_name), (gl_barcode_name_to_id):
993                 Changed API to use a string id, rather than a fixed enumeration.  Id and
994                 name are separate strings.  Added entries to backend table for specific
995                 subtypes for various barcode types.
996         
997         * src/bc-postnet.h:
998         * src/bc-postnet.c: (gl_barcode_postnet_new), (postnet_code),
999         (is_length_valid):
1000                 Modified to conform to above API.  Now more stringent with data length
1001                 for various subtypes.
1002         
1003         * src/bc-gnubarcode.h:
1004         * src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new),
1005         (is_length_valid), (is_length1_valid), (is_length2_valid):
1006                 Modified to conform to above API.  Now more stringent with data length
1007                 for various subtypes.
1008
1009         * src/label-barcode.h:
1010         * src/label-barcode.c: (copy), (gl_label_barcode_set_props),
1011         (gl_label_barcode_get_props), (get_size):
1012                 Modified to use above API for storing barcode type.
1013         
1014         * src/object-editor.h:
1015         * src/object-editor-bc-page.c: (style_changed_cb),
1016         (gl_object_editor_set_bc_style), (gl_object_editor_get_bc_style):
1017                 Modified to use above API for storing barcode type.
1018         
1019         * src/object-editor-size-page.c:
1020         (gl_object_editor_prepare_size_page), (aspect_toggle_cb),
1021         (w_spin_cb), (h_spin_cb), (size_reset_cb):
1022                 Added debug markers.
1023         
1024         * src/object-editor.glade:
1025                 Made barcode style combo's text entry  non-editable.
1026         
1027         * src/print.c: (draw_barcode_object):
1028                 Modified to use above API for barcode type.
1029
1030         * src/view-barcode.c: (update_object_from_editor_cb),
1031         (update_editor_from_object_cb),
1032         (gl_view_barcode_create_event_handler), (draw_barcode):
1033                 Modified to use above API for barcode type.
1034         
1035         * src/xml-label-04.c: (xml04_parse_barcode_props):
1036         * src/xml-label-191.c: (xml191_parse_barcode_props):
1037         * src/xml-label.c: (xml_parse_object_barcode),
1038         (xml_create_object_barcode):
1039                 Modified to use above API for barcode type.
1040
1041 2004-02-07  Jim Evins  <evins@snaught.com>
1042
1043         * src/stock-pixmaps/Makefile.am:
1044         * src/stock-pixmaps/stock_hchain_24.png:
1045         * src/stock-pixmaps/stock_hchain_broken_24.png:
1046         * src/stock-pixmaps/stock_vchain_24.png:
1047         * src/stock-pixmaps/stock_vchain_broken_24.png:
1048                 Added chain pixmaps borrowed from the gimp's default theme.
1049
1050         * src/stock.h:
1051         * src/stock.c: (gl_stock_init), (add_button_icon):
1052                 Added above pixmaps to stock icon sets.  Created add_button_icon() to
1053                 add these pixmaps sized as GTK_ICON_SIZE_BUTTON.
1054         
1055         * src/wdgt-chain-button.h
1056         * src/wdgt-chain-button.c
1057         * src/Makefile.am:
1058         * po/POTFILES.in:
1059                 Added this Modified version of gimpchainbutton widget, borrowed from
1060                 the gimp.
1061         
1062         * AUTHORS:
1063                 Added acknowledgements of the above borrowing from the gimp.
1064         
1065         * src/object-editor-size-page.c: (aspect_toggle_cb), (w_spin_cb),
1066         (h_spin_cb):
1067         * src/object-editor.c: (gl_object_editor_construct_chain_button):
1068         * src/object-editor.glade:
1069                 Replaced the keep aspect ratio check box with the above chain-button
1070                 widget.
1071         
1072         * src/text-node.c: (gl_text_node_equal):
1073         * src/text-node.h:
1074                 Added function gl_text_node_equal() to compare text_nodes.
1075         
1076         * src/label-image.c: (gl_label_image_set_filename):
1077                 Replaced incomplete text_node comparison code with invocation of
1078                 gl_text_node_equal.  This fixed the problem of not being able to
1079                 resize an image using the object_editor if the aspect ratio is not
1080                 locked.
1081
1082 2004-02-04  Jim Evins  <evins@snaught.com>
1083
1084         * src/object-editor-image-page.c:
1085         (gl_object_editor_prepare_image_page):
1086                 Track "changed" signal of pixmap entry's GtkEntry rather than its
1087                 "activate" signal -- this catches all changes to the entry rather than
1088                 just changes resulting from a browse, so one can easily pull previous
1089                 entries from the history. (This change is marked below on 2004-02-03,
1090                 but somehow never got checked in.)
1091
1092         * src/view-highlight.c: (sl_resize_event_handler),
1093         (sr_resize_event_handler), (st_resize_event_handler),
1094         (sb_resize_event_handler):
1095                 Side resize handles will now confirm the actual resize that the object
1096                 accepted before adjusting position parameters.  Previously some interesting
1097                 things happened when resizing a barcode to its minimum size.
1098
1099 2004-02-03  Jim Evins  <evins@snaught.com>
1100
1101         * src/object-editor-image-page.c:
1102         (gl_object_editor_prepare_image_page):
1103                 Track "changed" signal of pixmap entry's GtkEntry rather than its
1104                 "activate" signal -- this catches all changes to the entry rather than
1105                 just changes resulting from a browse, so one can easily pull previous
1106                 entries from the history.
1107         
1108         * src/view-highlight.c: (tl_resize_event_handler),
1109         (tr_resize_event_handler), (bl_resize_event_handler),
1110         (br_resize_event_handler):
1111                 Allow control key to be dropped while dragging a corner resize handle
1112                 without losing the aspect ratio lock.
1113
1114 2004-02-02  Jim Evins  <evins@snaught.com>
1115
1116         * src/label-image.c: (gl_label_image_set_filename):
1117                 When setting a new filename adjust size such that the aspect ratio of
1118                 the image is preserved using the current size as a bounding box.
1119                 
1120         * src/view-image.c: (update_object_from_editor_cb):
1121                 When updating object from editor, feed back possible size changes to
1122                 editor as a result of a possible change in image.
1123         
1124         * src/object-editor-size-page.c: (size_reset_cb):
1125                 Fixed typo when blocking spin handlers.  If the base size is larger than
1126                 the max size, treat max size as a bounding box while keeping aspect
1127                 ratio.
1128                 
1129
1130 2004-02-02  Jim Evins  <evins@snaught.com>
1131
1132         * src/label-object.h:
1133         * src/label-object.c: (gl_label_object_set_size),
1134         (gl_label_object_set_size_honor_aspect):
1135                 Added gl_label_object_set_size_honor_aspect() which will maintain the
1136                 current aspect ratio by modifying the supplied w or h apropriately.
1137         
1138         * src/view-highlight.c: (tl_resize_event_handler),
1139         (tr_resize_event_handler), (bl_resize_event_handler),
1140         (br_resize_event_handler):
1141                 Corner handles will now maintain the current aspect ratio if the
1142                 control key is pressed while resizing.  This addresses feature
1143                 request #816603.
1144        
1145
1146 2004-01-31  Jim Evins  <evins@snaught.com>
1147
1148         * AUTHORS:
1149         * data/avery-us-templates.xml:
1150                 Added entries for "LSK-3," "LSK-5," and "LSK-8."  Submitted by JBadger.
1151         
1152         * libglabels/template.c: (read_template_files_from_dir):
1153                 Corrected problem with testing for extensions.
1154         
1155         * src/object-editor.glade:
1156                 Corrected grouping of radio buttons in barcode data page.
1157
1158         * src/print.c: (draw_barcode_object):
1159         * src/view-barcode.c: (draw_barcode):
1160                 Corrected problem with calculation of y_offset for locating characters.
1161
1162 2004-01-24  Jim Evins  <evins@snaught.com>
1163
1164         * AUTHORS:
1165         * data/avery-us-templates.xml:
1166                 Added Avery 5824, submitted by Fred Bacon.
1167         
1168 2004-01-20  Jim Evins  <evins@snaught.com>
1169
1170         Catching up on a couple of backlogged user template submissions.
1171
1172         * data/avery-iso-templates.xml:
1173                 Added "DECAdry OLW-4731" and "DECAdry DLW-1731" aliases for Avery 7160.
1174                 Suggested by Linas Jakucionis.
1175         
1176         * data/zweckform-iso-templates.xml:
1177                 Added Zweckform 4760, submitted by Thomas Vill.
1178
1179         * AUTHORS:
1180                 Updated to reflect above submissions.
1181
1182 2004-01-06  Jim Evins  <evins@snaught.com>
1183
1184         Split-out template.[ch], paper.[ch], xml-template.[ch], xml-paper.[ch], and
1185         xml.[ch] into a separate library called libglabels, to facilitate third
1186         party use of glabels template files.  This was suggested by Wayne Schuller.
1187         Once split-out, some modifications to the structures and functions to
1188         make a cleaner more useful API, hopefully.  Rather extensive changes have
1189         propogated to other modules.
1190
1191         * src/paper.h:
1192         * src/paper.c:
1193         * src/template.h:
1194         * src/template.c:
1195         * src/xml-paper.h:
1196         * src/xml-paper.c:
1197         * src/xml-template.h:
1198         * src/xml-template.c:
1199         * src/xml.h:
1200         * src/xml.c:
1201                 These files have been moved to libglabels/.  API cleanup performed.
1202
1203         * libglabels/libglabels.h:
1204         * libglabels/libglabels-private.h:
1205         * libglabels/Makefile.am:
1206                 These files have been added to finish out libglabels.
1207         
1208         * Makefile.am:
1209         * configure.in:
1210         * glabels.spec.in:
1211         * po/POTFILES.in:
1212         * src/Makefile.am:
1213                 Modified to reflect new sets of files in src/ and libglabels/.
1214
1215         * COPYING.LIBGLABELS:
1216         * COPYING-DOCS:
1217                 Added copy of the LGPL for libglabels, and a copy the GFDL for
1218                 documentation.
1219         
1220         * src/glabels-batch.c:
1221         * src/glabels.c:
1222         * src/label.c: (gl_label_finalize), (gl_label_set_template),
1223         (gl_label_get_size):
1224         * src/label.h:
1225         * src/prefs-model.c: (gl_prefs_model_load_settings):
1226         * src/print-dialog.c:
1227         * src/print.c: (gl_print_simple), (gl_print_merge_collated),
1228         (gl_print_merge_uncollated), (gl_print_batch), (print_info_free),
1229         (print_crop_marks), (print_label), (draw_outline),
1230         (clip_to_outline), (clip_punchouts):
1231         * src/template-designer.c: (construct_pg_size_page),
1232         (pg_size_page_changed_cb), (layout_page_changed_cb),
1233         (print_test_cb), (build_template):
1234         * src/util.c: (gl_util_fraction):
1235         * src/util.h:
1236         * src/view.c: (draw_bg_fg_layers), (draw_bg_fg_rect),
1237         (draw_bg_fg_rounded_rect), (draw_bg_fg_round), (draw_bg_fg_cd),
1238         (draw_bg_fg_cd_bc), (draw_markup_layer), (draw_markup_margin),
1239         (draw_markup_margin_rect), (draw_markup_margin_rounded_rect),
1240         (draw_markup_margin_round), (draw_markup_margin_cd),
1241         (draw_markup_margin_cd_bc), (draw_markup_line),
1242         (draw_markup_circle), (gl_view_copy):
1243         * src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
1244         (page_size_entry_changed_cb), (details_update), (get_layout_desc),
1245         (get_label_size_desc):
1246         * src/wdgt-mini-preview.c:
1247         (gl_wdgt_mini_preview_set_label_by_name), (mini_outline_list_new),
1248         (cdbc_item):
1249         * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
1250         * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
1251         * src/wdgt-rotate-label.c: (mini_preview_canvas_update),
1252         (gl_wdgt_rotate_label_set_template_name), (cdbc_item):
1253         * src/wdgt-rotate-label.h:
1254         * src/xml-label-04.c: (xml04_parse_media_description):
1255         * src/xml-label-191.c: (gl_xml_label_191_parse),
1256         (xml191_parse_sheet), (xml191_parse_label), (xml191_parse_layout),
1257         (xml191_parse_markup), (xml191_parse_alias):
1258         * src/xml-label.c: (xml_doc_to_label), (xml_parse_label),
1259         (xml_label_to_doc):
1260                 Various changes to accomodate new libglabels API.
1261         
1262 2004-01-03  Jim Evins  <evins@snaught.com>
1263
1264         * configure.in:
1265                 Release 1.93.2.
1266
1267 2004-01-03  Jim Evins  <evins@snaught.com>
1268
1269         * AUTHORS:
1270                 Added acknowledgement of contributions by Wayne Schuller.
1271         
1272         * src/commands.c: (gl_cmd_file_print):
1273                 Create extra reference to print dialog, so that it can be properly re-used.
1274         
1275         * src/mygal/mygal-combo-box.h:
1276         * src/mygal/mygal-combo-box.c:
1277         (mygal_combo_box_popup_hide_unconditional),
1278         (mygal_combo_box_popup_display), (mygal_combo_box_set_display),
1279         (gtk_combo_set_tearoff_state), (mygal_combo_box_construct),
1280         (mygal_combo_box_set_arrow_relief), (mygal_combo_box_set_title),
1281         (mygal_combo_box_set_tearable):
1282                 Changed all occurances of GTK_IS_COMBO_BOX to MYGAL_IS_COMBO_BOX, to
1283                 complete the rename of this widget to prevent namespace collisions
1284                 with Gtk+-2.3.
1285         
1286         * src/prefs-dialog.glade:
1287                 Fixed alignment of Fill/Color widgets.
1288
1289 2004-01-03  Jim Evins  <evins@snaught.com>
1290
1291         * data/avery-iso-templates.xml:
1292                 Added user submitted templates.
1293                 Avery 8435A & 8435B, submitted by Ludger Solbach.
1294
1295         * doc/C/glabels.xml:
1296                 Added minimal documentation, noting the new template designer.
1297
1298 2004-01-03  Jim Evins  <evins@snaught.com>
1299
1300         * pixmaps/ex-rect-size.png:
1301         * pixmaps/ex-round-size.png:
1302         * pixmaps/ex-cd-size.png:
1303         * pixmaps/Makefile.am:
1304                 Added ex-rect-size.png, ex-round-size.png, and ex-cd-size.png image
1305                 files to be used as illustrations/examples in the template-designer.
1306
1307         * src/template-designer.c: (construct_rect_size_page),
1308         (construct_round_size_page), (construct_cd_size_page),
1309         (construct_nlayouts_page), (rect_size_page_prepare_cb),
1310         (round_size_page_prepare_cb), (cd_size_page_prepare_cb),
1311         (layout_page_prepare_cb), (build_template):
1312         * src/template-designer.glade:
1313                 Added illustrations for rectangle, round, and cd label size pages.
1314                 Added margin spinboxes to these pages, and now add a margin markup
1315                 to the constructed template.  Added realistic default values for
1316                 some of the size spinboxes.  Cleaned up the code for setting spinbox
1317                 ranges on the layouts page.
1318
1319 2004-01-02  Jim Evins  <evins@snaught.com>
1320
1321         * src/object-editor-size-page.c: (h_spin_cb):
1322                 Fixed cut-n-paste error in h_spin_cb that loaded h from
1323                 the wrong spinbutton.
1324
1325         * src/object-editor.h:
1326         * src/object-editor.c: (gl_object_editor_class_init),
1327         (gl_object_editor_changed_cb), (gl_object_editor_size_changed_cb):
1328         * src/object-editor-private.h:
1329         * src/object-editor-size-page.c: (w_spin_cb), (h_spin_cb),
1330         (size_reset_cb):
1331                 Added "size_changed" signal.
1332                 
1333         * src/view-text.c: (construct_properties_editor),
1334         (update_object_from_editor_cb),
1335         (update_object_from_editor_size_cb):
1336                 Track size changes from object editor separately from other
1337                 properties.  This is so the default size (0,0) of a text
1338                 object is not modified unintentionally.
1339
1340 2003-12-30  Wayne Schuller  <k_wayne@linuxpower.org>
1341
1342         Added feature: line spacing - allows you to comfortably space a text box to
1343         fit a label perfectly.
1344
1345         * data/glabels-2.0.dtd:
1346         * src/label-object.c: (gl_label_object_set_text_line_spacing),
1347         (gl_label_object_get_text_alignment),
1348         (gl_label_object_get_text_line_spacing):
1349         * src/label-object.h:
1350         * src/label-text.c: (gl_label_text_class_init),
1351         (gl_label_text_instance_init), (copy), (get_size),
1352         (set_text_line_spacing), (get_text_alignment),
1353         (get_text_line_spacing):
1354         * src/object-editor-private.h:
1355         * src/object-editor-text-page.c:
1356         (gl_object_editor_prepare_text_page),
1357         (gl_object_editor_set_text_line_spacing),
1358         (gl_object_editor_get_text_line_spacing):
1359         * src/object-editor.glade:
1360         * src/object-editor.h:
1361         * src/prefs-dialog.c: (construct_object_page),
1362         (update_object_page_from_prefs), (update_prefs_from_object_page):
1363         * src/prefs-dialog.glade:
1364         * src/prefs-model.c: (gl_prefs_model_save_settings),
1365         (gl_prefs_model_load_settings), (get_float):
1366         * src/prefs-model.h:
1367         * src/print.c: (draw_text_object):
1368         * src/ui-sidebar.c:
1369         * src/view-text.c: (update_object_from_editor_cb),
1370         (update_editor_from_object_cb),
1371         (gl_view_text_create_event_handler), (draw_hacktext):
1372         * src/view.c: (gl_view_construct),
1373         (gl_view_set_selection_text_line_spacing),
1374         (gl_view_set_default_text_line_spacing),
1375         (gl_view_get_default_text_line_spacing):
1376         * src/view.h:
1377         * src/xml-label.c: (xml_parse_toplevel_span),
1378         (xml_create_toplevel_span):
1379
1380 2003-12-30  Jim Evins  <evins@snaught.com>
1381
1382         * src/template-designer.c:
1383         * src/template-designer.h:
1384         * src/template-designer.glade:
1385                 New template designer assistant.
1386         
1387         * po/POTFILES.in:
1388         * src/Makefile.am:
1389                 Added entries for src/template-designer.* files.
1390         
1391         * pixmaps/ex-1layout.png
1392         * pixmaps/ex-2layouts.png
1393         * pixmaps/Makefile.am:
1394                 Added the new image files ex-*.png used as illustrations in the
1395                 template designer assistant.
1396         
1397         * src/print-dialog.h:
1398         * src/print-dialog.c: (gl_print_dialog_finalize),
1399         (gl_print_dialog_new), (gl_print_dialog_construct),
1400         (gl_print_dialog_force_outline_flag):
1401                 Changed first argument of gl_print_dialog_new() from glView to glLabel,
1402                 to support printing from the template designer assistant which does not
1403                 have a full-fledged view.  Nothing else from the view object was being
1404                 used by the dialog anyway.
1405
1406                 Added the gl_print_dialog_force_outline_flag() method, for better
1407                 integration with the template designer assistant.
1408                 
1409
1410         * src/commands.h:
1411         * src/commands.c: (gl_cmd_file_template_designer),
1412         (gl_cmd_file_print):
1413                 Modified print command to provide label instead of view to dialog.
1414                 Added the gl_cmd_file_template_designer() command to invoke the
1415                 template designer assistant.
1416         
1417         * src/ui.c:
1418         * src/glabels-ui.xml:
1419                 Added support for template designer assistant.
1420         
1421         * src/wdgt-mini-preview.h:
1422         * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_set_template),
1423         (gl_wdgt_mini_preview_set_bg_color):
1424                 Preview is now centered in canvas.  Added
1425                 gl_wdgt_mini_preview_set_bg_color() to allow the template designer
1426                 assistant to match the background color with its own.
1427         
1428         * src/print.c: (clip_to_outline):
1429                 Fixed really stupid bug when adding waste to clip region of rectangular
1430                 labels/cards.  Each side of the clip region needs to be extended by
1431                 twice the waste margin, as well as negatively offset by the waste
1432                 margin.
1433
1434 2003-12-28  Jim Evins  <evins@snaught.com>
1435
1436         * src/prefs-dialog.c: (update_object_page_from_prefs):
1437                 Block intermediary function align_toggle_cb() instead of
1438                 update_prefs_from_object_page() for the three alignment
1439                 widgets.
1440
1441 2003-12-28  Wayne Schuller  <k_wayne@linuxpower.org>
1442
1443         * src/file.c: (gl_file_new), (gl_file_properties):
1444                 Swap button order and set default for higificatory pleasure.
1445
1446 2003-12-27  Jim Evins  <evins@snaught.com>
1447
1448         * barcode-0.98/Makefile.am:
1449                 One last time:  removed doc/Makefile and po/Makefile.in.in from
1450                 EXTRA_DIST files.
1451         
1452 2003-12-27  Jim Evins  <evins@snaught.com>
1453
1454         * barcode-0.98/Makefile.am:
1455                 Removed config.stat entry from EXTRA_DIST files.
1456         
1457         * barcode-0.98/Makefile.in:
1458                 Removed.
1459
1460 2003-12-27  Jim Evins  <evins@snaught.com>
1461
1462         * configure.in:
1463                 Updated to work with latest gnome-common package from CVS.
1464                 Removed recursive configuration of barcode-0.98.
1465
1466         * acconfig.h:
1467         * macros/*:
1468                 Removed.
1469         
1470         * Makefile.am:
1471                 Added barcode-0.98/ as a SUBDIR, and removed dist-hook.
1472         
1473         * barcode-0.98/Makefile.in:
1474         * barcode-0.98/configure.in:
1475         * barcode-0.98/Makefile.am:
1476         * barcode-0.98/README.glabels:
1477                 Modified to ignore the barcode package's build system, and build
1478                 as a part of glabels.
1479                 Renamed Makefile.in to Makefile.in.dist.
1480                 Renamed configure.in to configure.in.dist.
1481                 Added barcode-0.98/Makefile.am and barcode-0.98/README.glabels.
1482         
1483         * src/Makefile.am:
1484         * src/mygal/Makefile.am:
1485         * src/recent-files/Makefile.am:
1486                 In order to build against the GNOME 2.5 platform, 
1487                 all use of *_DISABLE_DEPRECATED compile-time flags has been removed.
1488         
1489         * src/mygal/Makefile.am:
1490         * src/mygal/mygal-combo-box.c:
1491         * src/mygal/mygal-combo-box.h:
1492         * src/mygal/widget-color-combo.c:
1493         * src/mygal/widget-color-combo.h:
1494         * po/POTFILES.in:
1495                 In order to build against the GNOME 2.5 platform, 
1496                 Renamed gtk_combo_box widget to mygal_combo_box, to prevent namespace
1497                 collisions with the real gtk_combo_box widget, now a part of gtk.
1498         
1499 2003-12-26  Jim Evins  <evins@snaught.com>
1500
1501         * src/paper.c:
1502         * src/template.c:
1503         * src/util.c:
1504         * src/util.h:
1505                 Moved local versions of get_home_data_dir() in paper.c and
1506                 template.c to util package.  Cleaned up formatting in
1507                 util.[ch].
1508
1509         * src/template.c:
1510                 In gl_template_register() save a copy of the template in
1511                 ~/.glabels if the template is not known.  Still need to
1512                 handle duplicate filename case and duplicate name but
1513                 different template case.
1514         
1515         * src/xml-label.c:
1516         * src/xml.h:
1517                 Moved local definition of NAME_SPACE macro from xml-label.c
1518                 to xml.h.
1519         
1520         * src/xml-template.c:
1521         * src/xml-template.h:
1522                 Added function gl_xml_template_write_template_to_file(), used
1523                 in gl_template_register().