Commit Graph

1605 Commits

Author SHA1 Message Date
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
0bbe38655b GObject port work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* e-cell-checkbox.[ch]: GObject port work.

	* e-cell-combo.[ch]: same.

	* e-cell-date.[ch]: same.

	* e-cell-float.[ch]: same.

	* e-cell-number.[ch]: same.

	* e-cell-pixbuf.[ch]: same.

	* e-cell-popup.[ch]: same.

	* e-cell-progress.[ch]: same.

	* e-cell-size.[ch]: same.

	* e-cell-spin-button.[ch]: same.

	* e-cell-text.[ch]: same.

	* e-cell-toggle.[ch]: same.

	* e-cell-tree.[ch]: same.

	* e-cell-vbox.[ch]: same.

	* e-cell.[ch]: same.

	* e-table-col.c: same.

	* e-table-column.c: same.

	* e-table-config-field.[ch]: same.

	* e-table-config.c: same.

	* e-table-config.glade: same.

	* e-table-field-chooser-dialog.[ch]: same.

	* e-table-field-chooser-item.[ch]: same.

	* e-table-field-chooser.[ch]: same.

	* e-table-group-container.[ch]: same.

	* e-table-group-leaf.[ch]: same.

	* e-table-group.[ch]: same.

	* e-table-header-item.[ch]: same.

	* e-table-header-utils.[ch]: same.

	* e-table-header.c: same.

	* e-table-item.[ch]: same.

	* e-table-scrolled.[ch]: same.

	* e-table-utils.c: same.

	* e-table.[ch]: same.

	* e-tree-memory-callbacks.h: same.

	* e-tree-scrolled.[ch]: same.

	* e-tree-sorted-variable.c: same.

	* e-tree.[ch]: same.

	* test-check.c: same.

	* test-cols.c: same.

	* test-table.c: same.

svn path=/trunk/; revision=18801
2002-11-17 00:02:53 +00:00
d8e4ebebc3 Lots of GObject work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-completion-test.c: Lots of GObject work.

	* gal/e-text/e-completion-view.[ch]: same.

	* gal/e-text/e-completion.[ch]: same.

	* gal/e-text/e-entry.[ch]: same.

	* gal/e-text/e-table-text-model.[ch]: same.

	* gal/e-text/e-text-model-uri.[ch]: same.

	* gal/e-text/e-text-model.[ch]: same.

	* gal/e-text/e-text-test.c: same.

	* gal/e-text/e-text.[ch]: same.

svn path=/trunk/; revision=18800
2002-11-16 23:49:31 +00:00
09e8fe2317 GtkObject->Gobject and GnomeDialog->GtkDialog work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal-view-instance-save-as-dialog.c: GtkObject->Gobject and
	GnomeDialog->GtkDialog work.

	* gal-view-new-dialog.[ch]: same.

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

svn path=/trunk/; revision=18799
2002-11-16 23:46:27 +00:00
183eb85406 lots of GObject work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/color-group.c: lots of GObject work.

	* gal/widgets/color-palette.[ch]: same.

	* gal/widgets/e-canvas-backgruond.[ch]: same.

	* gal/widgets/e-canvas-vbox.[ch]: same.

	* gal/widgets/e-canvas.[ch]: same.

	* e-categories-master-list-array.[ch]: same.

	* e-categories-master-list-combo.[ch]: same.

	* e-categories-master-list-dialog-model.[ch]: same.

	* e-categories-master-list-dialog.[ch]: same.

	* e-categories-master-list-option-menu.[ch]: same.

	* e-categories-master-list.[ch]: same.

	* e-categories.[ch]: same.

	* e-file-selection.[ch]: same.

	* e-gui-utils.c: same.

	* e-hscrollbar.[ch]: same.

	* e-option-menu.[ch]: same.

	* e-popup-menu.[ch]: same.

	* e-printable.[ch]: same.

	* e-reflow-sorted.[ch]: same.

	* e-reflow.[ch]: same.

	* e-scroll-frame.[ch]: same.

	* e-vscrollbar.[ch]: same.

	* gtk-combo-box.[ch]: same.

	* gtk-combo-stack.[ch]: same.

	* gtk-combo-text.[ch]: same.

	* test-e-font.c: same.

	* widget-color-combo.[ch]: same.

	* widget-pixmap-combo.[ch]: same.

