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.
Jim Evins [Sat, 26 Nov 2005 02:35:14 +0000 (02:35 +0000)]
2005-11-25 Jim Evins <evins@snaught.com>
* src/merge-evolution.c: (gl_merge_evolution_finalize),
(gl_merge_evolution_get_key_list), (gl_merge_evolution_open),
(gl_merge_evolution_get_record), (gl_merge_evolution_copy),
(free_field_list):
Query EDS for all supported fields. Patch provided by
Austin Henry <ahenry@users.sourceforge.net>.
Jim Evins [Fri, 28 Oct 2005 01:10:56 +0000 (01:10 +0000)]
2005-10-27 Jim Evins <evins@snaught.com>
* src/merge-evolution.c: (gl_merge_evolution_get_record):
* src/merge-vcard.c: (gl_merge_vcard_get_record),
(parse_next_vcard):
Additional cleanup of EDS and vcard backends. Provided by
Austin Henry <ahenry@users.sourceforge.net>.
Jim Evins [Tue, 25 Oct 2005 03:01:56 +0000 (03:01 +0000)]
2005-10-24 Jim Evins <evins@snaught.com>
* AUTHORS:
* src/Makefile.am:
* src/merge-evolution.c:
* src/merge-evolution.h:
* src/merge-init.c: (gl_merge_init):
* src/merge-properties-dialog.c: (type_changed_cb):
* src/merge-vcard.c:
* src/merge-vcard.h:
* src/ui-commands.c: (gl_ui_cmd_help_about):
Added Evolution Data Server and VCard merge backends. Original patch
provided by Austin Henry <ahenry@users.sourceforge.net>.
* configure.in:
Only support EDS and VCard backends if libebook is installed. Allow
user to disable support, even if installed.
Jim Evins [Mon, 24 Oct 2005 16:50:35 +0000 (16:50 +0000)]
2005-10-24 Jim Evins <evins@snaught.com>
* AUTHORS:
* data/templates/avery-iso-templates.xml:
* data/templates/avery-us-templates.xml:
* data/templates/misc-iso-templates.xml:
* data/templates/zweckform-iso-templates.xml:
Collected all template changes and submissions since last
release.
Jim Evins [Mon, 24 Oct 2005 01:24:50 +0000 (01:24 +0000)]
2005-10-23 Jim Evins <evins@snaught.com>
* configure.in:
* data/mime/Makefile.am:
Added configure options to disable update-mime-database and
update-desktop-database as part of the install. Patch
provided by Leonardo Boshell (qhoracio@sourceforge.net).
Jim Evins [Tue, 20 Sep 2005 03:24:53 +0000 (03:24 +0000)]
2005-09-19 Jim Evins <evins@snaught.com>
* data/glade/property-bar.glade:
Remove items from font_family_combo. This prevents the
double entry after adding text model and list of fonts.
* src/ui-property-bar.c: (reset_to_default_properties):
Free font_family_list.
Jim Evins [Sun, 26 Jun 2005 04:59:52 +0000 (04:59 +0000)]
2005-06-26 Jim Evins <evins@snaught.com>
* docs/libglabels/libglabels-decl-list.txt:
Somehow never got checked in before.
* docs/libglabels/libglabels.types:
Removed -- don't need it afterall.
Jim Evins [Tue, 21 Jun 2005 02:06:47 +0000 (02:06 +0000)]
2005-06-20 Jim Evins <evins@snaught.com>
* configure.in:
Final preps for 2.1.1 release.
* docs/libglabels/libglabels.types:
Somehow never got checked in before.
* po/POTFILES.in:
Bring up-to-date with recent reorg of ui code.
Jim Evins [Wed, 18 May 2005 02:47:19 +0000 (02:47 +0000)]
2005-05-17 Jim Evins <evins@snaught.com>
* src/hig.h:
* src/hig.c:
Removed HigAlert class since it is obsoleted by the GtkMessageDialog class.
* src/file.c: (open_response), (gl_file_open_real), (gl_file_save),
(save_as_response), (gl_file_close):
Replaced all instances of HigAlert widgets with GtkMessageDialog widgets.
Jim Evins [Sun, 15 May 2005 00:12:15 +0000 (00:12 +0000)]
2005-05-14 Jim Evins <evins@snaught.com>
* src/Makefile.am:
Removed obsolete macros.
* src/marshal.list:
Added marshalling template to support new view signal: "context_menu_activate."
* src/view.h:
* src/view.c: (gl_view_class_init), (gl_view_construct),
(canvas_event_arrow_mode):
- Removed hardcoded context menus and added new signal "context_menu_activate"
to push this up to the uimanager.
- Removed merge properties and print dialogs so that they can be managed with
the window by the uimanager.
* src/merge-properties-dialog.h:
* src/merge-properties-dialog.c: (gl_merge_properties_dialog_new),
(gl_merge_properties_dialog_construct):
Changed calling convention of gl_merge_properties_dialog_new() to use
glLabel and GtkWindow instead of view to make more consistent with other
dialogs.
* src/print-dialog.h:
* src/print-dialog.c: (gl_print_dialog_new),
(gl_print_dialog_construct):
Removed last artifact of libbonoboui.
* src/ui-commands.c: (gl_ui_cmd_file_print),
(gl_ui_cmd_objects_merge_properties), (gl_ui_cmd_help_about):
Reconciled style for launching dialogs.
* src/ui.c: (gl_ui_new):
Added context menus to ui manager.
* src/view-object.c: (item_event_arrow_mode):
No longer try to select objects with right-click.
* src/window.h:
* src/window.c: (gl_window_init), (gl_window_set_label),
(context_menu_activate_cb):
Context menus and all dialogs are now managed in a consistent way in window
by the ui manager.
Jim Evins [Thu, 12 May 2005 02:41:48 +0000 (02:41 +0000)]
2005-05-11 Jim Evins <evins@snaught.com>
* src/window.h:
* src/window.c: (gl_window_init), (gl_window_destroy):
* src/ui.c: (gl_ui_new), (gl_ui_unref), (recent_tooltip_func):
* src/ui-commands.c: (gl_ui_cmd_file_open_recent):
Moved management of recent_view back from window.c to ui.c -- it just feels
better there.
Jim Evins [Mon, 9 May 2005 04:35:42 +0000 (04:35 +0000)]
2005-05-09 Jim Evins <evins@snaught.com>
Replaced libbonoboui with GtkUIManager for creation of basic user interface menus
and toolbars.
* configure.in:
* glabels.spec.in:
Removed dependencies on libbonoboui.
* data/Makefile.am:
* data/ui/Makefile.am:
* data/ui/glabels-ui.xml:
Removed data/ui directory.
* data/glade/Makefile.am:
* data/property-bar.glade:
Added glade description of property-bar for new libglade implementation
of glUIPropertyBar.
* src/Makefile.am:
* src/commands.h:
* src/commands.c:
* src/tools.h:
* src/tools.c:
* src/ui-commands.h:
* src/ui-commands.c:
Replaced commands.[ch] and tools.[ch] with the single ui-commands.[ch] module
since the distinction between "commands" and "tools" is no longer that clear.
* src/file.h:
* src/file.c:
Modified to expect glWindow instead of GtkWindow. gl_file_open_recent()
no longer has knowledge of eggRecent*.
* src/glabels.c: (main):
Removed libbonobo initialization and replaced bonobo_main loop with gtk_main
loop.
* src/object-editor.c: (gl_object_editor_init):
Make sure notebook does not respond to a "show_all" on the parent.
* src/recent-files/Makefile.am:
* src/recent-files/*.[ch]
Updated from latest version of libegg which now has a view based on
GtkUIManager. Removed unused bonobo and gtk views.
* src/ui-property-bar.h:
* src/ui-property-bar.c:
New implementation based on libglade.
* src/ui-sidebar.h:
* src/ui-sidebar.c:
Sidebar is now simply a GtkWidget and does not expect to be a part of
a libbonoboui interface.
* src/ui-util.h:
* src/ui-util.c:
* src/ui.h:
* src/ui.c:
Converted for use with GtkUIManager.
* src/window.h:
* src/window.c:
Now derived from GtkWindow instead of BonoboWindow and uses GtkUIManager
to create menus and toolbars.
Jim Evins [Sun, 24 Apr 2005 01:18:48 +0000 (01:18 +0000)]
2005-04-23 Jim Evins <evins@snaught.com>
* src/util.c: (gl_util_combo_box_set_strings):
Make sure to clear model before loading a new list of strings.
* src/wdgt-media-select.h:
* src/wdgt-media-select.c: (gl_wdgt_media_select_instance_init),
(gl_wdgt_media_select_construct), (page_size_combo_changed_cb),
(template_combo_changed_cb), (prefs_changed_cb),
(gl_wdgt_media_select_get_name), (gl_wdgt_media_select_set_name),
(gl_wdgt_media_select_get_page_size),
(gl_wdgt_media_select_set_page_size):
Replaced the deprecated GtkCombo widget with the new
GtkComboBox.
Jim Evins [Fri, 22 Apr 2005 01:53:33 +0000 (01:53 +0000)]
2005-04-21 Jim Evins <evins@snaught.com>
* data/glade/template-designer.glade:
* src/template-designer.c: (construct_pg_size_page),
(pg_size_page_changed_cb), (build_template):
Replaced the deprecated GtkCombo widget with the new
GtkComboBox.
Jim Evins [Thu, 21 Apr 2005 00:24:05 +0000 (00:24 +0000)]
2005-04-20 Jim Evins <evins@snaught.com>
* data/glade/prefs-dialog.glade:
* src/prefs-dialog.c: (construct_object_page),
(update_object_page_from_prefs), (update_prefs_from_object_page):
Replaced the deprecated GtkCombo widget with the new
GtkComboBox.
Jim Evins [Sat, 16 Apr 2005 18:05:01 +0000 (18:05 +0000)]
2005-04-16 Jim Evins <evins@snaught.com>
* data/glade/Makefile.am:
* data/glade/merge-properties-dialog.glade:
Added merge properties dialog glade description file.
* src/merge-properties-dialog.h:
* src/merge-properties-dialog.c:
(gl_merge_properties_dialog_get_type),
(gl_merge_properties_dialog_init),
(gl_merge_properties_dialog_finalize),
(gl_merge_properties_dialog_new),
(gl_merge_properties_dialog_construct), (type_changed_cb),
(src_changed_cb), (response_cb), (load_tree),
(record_select_toggled_cb), (select_all_button_clicked_cb),
(unselect_all_button_clicked_cb):
Modified merge properties dialog to use libglade. Added
"select all" and "unselect all" buttons.
* src/merge-text.c: (parse_line):
Handle empty lines better.
* src/merge.c: (gl_merge_eval_key):
Evaluate the key whether the record is selected or not.
* src/util.h:
* src/util.c: (gl_util_combo_box_add_text_model):
Since libglade does not use the gtk_combo_box_new_text()
constructor for GtkComboBoxes, a utility function was created
to add an appropriate text model to a GtkComboBox.
* src/view.c: (gl_view_edit_merge_props):
Removed unnecessary "show all's".
Jim Evins [Sat, 16 Apr 2005 01:47:12 +0000 (01:47 +0000)]
2005-04-15 Jim Evins <evins@snaught.com>
* data/templates/avery-us-templates.xml:
Added Avery 5388 and 5389 templates provided by Peter L. Berghold.
* data/templates/misc-iso-templates.xml:
Added Ryman standard CD/DVD template, provided by Dan Clark.
* AUTHORS:
Added acknowledgements for above.
Jim Evins [Wed, 23 Mar 2005 00:48:14 +0000 (00:48 +0000)]
2005-03-22 Jim Evins <evins@snaught.com>
* src/commands.c: (activate_url), (gl_cmd_help_about):
Replaced GnomeAbout with GtkAboutDialog. Therefore the
development version of glabels now depends on GTK 2.6 and
GNOME 2.10.
* configure.in:
Updated library dependencies.