Commit Graph

1630 Commits

Author SHA1 Message Date
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
6d87926c24 Removed the g_assert_not_reached(). If you hit the close button on your
2002-12-10  Not Zed  <NotZed@Ximian.com>

        * e-multi-config-dialog.c (impl_response): Removed the
        g_assert_not_reached().  If you hit the close button on your
        window it would abort, treat same as close.

svn path=/trunk/; revision=19083
2002-12-10 11:06:13 +00:00
bdd9cae5e9 rework this to be faster and deal more correctly with the ellipsis.
2002-12-09  Chris Toshok  <toshok@ximian.com>

	* e-clipped-label.[ch]: rework this to be faster and deal more
	correctly with the ellipsis.

svn path=/trunk/; revision=19076
2002-12-09 23:30:30 +00:00
84fabde6ba lots of stuff, add 2 e-text widgets, 1 readonly, the other writable (that
2002-12-08  Chris Toshok  <toshok@ximian.com>

	* tests/test-text.c: lots of stuff, add 2 e-text widgets, 1
	readonly, the other writable (that uses the uri model..)

	* gal/e-text/e-text.[ch]: lots of pango changes.  we don't do
	*anything* with gdk/e fonts now.  everything is pango.  There are
	still some issues while editting but display should more or less
	work properly now, and without all the performance problems.

	* gal/e-text/e-completion-view.c (e_completion_view_expose_event):
	use gtk_widget_send_expose instead of gtk_widget_event so we don't
	get the annoying gtk warning.

	* gal/e-text/e-entry.c (e_entry_dispose): make sure both the gdk
	and gtk grabs are removed.
	(e_entry_class_init): fill_color_gdk is a boxed type, not pointer.

	* gal/e-text/e-text-model-uri.h (E_TYPE_TEXT_MODEL_URI): oops,
	this should be e_text_model_uri_get_type, not
	e_text_model_get_type.

svn path=/trunk/; revision=19054
2002-12-08 21:44:08 +00:00
1d8a9f2443 Add a "collate" sort callback that uses the new g_collate_compare().
2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* e-table-extras.c (ete_init): Add a "collate" sort callback that
	uses the new g_collate_compare().

2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/util/e-util.c (g_str_compare): Revert back to using just
	strcmp - this fixes bug #33933 but reopens bug #26355.
	(g_collate_compare): New function meant to address the sorting
	required by bug #26335.

svn path=/trunk/; revision=19014
2002-12-05 18:31:30 +00:00
31002ecdfa guard against multiple calls.
2002-12-04  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-canvas-background.c (ecb_dispose): guard against
	multiple calls.

svn path=/trunk/; revision=19009
2002-12-04 22:40:41 +00:00
200071108f Don't leak old sort info.
2002-12-03  Hans Petter Jansson  <hpj@ximian.com>

        * e-table.c (e_table_get_state_object): Don't leak old sort info.

2002-12-03  Hans Petter Jansson  <hpj@ximian.com>

        * gal/widgets/e-canvas-background.c (ecb_destroy): Don't leak
        private structure.

svn path=/trunk/; revision=18999
2002-12-03 23:09:17 +00:00
fee69a584f dispose can be run multiple times too ... bloody gobject crap.
2002-12-03  Not Zed  <NotZed@Ximian.com>

        * e-search-bar.c (impl_dispose): dispose can be run multiple times
        too ... bloody gobject crap.

svn path=/trunk/; revision=18992
2002-12-03 04:55:22 +00:00
d16c201e16 make this a dispose rather than finalise. Crashes on finalise otherwise.
2002-12-03  Not Zed  <NotZed@Ximian.com>

        * e-tree-memory.c (etmm_dispose): make this a dispose rather than
        finalise.  Crashes on finalise otherwise.

svn path=/trunk/; revision=18990
2002-12-03 04:20:52 +00:00
19da39fe23 Reverted
svn path=/trunk/; revision=18983
2002-12-02 13:10:17 +00:00
ed349d459b Included gtkmessagedialog.h.
2002-12-02  Rodrigo Moya <rodrigo@ximian.com>

	* e-cahrset-picker.c: Included gtkmessagedialog.h.

svn path=/trunk/; revision=18981
2002-12-02 12:26:43 +00:00
0ac49c9334 Add include of gnome-dialog.h
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * e-charset-picker.c: Add include of gnome-dialog.h

        * *.[ch]: ran fix.sh script over everything.

svn path=/trunk/; revision=18979
2002-12-02 04:32:10 +00:00
4354c0ac03 Add include of gnome-dialog.h
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * e-charset-picker.c: Add include of gnome-dialog.h

        * *.[ch]: ran fix.sh script over everything.

svn path=/trunk/; revision=18978
2002-12-02 03:28:22 +00:00
42e49504cb rework this from the gal-2 branch, clahey's patch, and the stuff i'd done
2002-11-29  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c: rework this from the gal-2 branch, clahey's
	patch, and the stuff i'd done since.  it's working *MUCH* better
	now.

svn path=/trunk/; revision=18957
2002-11-30 06:14:58 +00:00
2e02727841 (etms_finalize): Call
e_table_memory_store_clear().

svn path=/trunk/; revision=18937
2002-11-26 22:25:50 +00:00
fb5e3d7237 Dont grab_add anymore on the button, gtk_button is changed in gtk2 not to
2002-11-26  Not Zed  <NotZed@Ximian.com>

        * e-combo-button.c (impl_button_press_event): Dont grab_add
        anymore on the button, gtk_button is changed in gtk2 not to do
        this anymore.

svn path=/trunk/; revision=18921
2002-11-26 10:41:05 +00:00
f5b3a0e2e5 commit clahey's original pango work.
2002-11-19  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.[ch]: commit clahey's original pango work.

svn path=/trunk/; revision=18850
2002-11-19 23:59:20 +00:00
36ef28a759 column_width = double. (e_reflow_realize): no need to cast to double,
2002-11-18  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_set_property): column_width =
	double.
	(e_reflow_realize): no need to cast to double, column_width is
	already a double.

