Commit Graph

1754 Commits

Author SHA1 Message Date
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
4a84630875 Don't request combo boxes that are 0 pixels tall. (position_date_popup):
2003-02-01  Hans Petter Jansson  <hpj@ximian.com>

	* e-dateedit.c (create_children): Don't request combo boxes that are
	0 pixels tall.
	(position_date_popup): Make this work when the button doesn't have
	its own window.

svn path=/trunk/; revision=19704
2003-02-02 03:07:00 +00:00
39d54f9d91 Just use gtk_widget_destroy as the G_CALLBACK function.
2003-02-01  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/widgets/e-gui-utils.c (e_auto_kill_popup_menu_on_hide): Just
	use gtk_widget_destroy as the G_CALLBACK function.

svn path=/trunk/; revision=19703
2003-02-02 03:01:32 +00:00
2ca00daea4 gtk_widget_destroy the menu rather than g_object_unref'ing it.
2003-01-31  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/widgets/e-gui-utils.c (kill_popup_menu): gtk_widget_destroy
	the menu rather than g_object_unref'ing it.

svn path=/trunk/; revision=19696
2003-01-31 20:55:41 +00:00
29a26b08f3 init the layout to NULL.
2003-01-26  Chris Toshok  <toshok@ximian.com>

	* e-clipped-label.c (e_clipped_label_new): init the layout to
	NULL.

svn path=/trunk/; revision=19639
2003-01-27 04:59:48 +00:00
b110f7e404 Make the label bold using the new args to e_clipped_label_new().
* e-title-bar.c (e_title_bar_construct): Make the label bold using
the new args to e_clipped_label_new().

* e-clipped-label.c (build_layout): Honor ->font_size and ->layout
in the newly created PangoLayout.
(e_clipped_label_new): New args font_weight, font_size.
(e_clipped_label_size_request): Removed unused variables.
(e_clipped_label_expose): Likewise.
(e_clipped_label_expose): Likewise.
(e_clipped_label_set_text): Likewise.
(e_clipped_label_recalc_chars_displayed): Likewise.

* e-clipped-label.h (struct _EClippedLabel): Add font_size, layout
members.

svn path=/trunk/; revision=19591
2003-01-23 19:30:48 +00:00
82978ed2ae destroy canvas items to removing them, simply unrefing them is not
2003-01-23  Larry Ewing  <lewing@ximian.com>

	* e-table-click-to-add.c (e_table_click_to_add_commit): destroy
	canvas items to removing them, simply unrefing them is not
	sufficient.

svn path=/trunk/; revision=19589
2003-01-23 18:40:17 +00:00
12a5962e32 (e_text_dispose): Renamed from
e_text_destroy; chain up to ::dispose instead of ::destroy.
(e_text_dispose, e_text_class_init): Override ::dispose, not
::destroy.

svn path=/trunk/; revision=19577
2003-01-22 22:54:17 +00:00
08bf403c7e (e_tree_table_adapter_load_expanded_state): Call
e_table_model_pre_changed() only once so we dont' get the table in
a frozen state after returning from here.

svn path=/trunk/; revision=19574
2003-01-22 21:38:51 +00:00
e55ad4d255 (widgetsincludedir): Version using $(BASE_VERSION).
svn path=/trunk/; revision=19568
2003-01-22 20:34:11 +00:00
a07108638c (gladedir): Version using
$(BASE_VERSION).
(INCLUDES): Update the MAP_DIR define with versioning.

svn path=/trunk/; revision=19567
2003-01-22 20:33:53 +00:00
99df61da47 reverse part of the patch from 1/15.
2003-01-17  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (show_pango_rectangle): reverse part of the
	patch from 1/15.

svn path=/trunk/; revision=19510
2003-01-17 23:31:36 +00:00
fdabee2040 pass pango_context_get_language to pango_context_get_metrics.
2003-01-17  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-entry.c (canvas_size_request): pass
	pango_context_get_language to pango_context_get_metrics.

svn path=/trunk/; revision=19507
2003-01-17 23:23:47 +00:00
e867ad711e Fix destroy.
svn path=/trunk/; revision=19505
2003-01-17 22:18:39 +00:00
f4a7080e82 (e_notice): Use gtk_dialog_run()
instead of gtk_widget_show() so we return only after the user
acknowledges the error.

