* e-timezone-dialog/e-timezone-dialog.c: Various cleanups.
(e_timezone_dialog_get_timezone): Return an icaltimezone.
(e_timezone_dialog_set_timezone): Take an icaltimezone
(e_timezone_dialog_construct): Set a minimum size on the scrolled
window
svn path=/trunk/; revision=20255
2003-03-10 Rodney Dawes <dobey@ximian.com>
* e-calendar.c: Use GtkArrow instead of pixmaps
* e-combo-button.c: Use GtkArrow instead of pixmaps
* e-filter-bar.c: gtk_window_set_policy () is deprecated
* e-url-entry.c: Load the icon in a pixbuf instead of GdkPixmap
svn path=/trunk/; revision=20254
2003-03-07 Chris Toshok <toshok@ximian.com>
* gal/e-text/e-text.c (e_text_draw): fix drawing bugs, and disable
the stupid looking focus rect, since I can't find a theme that
uses them.
(e_text_event): force redraw in the focus-out case if the cursor
is shown (so we can erase it), and also trick ourselves into
drawing it immediately (by setting it to FALSE) in the focus-in
case.
svn path=/trunk/; revision=20223
2003-03-04 Mike Kestner <mkestner@ximian.com>
* e-tree-selection-model.c : rewrite to store selected paths in a
hashtable instead of a tree.
* e-tree-table-adapter.c : lose the hacky orig_position api since
etsm doesn't need it anymore.
svn path=/trunk/; revision=20136
2003-02-26 Rodney Dawes <dobey@ximian.com>
* e-tree.c (et_canvas_style_set): Add style_set to update list properly
(et_canvas_realize): Remove this as it's no longer needed with support
for the style_set implementation
svn path=/trunk/; revision=20108
2003-02-27 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-reflow.c (reflow_columns): init column_count to
column_start + 1.
(item_removed): clean up the setting of
reflow->reflow_from_column.
(items_inserted): same.
svn path=/trunk/; revision=20097
2003-02-27 Chris Toshok <toshok@ximian.com>
* e-url-entry.c (destroy): guard this so we don't try to free priv
multiple times.
svn path=/trunk/; revision=20089
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
* e-map.c (e_map_destroy): Use
g_signal_handlers_disconnect_by_func since
gtk_signal_disconnect_by_data doesn't seem to work right.
(e_map_set_scroll_adjustments): Likewise.
svn path=/trunk/; revision=20052
2003-02-25 Jeffrey Stedfast <fejj@ximian.com>
* e-dateedit.c (on_date_popup_date_selected): Same as below.
* e-cell-date-edit.c (e_cell_date_edit_on_ok_clicked): Also
updated to use the new GDate API from glib 2.0
* test-calendar.c (on_selection_changed): Fixed to use glib 2.0's
GDate API.
* e-calendar-item.c (e_calendar_item_get_week_number): Port to
glib 2.0's GDate API.
(e_calendar_item_set_selection): Same.
* e-search-bar.c (append_xml_menu_item): Use
g_string_append_printf instead of g_string_sprintfa since the
latter is now deprecated.
(setup_bonobo_menus): Same.
* e-filter-bar.c (do_advanced): Use gtk_window_set_resizable()
* e-charset-picker.c: Fixes to make it build cleanly with
-DG_DISABLE_DEPRECATED
(add_charset): Escape _'s so we don't get underline weirdness due
to GtkLabel thinking the _ means to underline the next char.
(e_charset_picker_bonobo_ui_populate): Same here.
svn path=/trunk/; revision=20048
2003-02-20 Mike Kestner <mkestner@ximian.com>
* e-tree-selection-model.c (etsm_orig_position): kill
(etsm_find_node_unless_equals): use new etta_orig_position
(update_parents): use new etta_orig_position
(etsm_recurse_is_path_selected): use new etta_orig_position
* e-tree-table-adapter.c (e_tree_table_adapter_orig_position): new
(resort_node): populate orig_pos, fix sorting_map bound bug
(create_gnode): initialize orig_pos
(delete_node): call resort_node so orig_pos gets updated
(insert_node): always call resort_node let it decide whether to sort
svn path=/trunk/; revision=19975
2003-02-17 Chris Toshok <toshok@ximian.com>
* e-cell-text.c (build_layout): make sure the row >= 0 before
calling value_at to calc "strikeout".
svn path=/trunk/; revision=19926
2003-02-17 Jody Goldberg <jody@gnome.org>
* gal/e-table/e-table-group.c (e_table_group_construct) : make things
compile on an alpha. passing NULL to a var_arg not portable.
This seems like a better approach.
svn path=/trunk/; revision=19924
2003-02-16 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-reflow.c (item_removed): make this actually work:
destroy the canvas item, memmove stuff around, change
reflow->count, etc, etc.
svn path=/trunk/; revision=19918
2003-02-16 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-reflow.c (reflow_columns): enable this function to
reflow the view from a particular column onward. This is useful
if you have a huge model and the only changes are happening at the
end (as is normally the case if you're appending to a large
model.)
(item_changed): calculate the height of the changed item here, so
we aren't doing it as we reflow the model. For now, reflow the
entire model. Further optimization can be done here.
(item_removed): new function. remove the item and reflow from the
column that contained it.
(items_inserted): calculate the heights of the new items, and
calculate the lowest numbered column containing one of the
inserted items. reflow from there.
(model_changed): calculate the heights of everything here.
(comparison_changed): new function, clear the sorter and reflow.
(disconnect_model): disconnect comparison_changed and
model_item_removed.
(connect_model): connect comparison_changed and
model_item_removed.
(adjustment_changed): use queue_incarnate here, instead of forcing
the reflow model to incarnate as we scroll. Not sure if this is
actually the right solution, but it does make the scrollbar more
responsive at the cost of redraw speed.
* gal/widgets/e-reflow.h (struct _EReflow): add slots for the new
signal ids, as well as "reflow_from_column".
* gal/widgets/e-reflow-model.c (e_reflow_model_class_init): create
the comparison_changed and model_item_removed signals.
(e_reflow_model_comparison_changed): new function, emit the
comparison_changed signal.
(e_reflow_model_item_removed): new function, emit the
model_item_removed signal.
* gal/widgets/e-reflow-model.h: add comparison_changed and
model_item_removed signals.
svn path=/trunk/; revision=19917
2003-02-13 Mike Kestner <mkestner@ximian.com>
* e-table-header-item.c (ethi_drag_motion): don't transform
based on allocation position. Position isn't absolute now.
svn path=/trunk/; revision=19902
2003-02-13 Mike Kestner <mkestner@ximian.com>
* e-table-header-utils.c (e_table_header_draw_button): kill
a double unref on the pango_layout.
svn path=/trunk/; revision=19900
2003-02-12 Hans Petter Jansson <hpj@ximian.com>
* e-table-click-to-add.c (etcta_realize): Request a reflow on
realization, so size and placement will be correct initially.
svn path=/trunk/; revision=19899
2003-02-12 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (insert_node): work around broken models
that insert children before parents. bad models.
(e_tree_table_adapter_load_expanded_state): don't update_node
(e_tree_table_adapter_node_set_expanded): recursively expand
parent if the node is not visible yet.
(e_tree_table_adapter_set_sort_info): don't resort empty trees
svn path=/trunk/; revision=19894
2003-02-10 Mike Kestner <mkestner@ximian.com>
* e-tree.c (e_tree_find_next): rewrite to use etta
(find_next_in_range): helper func to search a range of rows
(find_next_callback): kill
svn path=/trunk/; revision=19875
2003-02-09 Chris Toshok <toshok@ximian.com>
* tests/.cvsignore: ignore test-completion.
* tests/test-completion.c: new program, completion test.
* tests/Makefile.am (noinst_PROGRAMS): add test-completion.
* gal/e-text/Makefile.am: remove e-completion-test from the build
here, moving it to ../../tests.
* gal/e-text/e-completion.c (e_completion_class_init): we've
removed the restart, cancel, clear, and lost signals. Also, we've
renamed some so it's easier to tell from the name which it is
(virtual func or signal.)
(e_completion_dispose): remove call to clear_search_stack, as we
don't do auto-refinement anymore.
(e_completion_clear): gone.
(e_completion_push_search): gone.
(e_completion_pop_search): gone.
(e_completion_clear_search_stack): gone.
(e_completion_refine_search): gone.
(e_completion_unrefine_search): gone.
(e_completion_begin_search): substantially clear this up, since we
don't have the refinement stuff anymore. Also, the call to
request_completion is a virtual function call, not a signal.
(e_completion_match_count): always return matches->len here, never
match_count, which is gone (with the refinement stuff)
(e_completion_foreach_match): remove the hit_count stuff.
(e_completion_restart): gone.
(e_completion_lost_match): gone.
(e_completion_end_search): remove the sorting stuff from here (and
the call to restart.) the etable sorting stuff will have to take
up the slack, but for now there's no reason to restart the search
here.
* gal/e-text/e-completion.h (struct _ECompletionClass): straighten
out what's a virtual function and what's a signal, instead of
using signals for both. Also, remove the auto_refine stuff, as
it's not used.
* gal/e-text/e-completion-view.c (e_completion_view_size_request):
make the damn drop down window bigger (100 pixels, or the
requisition height, whichever is bigger.)
(e_completion_view_disconnect): remove handling for signals that
are gone.
(restart_completion_cb): gone.
(cancel_completion_cb): gone.
(clear_completion_cb): gone.
(lost_completion_cb): gone.
(e_completion_view_construct): track new names of ECompletion
signals.
* gal/e-text/e-completion-view.h (struct _ECompletionView): remove
restart_signal_id, cancel_signal_id, clear_signal_id, and
lost_signal_id.
* gal/e-text/e-entry.c (get_borders): new function, ala gtkentry.
(canvas_size_request): use get_borders instead of computing it
here.
(e_entry_init): remove duplicate assignment of
emulate_label_resize.
(e_entry_show_popup): remove some ifdef'ed crap.
(e_entry_start_completion): don't cancel the completion before
starting again. This keeps the popup from disappearing.
* gal/e-text/e-completion-match.c (e_completion_match_construct):
no more hit_count.
* gal/e-text/e-completion-match.h (struct _ECompletionMatch):
remove hit_count.
* gal/e-text/e-completion-callbacks.[ch]: new class so we can use
callbacks instead of subclassing.
svn path=/trunk/; revision=19859
e_auto_kill_popup_menu_on_hide(). Connect to "deactivate" instead
of destroy.
(e_popup_menu): Use e_auto_kill_popup_menu_on_selection_done()
instead of e_auto_kill_popup_menu_on_hide().
svn path=/trunk/; revision=19833
2003-02-06 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (resort_node): index bound bug
(insert_children): prepend/reverse for now
(generate_tree): resize old map to zero before filling it again
(insert_node): fix assumption that root parent node has an index
svn path=/trunk/; revision=19828
2003-02-06 Not Zed <NotZed@Ximian.com>
* e-tree-table-adapter.c (delete_node): use the parent path to
find the parent node rather than the row, which is not valid for
the root node, which still needs its visible child count updated.
svn path=/trunk/; revision=19797
* Makefile.am (INCLUDES): Define MAP_DIR in terms of $(imagesdir).
(widgetsincludedir): Define in terms of $(privincludedir)
svn path=/trunk/; revision=19772
2003-02-02 Hans Petter Jansson <hpj@ximian.com>
* e-calendar-item.[ch]: Use Pango to draw.
(e_calendar_item_class_init): Add font_desc and week_number_font_desc
args.
(e_calendar_item_get_arg): Ditto.
(e_calendar_item_set_arg): Ditto.
(e_calendar_item_draw_month): Use Pango.
(e_calendar_item_draw_day_numbers): Ditto.
* e-calendar.c: Use Pango to draw. Specify just the size of the small
font to use, instead of all aspects of it.
(e_calendar_init): Produce the small font description and pass it to
the ECalendarItem.
svn path=/trunk/; revision=19705