]> git.sur5r.net Git - glabels/commit
2009-09-13 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Sun, 13 Sep 2009 05:00:03 +0000 (05:00 +0000)
committerJim Evins <evins@snaught.com>
Sun, 13 Sep 2009 05:00:03 +0000 (05:00 +0000)
commita1f61988eb85f9133482e6f8fa6232600f897b1c
tree9f4d3ef8bdd1ad46c6a5195aac8c15f3022b6b34
parent96a9288a2f2f9b72daf98f7a768d0e37345dcc9e
2009-09-13  Jim Evins  <evins@snaught.com>

Refactored print operation subsystem.

* src/print-op.c:
* src/print-op.h:
Basic GtkPrintOperation based class.  Does not instantiate
custom widgets, so it can be used by glabels-batch without
the additional overhead.
* src/print-op-dialog.c:
* src/print-op-dialog.h:
New object derived from glPrintOp.  This one is intended
to be used as a dialog and installs custom widgets.
glWdgtPrintCopies and glWdgtPrintMerge have been merged
into this object.
* src/wdgt-print-copies.c:
* src/wdgt-print-copies.h:
* src/wdgt-print-merge.c:
* src/wdgt-print-merge.h:
Deleted.
* src/Makefile.am:
Modified to reflect above additions and deletions.
* src/mini-preview.c: (gl_mini_preview_construct),
(gl_mini_preview_set_template), (set_transform_and_get_scale),
(button_press_event_cb), (motion_notify_event_cb), (draw):
Now scales with allocation.
* src/glabels-batch.c: (main):
* src/template-designer.c: (print_test_cb):
* src/ui-commands.c: (gl_ui_cmd_file_print):
Use above modifications.
* data/builder/print-op-dialog-custom-widget.builder:
New builder file for glPrintOpDialog custom widgets.
* data/builder/print-custom-widget.builder:
Deleted.
* data/builder/Makefile.am:
Modified to reflect above addition and deletion.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@883 f5e0f49d-192f-0410-a22d-a8d8700d0965
17 files changed:
glabels2/ChangeLog
glabels2/data/builder/Makefile.am
glabels2/data/builder/print-custom-widget.builder [deleted file]
glabels2/data/builder/print-op-dialog-custom-widget.builder [new file with mode: 0644]
glabels2/src/Makefile.am
glabels2/src/glabels-batch.c
glabels2/src/mini-preview.c
glabels2/src/print-op-dialog.c [new file with mode: 0644]
glabels2/src/print-op-dialog.h [new file with mode: 0644]
glabels2/src/print-op.c
glabels2/src/print-op.h
glabels2/src/template-designer.c
glabels2/src/ui-commands.c
glabels2/src/wdgt-print-copies.c [deleted file]
glabels2/src/wdgt-print-copies.h [deleted file]
glabels2/src/wdgt-print-merge.c [deleted file]
glabels2/src/wdgt-print-merge.h [deleted file]