2003-02-27 Mike Kestner <mkestner@ximian.com>
* gal/widgets/e-canvas.c (emit_event): use gdk_event_copy
and gdk_event_free to dup the event.
svn path=/trunk/; revision=20088
2003-02-26 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-canvas.c (e_canvas_dispose): remove the
grab_cancelled_check_id if it's still active.
svn path=/trunk/; revision=20083
2002-05-10 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-canvas.c (grab_cancelled_check): If grabbed_item
is NULL, cancel the timeout.
svn path=/trunk/; revision=16760
2002-05-09 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text.c: Switch from gnome_canvas_item_grab to
e_canvas_item_grab.
* gal/widgets/e-canvas.c, gal/widgets/e-canvas.h
(e_canvas_item_grab, e_canvas_item_ungrab): Added these functions.
From gal/e-table/ChangeLog:
2002-05-09 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h: Switched from
gnome_canvas_item_grab to e_canvas_item_grab.
svn path=/trunk/; revision=16738
2002-04-17 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-canvas.c (emit_event): If there is a grabbed_item,
send all events to it.
svn path=/trunk/; revision=16492
2002-03-25 Christopher James Lahey <clahey@ximian.com>
* gal/Makefile.am (libgal_la_LIBADD): Added
widgets/e-option-menu.lo.
* gal/util/e-util.c, gal/util/e-util.h (e_strdupv): Copied this
function from glib2.
(GET_STRING_ARRAY_FROM_ELLIPSIS,
GET_DUPLICATED_STRING_ARRAY_FROM_ELLIPSIS): Added these macros to
automate getting a NULL terminated array off of the stack.
* gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added
e-option-menu.c.
(libwidgetsinclude_HEADERS): Added e-option-menu.h.
* gal/widgets/e-canvas.c (e_canvas_class_init): Reformatted this
function.
* gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h
(e_glade_xml_connect_widget, e_glade_xml_set_sensitive): Two new
functions to automate pulling a widget from a GladeXML and either
connecting a signal or setting the sensitivity.
* gal/widgets/e-option-menu.c, gal/widgets/e-option-menu.h: New
class to simplify the interface to GtkOptionMenu.
svn path=/trunk/; revision=16246
2002-03-15 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-canvas.c (e_canvas_style_set): Check for a
style_set signal on all the contained GnomeCanvasItems.
From gal/e-table/ChangeLog:
2002-03-15 Christopher James Lahey <clahey@ximian.com>
* e-cell-toggle.c: Clear the pixmap cache in e_cell_style_set.
* e-cell.c, e-cell.h (e_cell_style_set): Added this virtual
method.
* e-table-item.c, e-table-item.h: Call e_cell_style_set in out
style_set signal.
svn path=/trunk/; revision=16180
2001-12-11 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-canvas.c (e_canvas_unrealize): Turn off idle
handling in the unrealize function instead of the destroy
function.
From gal/e-table/ChangeLog:
2001-12-11 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c: Turn off idle handling in the unrealize function
instead of the destroy function.
svn path=/trunk/; revision=15102
2001-11-14 Christopher James Lahey <clahey@ximian.com>
From a patch by Yukihiro Nakai <ynakai@redhat.com>.
* gal/widgets/e-canvas.c (e_canvas_realize): Handle
GDK_IM_PREEDIT_POSITION here.
svn path=/trunk/; revision=14703
2001-10-20 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text.h: Changed some of these gbooleans to be
guint : 1s.
* gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Send the in
event here to the new focused item instead of the old one.
svn path=/trunk/; revision=13824
2001-10-05 Michael Meeks <michael@ximian.com>
* gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and
E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from
a single source base.
* All C files:
s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g;
s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/
E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/;
svn path=/trunk/; revision=13428
2001-08-21 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-canvas.c (e_canvas_button): cut and paste fixed
version of gnome_canvas_button here.
(pick_current_item): needed by e_canvas_button, also from
gnome-canvas.c.
(gnome_canvas_item_invoke_point): same.
(e_canvas_class_init): hook button_press_event and
button_release_event to e_canvas_button.
svn path=/trunk/; revision=12376
2001-07-07 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_destroy):
Destroy the tooltip if we're the owner when we're destroyed.
Also, keep a reference to the text object in case we get a signal
on the window after the text object is destroyed.
* gal/widgets/e-canvas.c (e_canvas_destroy): Hide the tooltip if
there is one when the canvas is destroyed.
svn path=/trunk/; revision=10888
2001-04-15 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text.c (tooltip_event): Use e_canvas_hide_tooltip
and e_canvas_popup_tooltip. Set bold on the tooltip.
* gal/widgets/e-canvas.c, gal/widgets/e-canvas.h: Added
e_canvas_popup_tooltip and e_canvas_hide_tooltip.
svn path=/trunk/; revision=9323
* gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Make this
take an extra argument saying whether or not to grab the
widget-level focus.
* gal/e-text/e-text.c (e_text_event): Update arguments to
e_canvas_item_grab_focus.
svn path=/trunk/; revision=8745
2001-02-09 JP Rosevear <jpr@ximian.com>
* gal/widgets/e-canvas.c (e_canvas_key): Since gdkevent is a
union, casting a smaller struct to a gdkevent caused unknown
memory to be copied around. fix by copying to a full gdkevent
structure before calling gdkevent.
(e_canvas_focus_in): ditto
(e_canvas_focus_out): ditto
svn path=/trunk/; revision=8153
2000-12-08 JP Rosevear <jpr@helixcode.com>
* e-table-state.c (etst_destroy): If there are columns allocated,
free them upon a destroy.
2000-12-08 JP Rosevear <jpr@helixcode.com>
* gal/widgets/e-canvas.c (e_canvas_destroy): Remove my lame "fix"
svn path=/trunk/; revision=6884
2000-12-07 JP Rosevear <jpr@helixcode.com>
* gal/widgets/e-canvas.c (e_canvas_destroy): Destroy the gdkIC
if we have one
svn path=/trunk/; revision=6847
2000-07-03 Christopher James Lahey <clahey@helixcode.com>
* e-iterator.c, e-iterator.h, e-list-iterator.c,
e-list-iterator.h, e-list.c, e-list.h: New list class with
iterators.
* e-canvas.c: Made it so that you don't get the same selection in
the selection list more than once.
svn path=/trunk/; revision=3871
2000-06-29 Jody Goldberg <jgoldberg@home.com>
* e-canvas.c (e_canvas_init) : Init the InputContext members
(e_canvas_class_init) : Add a handler for unrealize.
(e_canvas_focus_in) : enable the input context.
(e_canvas_focus_out) : enable the input context.
(e_canvas_realize) : Create an input context.
(e_canvas_unrealize) : New function to release the input context.
svn path=/trunk/; revision=3817
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-canvas.c, e-canvas.h: Added a variable to keep track of the
cursor. Set the cursor when selection_add is called. Properly
unset the cursor at the right times.
svn path=/trunk/; revision=3663
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-canvas.c, e-canvas.h: Built a system for doing selections
and/or a cursor in canvas.
svn path=/trunk/; revision=3655
2000-05-02 Damon Chaplin <damon@helixcode.com>
* e-canvas.c (e_canvas_focus_in):
(e_canvas_focus_out): set and reset the GTK_HAS_FOCUS flag. We now get
focus_out events correctly.
svn path=/trunk/; revision=2758
2000-04-16 Anders Carlsson <andersca@gnu.org>
* e-canvas.c (e_canvas_class_init): Add realize.
(e_canvas_realize): Set the back pixmap to NULL to reduce flicker.
svn path=/trunk/; revision=2456
2000-03-12 Christopher James Lahey <clahey@helixcode.com>
* widgets/Makefile.am: Rearranged SUBDIRS for dependencies.
* widgets/e-text/e-text-model.c, widgets/e-text-model.h: New
object which stores a piece of text data. All methods are
virtual.
* widgets/e-text/e-text.c, widgets/e-text/e-text.h: Modified this
to use an ETextModel for its data.
* widgets/e-text/Makefile.am: Added e-text-model.c and e-text-model.h.
* widgets/e-minicard/test-minicard-label.c: Made this work again.
* widgets/e-minicard/e-minicard.c,
widgets/e-minicard/e-minicard.h: Made this use an ETableModel to
get its data.
* widgets/e-minicard/e-minicard-label.c,
widgets/e-minicard/e-minicard-label.h: Added the ability to set
the text model used for the contained text widget.
* widgets/e-minicard/Makefile.am: Added e-table since e-minicard
is now dependent on an e-table-model for its data.
* e-util/e-canvas.c, e-util/e-canvas.h: Fixed some bugs here to
speed up reflow and to make it fail less often.
* addressbook/demo, addressbook/demo/.cvsignore,
addressbook/demo/Makefile.am, addressbook/demo/demo.c,
addressbook/demo/spec: A new program to test ETable and EMinicard
integration.
* configure.in: Added addressbook/demo/Makefile.
* addressbook/Makefile.am: Added the demo/ subdirectory.
in widgets/e-table/:
2000-03-12 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Made this use an ECanvas. Fixed a bug where
e_table_new_from_spec_file was calling e_table_construct instead
of e_table_construct_from_spec_file.
* e-table-item.c, e-table-header-item.c, e-table-column-item.c:
Switched these to use GTK_TYPE_OBJECT and GTK_VALUE_OBJECT instead
of GTK_TYPE_POINTER and GTK_TYPE_OBJECT.
* e-cell-text.c: Got rid of a crashing bug.
* e-table-text-model.c, e-table-text-model.h: A new object which
is an e-text-model which uses an e-table-model for its data.
* Makefile.am: Added e-table-text-model.c and
e-table-text-model.h.
* .cvsignore: Added table-example-1 and table-example-2.
svn path=/trunk/; revision=2101
2000-03-10 Christopher James Lahey <clahey@helixcode.com>
* e-util/e-canvas.c, e-util/e-canvas.h: Designed a new system for
doing hierarchical displays in the canvas. Adds an extra idle
loop to the canvas system.
* widgets/e-minicard/e-minicard.c,
widgets/e-minicard/e-minicard-label.c,
widgets/e-minicard/e-minicard-label.h,
widgets/e-minicard/e-reflow.c, widgets/e-minicard/test-reflow.c,
widgets/e-text/e-text.c, widgets/e-text/e-text.h: Adapted to use
the new e-canvas reflow system.
svn path=/trunk/; revision=2096
2000-01-28 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-minicard-label.c, widgets/e-minicard.c: Use
e_canvas_item_grab_focus so that it will work with old versions of
gnome-canvas.
* widgets/e-canvas.c, widgets/e-canvas.h: Finished working around
focus bugs.
svn path=/trunk/; revision=1649
2000-01-25 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-reflow.c, widgets/e-minicard.c: Handle shift-tab
properly now.
* widgets/e-minicard-label.c: Reindented some areas.
* widgets/test-reflow.c: Use e-canvas. Set the back pixmap to
NULL for the canvas so that scrolling won't flash grey.
* widgets/e-canvas.c, widgets/e-canvas.h: These subclass
GnomeCanvas to work around a few bugs so that evolution will work
well with old versions of gnome-libs.
* widgets/Makefile.am: Added e-canvas.c and e-canvas.h.
* addressbook/contact-editor/contact-editor.glade: Not much
change. Mostly internal reorganization by glade itself.
svn path=/trunk/; revision=1638