Commit Graph

1690 Commits

Author SHA1 Message Date
453ffef3e3 kill an unused variable
svn path=/trunk/; revision=20276
2003-03-13 18:26:09 +00:00
bbde1e136a Various cleanups. (e_timezone_dialog_get_timezone): Return an
* 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-11 22:23:07 +00:00
c6a1e23298 Use GtkArrow instead of pixmaps Use GtkArrow instead of pixmaps
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-11 21:22:14 +00:00
9b5ba0524e Added prototype for show_pango_rectangle()
2003-03-10  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/e-text/e-text.c: Added prototype for show_pango_rectangle()

svn path=/trunk/; revision=20233
2003-03-10 15:27:21 +00:00
c8a10fa6da fix drawing bugs, and disable the stupid looking focus rect, since I can't
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-07 22:57:40 +00:00
34b5562c9f (destroy): Removed unused variable.
svn path=/trunk/; revision=20201
2003-03-06 17:24:48 +00:00
3de88468be Use G_GNUC_FUNCTION instead of __FUNCTION__.
* menus/gal-view-menus.c (gal_view_menus_unmerge): Use
G_GNUC_FUNCTION instead of __FUNCTION__.

* e-dropdown-button.c (menu_deactivate_cb): Removed debugging
spew.

svn path=/trunk/; revision=20200
2003-03-06 17:24:22 +00:00
5c97b1f792 fix a couple ==TRUE uses pointed out by Morten Welinder <terra@diku.dk>.
2003-03-05  Mike Kestner  <mkestner@ximian.com>

	* e-tree-model.c : fix a couple ==TRUE uses pointed out by
	Morten Welinder <terra@diku.dk>.

svn path=/trunk/; revision=20169
2003-03-05 15:21:09 +00:00
63aef14c02 i18n fix
2003-03-04  Dmitry Mastrukov  <dmitry@taurussoft.org>

	* gal/widgets/e-unicode.c : i18n fix

2003-03-04  Dmitry Mastrukov  <dmitry@taurussoft.org>

	* e-cell-date.c (ecd_get_text): i18n fix
	* e-table.c (et_real_construct): i18n fix
	* e-table-config.c (create_global_store): i18n fix
	* e-table-utils.c (et_col_spec_to_col): i18n fix

2003-03-04  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c : some cursor fixes

svn path=/trunk/; revision=20156
2003-03-04 22:09:44 +00:00
e366ce662a rewrite to store selected paths in a hashtable instead of a tree. lose the
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-03-04 06:53:46 +00:00
2ee1eb9078 Add style_set to update list properly (et_canvas_realize): Remove this as
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-28 18:43:30 +00:00
dd2a35e673 remove alloc-based transform (et_drag_data_received): ditto
2003-02-28  Mike Kestner  <mkestner@ximian.com>

	* e-table.c (et_drag_motion): remove alloc-based transform
	(et_drag_data_received): ditto
	(et_drag_drop): ditto
	(do_drag_motion): ditto

svn path=/trunk/; revision=20100
2003-02-28 17:09:42 +00:00
f37fdf7f9b remove alloc-based transform (et_drag_data_received): ditto
2003-02-28  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (et_drag_motion): remove alloc-based transform
	(et_drag_data_received): ditto
	(et_drag_drop): ditto
	(et_hover_timeout): ditto
	(do_drag_motion): ditto

svn path=/trunk/; revision=20099
2003-02-28 17:01:34 +00:00
c003d7dec8 init column_count to column_start + 1. (item_removed): clean up the
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-28 01:32:27 +00:00
265fea16e7 guard this so we don't try to free priv multiple times.
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 23:02:46 +00:00
1de4b21c42 use gdk_event_copy and gdk_event_free to dup the event.
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-27 22:24:38 +00:00
da0afe53d2 remove the grab_cancelled_check_id if it's still active.
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
2003-02-27 04:13:06 +00:00
176204b94f Use g_signal_handlers_disconnect_by_func since
* 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 15:39:47 +00:00
f446063c57 Same as below.
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-25 07:03:46 +00:00
b6fadac1f1 Don't unref the GtkInvisible - instead, destroy it.
2003-02-24  Hans Petter Jansson  <hpj@ximian.com>

	* gal/e-text/e-text.c (e_text_dispose): Don't unref the GtkInvisible -
	instead, destroy it.

svn path=/trunk/; revision=20040
2003-02-24 19:07:09 +00:00
4508cf787c fix overzealous g_asserts to avoid crashes when eti->rows is already
2003-02-20  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): fix overzealous
	g_asserts to avoid crashes when eti->rows is already updated.

svn path=/trunk/; revision=19982
2003-02-20 21:52:15 +00:00
4a0d26411c kill (etsm_find_node_unless_equals): use new etta_orig_position
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-20 19:15:14 +00:00
986f2ace07 Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamic
libraries, so they can be portably linked into the (shared library)
components. (Part 1 of N.)

svn path=/trunk/; revision=19971
2003-02-20 16:48:43 +00:00
ebb7a2c191 set remap_needed
2003-02-18  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (move_map_elements): set remap_needed