svn path=/trunk/; revision=18833
2002-11-19 00:32:34 +00:00
64c16949b6 take GCallback, not GtkSignalFunc. (configure_sort_dialog): show the
2002-11-18  Chris Toshok  <toshok@ximian.com>

	* e-table-config.c (connect_button): take GCallback, not
	GtkSignalFunc.
	(configure_sort_dialog): show the custom widget.
	(configure_group_dialog): same.
	(configure_fields_dialog): same, also pass G_CALLBACK (func),
	instead of GTK_SIGNAL_FUNC (func), to connect_button.
	(setup_gui): pass G_CALLBACK (func), instead of GTK_SIGNAL_FUNC
	(func), to connect_button.

	* Makefile.am (glade_DATA): remove e-table-group.glade, since we
	don't use it anyplace.

svn path=/trunk/; revision=18832
2002-11-19 00:27:08 +00:00
56f74fbb19 we need to destroy the dialog after we've run it, because run doesn't do
2002-11-18  Not Zed  <NotZed@Ximian.com>

        * gal/widgets/e-gui-utils.c (e_notice): we need to destroy the
        dialog after we've run it, because run doesn't do it for us like
        gnome-dialog did.

svn path=/trunk/; revision=18816
2002-11-18 07:52:45 +00:00
0e8f42c136 convert this to wrap around GtkMessageDialog.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-gui-utils.c (e_notice): convert this to wrap
	around GtkMessageDialog.

	* gal/widgets/e-categories-master-list-dialog.c (dialog_response):
	gnome_dialog_close -> gtk_widget_destroy.

svn path=/trunk/; revision=18814
2002-11-17 08:00:40 +00:00
1a61aa98b3 convert some GnomeDialog stuff to GtkDialog.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal-view-instance.c: convert some GnomeDialog stuff to
	GtkDialog.

	* gal-view-instance-save-as-dialog.c: remove GnomeDialog
	references.

	* gal-view-new-dialog.c: same.

svn path=/trunk/; revision=18813
2002-11-17 07:59:50 +00:00
68b8639345 fix c&p typo.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_class_init): fix c&p typo.

	* gal/widgets/e-categories-master-list-dialog.c: switch to
	GtkDialogism's.

	* gal/widgets/gal-categories.[ch]: same.

	* gal/widgets/e-categories-master-list-dialog.glade: libglade-convert.

	* gal/widgets/e-categories.glade: same.

	* gal/util/e-text-event-processor.[ch]: subclass this from
	GObject.

	* gal/util/e-text-event-processor-emacs-like.[ch]: clean up the
	gtk cruft a bit.

	* gal/e-text/e-text.c (_get_tep): remove the _sink call.
	(e_text_init): same.

	* gal/e-text/e-text-model.[ch]: subclass this from GObject instead
	of GtkObject.

svn path=/trunk/; revision=18808
2002-11-17 05:40:18 +00:00
a01751b83a check for table->table_canvas == NULL.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* e-table.c (set_scroll_adjustments): check for
	table->table_canvas == NULL.

	* e-table-item.c (eti_dispose): guard eti->tooltip.

svn path=/trunk/; revision=18807
2002-11-17 05:29:05 +00:00
7ffb70dc82 fix c&p typo.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_class_init): fix c&p typo.

svn path=/trunk/; revision=18806
2002-11-17 01:44:53 +00:00