svn path=/trunk/; revision=18798
2002-11-16 23:42:18 +00:00
2a9def0dc9 new function, build pango layout for string.
2002-11-15  Chris Toshok  <toshok@ximian.com>

	* e-clipped-label.c (build_layout): new function, build pango
	layout for string.
	(e_clipped_label_size_request): pango-ize this, make the size
	requested dependent on the label.
	(e_clipped_label_expose): pango-ize this.
	(e_clipped_label_recalc_chars_displayed): pango-ize this.

svn path=/trunk/; revision=18784
2002-11-15 20:29:59 +00:00
b7c86285a3 (esma_dispose): g_object_unref() instead of gtk_object_unref().
(esma_dispose):
g_object_unref() instead of gtk_object_unref().

svn path=/trunk/; revision=18779
2002-11-15 16:36:30 +00:00
868a2d664a fix typo.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-header-item.c (ethi_popup_customize_view): fix typo.

svn path=/trunk/; revision=18777
2002-11-15 03:06:29 +00:00
f60cb1f537 ETableConfig derives from GObject (fix warnings).
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-header-item.c (ethi_popup_customize_view): ETableConfig
	derives from GObject (fix warnings).

	* e-table.c: deal with ESorter deriving from GObject.

	* e-table-sorter.[ch]: this derives from GObject now.

svn path=/trunk/; revision=18775
2002-11-15 02:49:15 +00:00
b39be53775 deal with EBitArray/ESorter being a GObject now.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-selection-model-array.c: deal with
	EBitArray/ESorter being a GObject now.

	* gal/widgets/e-selection-model-simple.c: same.

	* gal/util/e-bit-array.[ch]: this derives from GObject now.

	* gal/util/e-sorter.[ch]: same.

	* gal/util/e-sorter-array.[ch]: same.

svn path=/trunk/; revision=18774
2002-11-15 02:47:18 +00:00
b9b2089527 deal with ESelectionModel no longer deriving from GtkObject.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-item.c: deal with ESelectionModel no longer deriving
	from GtkObject.

	* e-table.c: same.

	* e-tree.c: same.

	* e-table-config.c (do_fields_config_dialog): use GtkDialog's
	reponse instead of GnomeDialog's button.

	* e-table-click-to-add.[ch]: GObjectify this.

	* e-table-selection-model.[ch]: this derives from GObject now.

	* e-tree-selection-model.[ch]: same.

svn path=/trunk/; revision=18773
2002-11-15 02:22:00 +00:00
555aa35da2 this derives from GObject now.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-selection-model.[ch]: this derives from GObject now.

	* gal/widgets/e-selection-model-simple.[ch]: same.

	* gal/widgets/e-selection-model-array.[ch]: same.

	* gal/widgets/e-reflow-model.[ch]: same.

	* gal/widgets/e-reflow.c: fix all references to EReflowModel such
	that it's a GObject, not a GtkObject.

svn path=/trunk/; revision=18772
2002-11-15 02:18:33 +00:00
b75c80d63f use GtkDialog's ::response instead of GnomeDialog's ::clicked.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* menus/gal-view-menus.c (define_views): use GtkDialog's
	::response instead of GnomeDialog's ::clicked.
	(dialog_response): use response id's.
	(gvm_finalize): fix warning.

svn path=/trunk/; revision=18768
2002-11-15 00:26:42 +00:00
8539e8dd1a hrm, we shouldn't need to do this, but gtk_widget_show_all the custom
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* gal-define-views-dialog.c (gal_define_views_dialog_init): hrm,
	we shouldn't need to do this, but gtk_widget_show_all the custom
	widget so it actually shows up.

svn path=/trunk/; revision=18767
2002-11-15 00:26:02 +00:00
27fbc0098c this subclasses from GObject now, not GtkObject. don't use GtkObject
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-without.[ch]: this subclasses from GObject now, not
	GtkObject.  don't use GtkObject (especially casts to it) inside
	the code.

	* e-table-config-no-group.glade: libglade-convert.

	* e-table-config.glade: same.

	* e-table-field-chooser.glade: same.

	* e-table-group.glade: same.