svn path=/trunk/; revision=19504
2003-01-17 21:57:08 +00:00
da621e5406 apply the patch NotZed and I came up with to fix the height of the
2003-01-15  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (show_pango_rectangle): apply the patch
	NotZed and I came up with to fix the height of the evolution
	composer entries.

svn path=/trunk/; revision=19486
2003-01-15 21:45:51 +00:00
c22f252ffb Same here.
2003-01-15  Jeffrey Stedfast  <fejj@ximian.com>

	* e-tree-table-adapter.c
	(e_tree_table_adapter_save_expanded_state): Same here.

	* e-table-state.c (e_table_state_save_to_file): Same as below.

	* e-table-specification.c (e_table_specification_save_to_file):
	Back to using e_xml_save_file(). Not sure we can really trust
	xmlSaveFile (sure as hell couldn't in the libxml-1.x days),
	besides, e_xml_save_file protects against corruption due to not
	enough disk space.

svn path=/trunk/; revision=19481
2003-01-15 19:42:14 +00:00
285b33d516 Here too.
2003-01-15  Jeffrey Stedfast  <fejj@ximian.com>

	* gal-view-instance.c (save_current_view): Here too.

	* gal-view-collection.c (gal_view_collection_save): Use
	e_xml_save_file().

svn path=/trunk/; revision=19479
2003-01-15 19:38:50 +00:00
2f949ea127 add call to e_table_model_pre_change here to reduce spew.
2003-01-15  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-completion-view.c (begin_completion_cb): add call
	to e_table_model_pre_change here to reduce spew.
	(cancel_completion_cb): same.
	(completion_cb): same.
	(end_completion_cb): same.
	(clear_completion_cb): same.
	(lost_completion_cb): same.

svn path=/trunk/; revision=19478
2003-01-15 18:28:23 +00:00
09ea004d13 use PangoFontMetrics here instead of using the ascent/descent of the
2003-01-14  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-entry.c (canvas_size_request): use PangoFontMetrics
	here instead of using the ascent/descent of the GtkStyle's font.

svn path=/trunk/; revision=19468
2003-01-14 22:33:46 +00:00
962c8a0d9f If we set a clip rectangle, clear it after we've finished.
2003-01-15  Not Zed  <NotZed@Ximian.com>

        * e-cell-tree.c (ect_draw): If we set a clip rectangle, clear it
        after we've finished.

svn path=/trunk/; revision=19467
2003-01-14 22:33:44 +00:00
387af10dfa (init): Change dialog from
OK/Apply/Cancel to Apply/Close/OK to be closer to the HIG.

svn path=/trunk/; revision=19466
2003-01-14 22:30:15 +00:00
3be3c9494b Do not #include <e-bonobo-widget.h>. (e_set_dialog_parent): Remove the
* e-dialog-utils.c: Do not #include <e-bonobo-widget.h>.
(e_set_dialog_parent): Remove the BonoboWidget handling stuff (it
doesn't really work anyways).

* e-shell-view.c: Do not #include "e-bonobo-widget.h".

* Makefile.am (widgetsinclude_HEADERS): Ooops, remove
e-bonobo-widget.h.
(libemiscwidgets_a_SOURCES): Likewise, remove e-bonobo-widget.c.

svn path=/trunk/; revision=19460
2003-01-14 20:19:26 +00:00
51203b37f4 (EXTRA_DIST): e-util-marshal.list, not
e-book-marshal.list.
(widgetsinclude_HEADERS): Add e-bonobo-widget.h.
(libemiscwidgets_a_SOURCES): Add e-bonobo-widget.c.

svn path=/trunk/; revision=19457
2003-01-14 18:31:34 +00:00
5513846c31 (EXTRA_DIST): e-util-marshal.list, not
e-book-marshal.list.

svn path=/trunk/; revision=19443
2003-01-14 16:58:55 +00:00
da7b98f889 revert broken fix
2002-01-10  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): revert broken fix

svn path=/trunk/; revision=19413
2003-01-10 21:29:35 +00:00
86033606aa Images are now in $(datadir)/evolution/images
instead of $(datadir)/images/evolution.

svn path=/trunk/; revision=19294
2003-01-08 22:36:12 +00:00
89862745a8 Images are now in $(datadir)/evolution/images instead of
Images are now in
$(datadir)/evolution/images instead of
$(datadir)/images/evolution.

svn path=/trunk/; revision=19293
2003-01-08 22:35:47 +00:00
f523f2d153 free the children before we free and dispose of our ecol, since
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* e-table-group-container.c (etgc_dispose): free the children
	before we free and dispose of our ecol, since
	e_table_group_container_child_node_free depends on it.  Fixes a
	crash.

svn path=/trunk/; revision=19166
2002-12-19 03:22:02 +00:00
82a04fbcb4 pass NULL for parent_window for e_table_config_new.
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* e-table-header-item.c (ethi_popup_customize_view): pass NULL for
	parent_window for e_table_config_new.

	* e-table-config.glade, e-table-config-no-group.glade: switch from
	GnomePropertyBox to GtkDialog, remove the extra notebook widget
	from the heirarchy, and set all the subdialogs modal.

	* e-table-config.h: add parent_window arg to
	e_table_config_{new,construct}.

	* e-table-config.c (config_dialog_changed): new function, not
	really needed yet since the apply/ok buttons are never
	insensitive.
	(config_get_property): handle the "state" read-only property.
	(config_class_init): put back in the "state" property that was
	deleted during the merge from the gal-2 branch (it looks like).
	(do_sort_and_group_config_dialog): set the sort/group dialog
	transient for the e-table-config dialog, and
	gnome_property_box_changed -> config_dialog_changed.
	(do_fields_config_dialog): same, but with the fields dialog.
	(dialog_response): response handler for the e-table-config dialog.
	(setup_gui): remote the hide button/notebook code, since neither
	of those widgets exist anymore in this dialog, and remove the
	"apply" signal and connect to "response", since we're a GtkDialog
	dialog instead of a GnomePropertyBox.
	(e_table_config_construct): take a parent_window arg, and
	set_transient_for if it's non-NULL.
	(e_table_config_new): take parent_window arg and pass to
	construct.

svn path=/trunk/; revision=19165
2002-12-19 02:24:24 +00:00
be8b72f963 add the parent arg.
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* gal-view.[ch] (gal_view_edit): add the parent arg.

	* gal-view-new-dialog.c (gal_view_new_dialog_init): set the dialog
	modal.

	* gal-view-etable.c (gal_view_etable_edit): take the parent arg
	and pass it to e_table_config_new.

	* gal-define-views-dialog.c (gdvd_button_new_dialog_callback):
	pass the dialog as the parent to gal_view_edit.
	(gdvd_button_modify_callback): same.
	(gdvd_button_new_callback): set view_new_dialog transient for
	dialog.

svn path=/trunk/; revision=19164
2002-12-19 02:23:44 +00:00
7adf0fe63f edit->tep isn't a GtkObject anymore.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.c (_get_tep): edit->tep isn't a GtkObject anymore.

svn path=/trunk/; revision=19144
2002-12-17 06:25:18 +00:00
b6a3b64021 pass in the pango layout so we don't have to create another one here.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-table-header-utils.c (e_table_draw_elided_string): pass in the
	pango layout so we don't have to create another one here.  Also,
	elide the string properly (same method that e-clipped-label uses)
	and simplify the extent operations.
	(e_table_header_compute_height): just use
	pango_layout_get_pixel_size here.
	(e_table_header_draw_button): make sure the clip rectangle is
	NULL'ed on our gc, since random gtk calls seem to install one,
	which sucks.  Also, simplify the pango layout stuff a little.

svn path=/trunk/; revision=19142
2002-12-16 23:24:24 +00:00
ddc321dd76 remove obvious double g_strdup.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-table.c (et_real_construct): remove obvious double g_strdup.

	* e-table-header-item.c (ethi_header_context_menu): ref/sink the
	popup.

	* e-table-field-chooser.c (e_table_field_chooser_init): use
	gtk_widget_show_all so our custom widget gets displayed.

svn path=/trunk/; revision=19135
2002-12-16 20:43:50 +00:00
2d40006720 valgrindage
2002-12-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): valgrindage

svn path=/trunk/; revision=19119
2002-12-14 05:31:07 +00:00
02a2b0046f protect against null instance_id's (bug#35540)
2002-12-13  Mike Kestner  <mkestner@ximian.com>

	* gal-view-instance.c (gal_view_instance_construct):
	protect against null instance_id's (bug#35540)

svn path=/trunk/; revision=19118
2002-12-14 05:27:01 +00:00
8d8578a64d check for null or blank view names
2002-12-10  Gilbert Fang  <gilbert.fang@sun.com>

	* gal-define-views-dialog.c (gdvd_button_new_dialog_callback):
	check for null or blank view names

svn path=/trunk/; revision=19096
2002-12-11 05:51:47 +00:00