svn path=/trunk/; revision=19930
2003-02-18 17:32:47 +00:00
0def5bcb84 make sure the row >= 0 before calling value_at to calc "strikeout".
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 21:47:52 +00:00
8be77ed0d8 make things compile on an alpha. passing NULL to a var_arg not portable.
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-17 19:23:16 +00:00
6f8b2d31d9 return after the e_table_model_no_change call.
2003-02-17  Chris Toshok  <toshok@ximian.com>

	* e-tree-table-adapter.c (etta_proxy_node_data_changed): return
	after the e_table_model_no_change call.
	(etta_proxy_node_col_changed): same.

svn path=/trunk/; revision=19923
2003-02-17 09:17:19 +00:00
0f7100a65c make this actually work: destroy the canvas item, memmove stuff around,
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-17 02:58:09 +00:00
baa50a5c89 enable this function to reflow the view from a particular column onward.
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-17 02:38:15 +00:00
afac6edb53 guard for null paths if save_id lookup fails.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (*_load_expanded_state): guard for
	null paths if save_id lookup fails.

svn path=/trunk/; revision=19904
2003-02-13 19:16:56 +00:00
b88c27e9b2 don't transform based on allocation position. Position isn't absolute now.
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 18:02:52 +00:00
9901ae486e kill a double unref on the pango_layout.
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-13 16:07:38 +00:00
a371f7b3fc Request a reflow on realization, so size and placement will be correct
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 23:36:21 +00:00
1ebf9b6fd1 handle reverse searches (find_prev_in_range): reverse search impl
2003-02-12  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (e_tree_find_next): handle reverse searches
	(find_prev_in_range): reverse search impl
	(et_real_construct): kill warnings

svn path=/trunk/; revision=19897
2003-02-12 20:26:15 +00:00
ad82875fbf work around broken models that insert children before parents. bad models.
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-12 18:02:32 +00:00
33841eb730 rewrite to use etta (find_next_in_range): helper func to search a range of
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-10 18:04:25 +00:00
18d96c5ff3 ignore test-completion.
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
2003-02-10 02:21:47 +00:00
40e78f6df8 Unmarked some strings which are unsuitable for translation
svn path=/trunk/; revision=19857
2003-02-09 09:57:18 +00:00
88698ec92a replaced deprecated calls (gtk_menu_append -> gtk_menu_shell_append and
2003-02-07  Radek Doulik  <rodo@ximian.com>

	* gal/widgets/e-popup-menu.c (e_popup_menu_create_with_domain):
	replaced deprecated calls (gtk_menu_append ->
	gtk_menu_shell_append and gtk_radio_menu_item_group ->
	gtk_radio_menu_item_get_group)

svn path=/trunk/; revision=19841
2003-02-07 09:53:11 +00:00
75b60575be (e_auto_kill_popup_menu_on_selection_done): Rename from
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 23:22:50 +00:00
8e5ed06cc1 index bound bug (insert_children): prepend/reverse for now
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 20:35:51 +00:00
9032dac041 Set response_ids on the OK/Cancel buttons
* e-timezone-dialog/e-timezone-dialog.glade: Set response_ids on
	the OK/Cancel buttons

svn path=/trunk/; revision=19827
2003-02-06 19:40:41 +00:00
749c7626eb use the parent path to find the parent node rather than the row, which is
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
2003-02-06 02:17:14 +00:00
fe4da718f0 Remove unneeded MAP_DIR define. (gladedir): Remove. Defined in
* e-timezone-dialog/Makefile.am (INCLUDES): Remove unneeded
	MAP_DIR define.
	(gladedir): Remove. Defined in configure.in now.

	* menus/gal-view-menus.c: #include <string.h>

svn path=/trunk/; revision=19773
2003-02-05 22:04:48 +00:00
a8d95c424f Define MAP_DIR in terms of $(imagesdir). (widgetsincludedir): Define in
* Makefile.am (INCLUDES): Define MAP_DIR in terms of $(imagesdir).
	(widgetsincludedir): Define in terms of $(privincludedir)

svn path=/trunk/; revision=19772
2003-02-05 22:04:32 +00:00
b0f27fa8d7 Replace deprecated glade_gnome_init() call with glade_init().
* e-table-config.c (config_class_init): Replace deprecated
	glade_gnome_init() call with glade_init().

	* e-table-field-chooser.c (e_table_field_chooser_class_init):
	Likewise.

svn path=/trunk/; revision=19759
2003-02-05 18:02:17 +00:00
3fd6662401 make GAL_LIBS use -lgal-2.0 remove extraneous GTK_LIBS reference update to
2003-02-03  Mike Kestner  <mkestner@ximian.com>

	* configure.in : make GAL_LIBS use -lgal-2.0
	* gal/Makefile.am : remove extraneous GTK_LIBS reference
	* tests/test-tree-3.c : update to new etta API

gal/e-table/ChangeLog
2003-02-03  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c : remove e-tree-sorted usage
	* e-tree-table-adapter.* : rewrite to perform sorting
	* e-tree.c : remove e-tree-sorted usage

svn path=/trunk/; revision=19755
2003-02-05 06:03:05 +00:00
a5e82f72f8 updated for e scroll frame --> gtk scrolled window
svn path=/trunk/; revision=19736
2003-02-04 19:03:02 +00:00
9a00cb7215 replaced e scroll frame with gtk scrolled window
svn path=/trunk/; revision=19735
2003-02-04 19:01:48 +00:00
9c2e592707 Use Pango to draw. (e_calendar_item_class_init): Add font_desc and
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
2003-02-02 08:02:27 +00:00