Jim Evins [Wed, 2 Jan 2008 03:03:58 +0000 (03:03 +0000)]
2008-01-01 Jim Evins <evins@snaught.com>
* src/merge-evolution.c:
Sort evolution by "file_under" field. Original patch provided
by Peter Cherriman <glabels-devel2712@bubieyehyeh.me.uk> in
Patch #1860423.
* AUTHORS:
Added acknowledgement for above patch.
Jim Evins [Sun, 16 Dec 2007 04:51:59 +0000 (04:51 +0000)]
2007-12-15 Jim Evins <evins@snaught.com>
* data/glade/object-editor.glade:
Removed any GtkTable that contained a GtkComboBox because the size of
the combo box was not constrained properly. This sacrifices the nice
orderly labels for combo boxes that don't extend beyond the edge of the
window.
Jim Evins [Sat, 15 Dec 2007 03:27:01 +0000 (03:27 +0000)]
2007-12-14 Jim Evins <evins@snaught.com>
* libglabels/db.c:
Optimize template search by name by using a GHashTable.
* src/mini-preview-pixbuf-cache.c:
* src/mini-preview-pixbuf-cache.h:
Store one pixbuf per template, but use a key for each alias.
* src/wdgt-media-select.c:
Optimize loading of tree data, thus optimizing the "new label" dialog.
Jim Evins [Fri, 30 Nov 2007 02:13:51 +0000 (02:13 +0000)]
2007-11-29 Jim Evins <evins@snaught.com>
* libglabels/db.h:
* libglabels/db.c:
Added lgl_db_does_template_name_exist().
In lgl_db_lookup_template_from_name() substitute brand/part of new template from
requested alias.
* src/prefs-model.c:
Proof read recent templates -- make sure they still exist.
* src/wdgt-media-select.c:
Default to "search all templates" tab if no recent templates found.
Jim Evins [Wed, 28 Nov 2007 05:07:56 +0000 (05:07 +0000)]
2007-11-28 Jim Evins <evins@snaught.com>
* data/glade/wdgt-media-select.glade:
* src/wdgt-media-select.c:
Added tabbed notebook to allow selection of recent template versus searching the
entire database.
Jim Evins [Mon, 19 Nov 2007 04:49:00 +0000 (04:49 +0000)]
2007-11-18 Jim Evins <evins@snaught.com>
* libglabels/Makefile.am:
* libglabels/str.h:
* libglabels/str.c:
Added lgl_str_utf8_casecmp().
* libglabels/libglabels-private.h:
Use lgl_str_utf8_casecmp() for UTF8_EQUAL macro -- do case insensitive comparisons.
* libglabels/db.c: (lgl_db_get_brand_list):
Use lgl_str_utf8_casecmp() to determine if we have seen brand before when building
brand list.
Jim Evins [Sun, 18 Nov 2007 05:06:41 +0000 (05:06 +0000)]
2007-11-18 Jim Evins <evins@snaught.com>
* libglabels/db.c: (lgl_db_register_template), (read_templates):
When registering a new template, don't add to "User defined" category before
writing to file. Add to "User defined" category when reading from "~/.glabels"
directory instead. This will allow legacy templates (and manually created
templates) to be automatically added to the "user defined" category.
* libglabels/xml-template.c:
(lgl_xml_template_create_template_node):
Fixed typo/bug causing brand to be wrong.
Jim Evins [Sat, 17 Nov 2007 04:07:28 +0000 (04:07 +0000)]
2007-11-16 Jim Evins <evins@snaught.com>
* libglabels/db.c:
* libglabels/db.h:
Added return codes to lgl_db_register_template(). Added lgl_db_does_template_exist()
function. Automatically create "User defined" category and add to all user
registered templates.
* libglabels/xml-template.c:
* libglabels/xml-template.h:
Return number of bytes written from lgl_xml_template_write_templates_to_file() and
lgl_xml_template_write_template_to_file().
* docs/libglabels/libglabels-decl-list.txt:
* docs/libglabels/libglabels-sections.txt:
* docs/libglabels/libglabels-undocumented.txt:
* docs/libglabels/tmpl/db.sgml:
* docs/libglabels/tmpl/xml-template.sgml:
Update documentation to reflect above changes.
Jim Evins [Mon, 29 Oct 2007 01:47:08 +0000 (01:47 +0000)]
2007-10-28 Jim Evins <evins@snaught.com>
* libglabels/xml-template.c:
Remove any leading white space from part #s when parsing old names.
* src/mini-preview-pixbuf-cache.c:
If name isn't in cache add it.
Jim Evins [Sun, 21 Oct 2007 04:06:23 +0000 (04:06 +0000)]
2007-10-21 Jim Evins <evins@snaught.com>
* data/dtd/glabels-2.2.dtd:
Forgot to replace Alias name attribute with brand and part attributes.
* data/templates/avery-iso-templates.xml:
* data/templates/avery-other-templates.xml:
* data/templates/avery-us-templates.xml:
* data/templates/misc-iso-templates.xml:
* data/templates/misc-other-templates.xml:
* data/templates/misc-us-templates.xml:
* data/templates/zweckform-iso-templates.xml:
Replaced all name attributes with brand/part attribute pairs.
Jim Evins [Mon, 15 Oct 2007 03:12:42 +0000 (03:12 +0000)]
2007-10-14 Jim Evins <evins@snaught.com>
* docs/libglabels/libglabels-decl-list.txt:
* docs/libglabels/libglabels-sections.txt:
* docs/libglabels/libglabels-undocumented.txt:
* docs/libglabels/tmpl/category.sgml:
* libglabels/category.c:
* libglabels/category.h:
Added lgl_category_get_id_list() and lgl_category_free_id_list() to have
parity with paper functions.
Jim Evins [Fri, 12 Oct 2007 03:08:56 +0000 (03:08 +0000)]
2007-10-11 Jim Evins <evins@snaught.com>
* configure.in:
Extended checks for deprecated symbols.
* libglabels/template.c:
Removed g_strcasecmp references, which are deprecated.
Jim Evins [Wed, 10 Oct 2007 02:15:17 +0000 (02:15 +0000)]
2007-10-09 Jim Evins <evins@snaught.com>
* src/merge-evolution.c:
Create address book if it does not exist. Also, be more robust about handling
error conditions -- don't just assume GError has been set.
Jim Evins [Wed, 22 Aug 2007 01:07:35 +0000 (01:07 +0000)]
2007-08-21 Jim Evins <evins@snaught.com>
* configure.in:
Changed version to 2.1.pre5svn.
* src/view.c: (draw_markup_layer):
Do a stroke for each markup path, otherwise multiple markups
get connected.
Jim Evins [Sat, 11 Aug 2007 22:03:25 +0000 (22:03 +0000)]
2007-08-11 Jim Evins <evins@snaught.com>
* po/POTFILES.in:
Updated file list.
* configure.in:
* po/eo.po:
Added Esperanto translation. Provided by Antonio C.
Codazzi "la Filozofo" <f_sophia@libero.it>.
* po/fr.po:
Updated French translation. Provided by Claude Paroz
<claude@2xlibre.net>.
* AUTHORS:
Updated to reflect above translations.
Jim Evins [Sat, 11 Aug 2007 03:08:52 +0000 (03:08 +0000)]
2007-08-10 Jim Evins <evins@snaught.com>
* src/bc-postnet.c: (gl_barcode_postnet_new):
* src/bc.c:
Added support for Brazilian CEPNet barcodes. This is simply an
instance of the US POSTNET format with 8 digits. Patch supplied
by Mário Meyer in bug # 1768792.
* AUTHORS:
Updated acknowledgments to reflect above patch and recent shuffling
of underlying technology.
Jim Evins [Thu, 3 May 2007 01:47:24 +0000 (01:47 +0000)]
2007-05-02 Jim Evins <evins@snaught.com>
* src/view.c: (draw_select_region_layer), (motion_notify_event_cb),
(button_release_event_cb):
Removed attempt at rendering optimization by clipping the updates
to areas affected -- this actually seemed to hurt update performance.
Jim Evins [Tue, 1 May 2007 01:18:50 +0000 (01:18 +0000)]
2007-04-30 Jim Evins <evins@snaught.com>
* src/label.h:
Added glLabelRegion structure type.
* src/label-object.c: (gl_label_object_get_extent):
* src/label-object.h:
Modified gl_label_object_get_extent() to fill in a glLabelRegion struct.
* src/view.h:
* src/view.c: (gl_view_update_region), (draw_select_region_layer),
(gl_view_select_region), (gl_view_align_selection_left),
(gl_view_align_selection_right), (gl_view_align_selection_hcenter),
(gl_view_align_selection_top), (gl_view_align_selection_bottom),
(gl_view_align_selection_vcenter),
(gl_view_center_selection_horiz), (gl_view_center_selection_vert),
(gl_view_move_selection), (gl_view_can_selection_text),
(motion_notify_event_cb), (button_press_event_cb),
(button_release_event_cb):
- Reconcile with new gl_label_object_get_extent() API.
- Use glLabelRegion for view->select_region.
- Added gl_view_update_region() to clip updates to region.
- Use gl_view_update_region() during manipulation of view->select_region.
Jim Evins [Wed, 25 Apr 2007 22:59:05 +0000 (22:59 +0000)]
2007-04-25 Jim Evins <evins@snaught.com>
* src/view.h:
* src/view.c: (gl_view_update), (expose_cb),
(motion_notify_event_cb), (button_press_event_cb),
(button_release_event_cb):
- Try not to let updates get backed up.
- Grab pointer when doing any drag operations.
Jim Evins [Tue, 10 Apr 2007 14:42:24 +0000 (14:42 +0000)]
2007-04-10 Jim Evins <evins@snaught.com>
* libglabels/template.h:
* libglabels/template.c: (gl_template_get_name_list_unique),
(gl_template_get_name_list_all), (gl_template_from_name):
Modified libglabels to allow you to get a list of all template names
including all aliases or just a list of primary names of each unique
template.
* src/Makefile.am:
* src/file.c: (gl_file_properties):
* src/glabels.c: (main):
* src/mini-preview-pixbuf-cache.h:
* src/mini-preview-pixbuf-cache.c:
* src/wdgt-media-select.c: (gl_wdgt_media_select_construct),
(filter_changed_cb), (load_list):
Added mini-preview pixbuf cache, so that only one mini-preview is
needed for a unique template and gets reused for all aliases. These
pixbufs will also live for the life of the program so they are not
rebuilt everytime a new label dialog is invoked.
* src/mini-preview-pixbuf.c: (draw_paper),
(draw_rect_label_outline), (draw_round_label_outline),
(draw_cd_label_outline):
Removed some comment artifacts.
Jim Evins [Sat, 31 Mar 2007 03:13:18 +0000 (03:13 +0000)]
2007-03-30 Jim Evins <evins@snaught.com>
* src/prefs-model.c: (gl_prefs_model_load_settings):
Default to an unlimited list of recent documents, since this parameter
seems to be pre-filter anyway.
Jim Evins [Thu, 29 Mar 2007 02:31:25 +0000 (02:31 +0000)]
2007-03-28 Jim Evins <evins@snaught.com>
* src/print-op.c: (gl_print_op_construct),
(gl_print_op_get_settings), (gl_print_op_set_settings),
(gl_print_op_free_settings), (create_custom_widget_cb):
* src/print-op.h:
* src/ui-commands.c: (gl_ui_cmd_file_print):
* src/window.c: (gl_window_init):
* src/window.h:
Save print settings and custom settings between print operations
on the same window.
Jim Evins [Sun, 25 Mar 2007 01:18:32 +0000 (01:18 +0000)]
2007-03-24 Jim Evins <evins@snaught.com>
* src/object-editor-image-page.c:
(gl_object_editor_prepare_image_page),
(gl_object_editor_set_image), (img_selection_changed_cb):
Workaround for GtkFileChooserButton bug # 327243. This the root
cause for gLabels bug # 1192884. I have actually observed 3 delayed
"selection-changed" signals -- the first 2 return NULL -- this is
what caused the image to reset to the default followed by setting
it back to the original image, trying to fit it into a new bounding
box. This sequence of events is much more evident with the new
cairo rendering.
Assorted superficial cleanup. Including:
- Use G_DEFINE_TYPE for all objects.
- Reconcile style of all class initializer functions
- Reconcile style of all finalize functions
- Add emacs mode line to all source files
Jim Evins [Sat, 3 Feb 2007 19:26:07 +0000 (19:26 +0000)]
2007-02-03 Jim Evins <evins@snaught.com>
* data/glade/template-designer.glade:
* src/template-designer.c:
* src/template-designer.h:
Ported GnomeDruid to GtkAssistant. Since libglade does not
yet support the GtkAssistant and we derive directly from
the Assistant, the pages are layed out in a GtkNotebook in
the glade description -- we then append each page to the
assistant.
Jim Evins [Fri, 26 Jan 2007 00:31:34 +0000 (00:31 +0000)]
2007-01-25 Jim Evins <evins@snaught.com>
* data/glade/object-editor.glade:
Added dummy page to notebook, to prevent shadow page from
becoming the default current page at creation.
* src/view-box.c: (construct_properties_editor):
* src/view-ellipse.c: (construct_properties_editor):
* src/view-line.c: (construct_properties_editor):
* src/view-text.c: (construct_properties_editor):
Reconciled order of params.
Jim Evins [Tue, 23 May 2006 01:26:54 +0000 (01:26 +0000)]
2006-05-22 Jim Evins <evins@snaught.com>
* src/print.c: (draw_barcode_object):
Don't print "Invalid barcode data" if data field is empty. Patch provided
by Darren Warner <warnerd@users.sourceforge.net>. Fixes Bug #1479839.
* AUTHORS:
Added acknowledgment for above patch.
* src/bc-gnubarcode.c: (gl_barcode_gnubarcode_new):
* src/bc-postnet.c: (postnet_code):
Removed "Invalid barcode data" warnings from stderr.
* src/view-barcode.c: (draw_barcode):
Draw box around barcode extent if data empty or invalid. Center a
message whether the data is empty or invalid in box.
Jim Evins [Sat, 20 May 2006 21:57:50 +0000 (21:57 +0000)]
2006-05-20 Jim Evins <evins@snaught.com>
* src/ui-commands.c: (gl_ui_cmd_view_grid_toggle),
(gl_ui_cmd_view_markup_toggle):
Fixed crash when grid or markup have been toggled off during
a previous session. Bug #1434324.
Jim Evins [Thu, 16 Feb 2006 01:45:35 +0000 (01:45 +0000)]
2006-02-15 Jim Evins <evins@snaught.com>
* src/label-object.c:
Changed default shadow offsets.
* src/view-box.c: (gl_view_box_new):
Simplified gl_view_box_new() so that is does not duplicate code
in update_canvas_item_from_object_cb().
Jim Evins [Wed, 8 Feb 2006 03:44:52 +0000 (03:44 +0000)]
2006-02-07 Jim Evins <evins@snaught.com>
* data/glade/object-editor.glade:
Fixed color groups of color combos.
* src/color.h:
Added default shadow color.
* src/object-editor.c: (gl_object_editor_construct_color_combo):
Added shadow color group.
Jim Evins [Fri, 20 Jan 2006 03:38:08 +0000 (03:38 +0000)]
2006-01-19 Jim Evins <evins@snaught.com>
* src/merge-evolution.c: (gl_merge_evolution_get_key_list):
Initialize key_list to NULL. Only lucky that this worked at all -- will
probably crash for many people.
* data/glade/object-editor.glade:
* src/Makefile.am:
* src/color.c:
* src/color.h:
* src/label-object.c:
* src/label-object.h:
* src/object-editor-fill-page.c:
* src/object-editor-private.h:
* src/object-editor.c:
* src/object-editor.h:
* src/xml-label.c:
Created infrastructure for shadow support.
* src/view-box.c:
* src/print.c:
Initial shadow support in box object only.
Jim Evins [Thu, 5 Jan 2006 07:01:33 +0000 (07:01 +0000)]
2006-01-05 Jim Evins <evins@snaught.com>
* src/merge-properties-dialog.c: (src_changed_cb):
Be extra paranoid before calling strcmp().
* src/merge.c: (gl_merge_set_src):
Don't make (merge == NULL) a critical error.