svn path=/trunk/; revision=18766
2002-11-15 00:23:44 +00:00
e69c2b94c2 New. (e_clipped_label_destroy): Removed.
* e-clipped-label.c (e_clipped_label_finalize): New.
(e_clipped_label_destroy): Removed.

* e-title-bar.c (destroy): Removed.
(impl_finalize): New.
(class_init): Install GObject::finalize handler instead of
GtkObject::destroy handler.

svn path=/trunk/; revision=18761
2002-11-14 21:49:19 +00:00
792733a3c6 Changed to use g_object_*() and g_signal_*()
functions instead of gtk_object_*() and gtk_signal_*().
(destroy): Removed.
(dispose): New.
(class_init): Install GObject::dispose handler instead of
GtkObject::destroy handler.

svn path=/trunk/; revision=18753
2002-11-14 17:46:44 +00:00
d020bcad5c add more marshallers for e-table.
2002-11-13  Chris Toshok  <toshok@ximian.com>

	* gal/util/e-marshal.list: add more marshallers for e-table.

svn path=/trunk/; revision=18750
2002-11-14 01:56:40 +00:00
6c2f176cb6 more porting work.
2002-11-13  Chris Toshok  <toshok@ximian.com>

	* gal-define-views-dialog.[ch]: more porting work.

	* gal-define-views-model.[ch]: same.

	* gal-view-etable.c: same.

	* gal-view-factory-etable.c: same.

	* gal-view-instance-save-as-dialog.[ch]: same.

	* gal-view-instance.c: same.

	* gal-view-new-dialog.[ch]: same.

	* gal-define-views.glade: convert to glade2.

	* gal-view-instance-save-as-dialog.glade: same.

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

svn path=/trunk/; revision=18749
2002-11-13 23:34:40 +00:00
d023f5d548 menus/gal-view-menus.h GObjectified.
* menus/gal-view-menus.h
* menus/gal-view-menus.c: GObjectified.

* e-timezone-dialog/e-timezone-dialog.h
* e-timezone-dialog/e-timezone-dialog.c: GObjectified.

svn path=/trunk/; revision=18747
2002-11-13 22:53:58 +00:00
cd31ceb85f start porting to GObject.
2002-11-13  Chris Toshok  <toshok@ximian.com>

	* gal-view-collection.[ch]: start porting to GObject.

	* gal-view-etable.[ch]: same.

	* gal-view-factory-etable.[ch]: same.

	* gal-view-factory.[ch]: same.

	* gal-view-factory.[ch]: same.

	* gal-view-instance.[ch]: same.

	* gal-view.[ch]: same.

svn path=/trunk/; revision=18745
2002-11-13 20:20:01 +00:00
b8ecec622d Converted to Glade 2.
svn path=/trunk/; revision=18740
2002-11-13 18:50:31 +00:00
d9b4457fa6 gnome-xml->libxml
2002-11-13  Not Zed  <NotZed@Ximian.com>

        * menus/gal-view-menus.c: gnome-xml->libxml

        * menus/gal-view-menus.h: gnome-xml->libxml

svn path=/trunk/; revision=18734
2002-11-13 09:42:55 +00:00
b5d027f428 only clear choices if cv->choices != NULL. (e_completion_view_disconnect):
2002-11-11  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-completion-view.c (e_completion_view_destroy): only
	clear choices if cv->choices != NULL.
	(e_completion_view_disconnect): zero out cancel_signal_id.

svn path=/trunk/; revision=18718
2002-11-12 03:28:38 +00:00
f9ea4ba866 port to GObject.
2002-11-11  Chris Toshok  <toshok@ximian.com>

	* e-dateedit.[ch]: port to GObject.

svn path=/trunk/; revision=18717
2002-11-12 03:26:44 +00:00
07d5771f17 (init): Use GObject functions instead of
GtkObject throughout.

svn path=/trunk/; revision=18706
2002-11-11 19:50:22 +00:00