Commit Graph

1739 Commits

Author SHA1 Message Date
327954a4ec free data here since we don't have source in finalize
2003-04-11  JP Rosevear  <jpr@ximian.com>

	* e-table-one.c (one_dispose): free data here since we don't have
	source in finalize

svn path=/trunk/; revision=20817
2003-04-11 15:13:38 +00:00
7acf500ad5 use stock buttons, remove desc frame. #if out the copy button. add
2003-04-10  Mike Kestner  <mkestner@ximian.com>

	* gal-define-views.glade : use stock buttons, remove desc frame.
	* gal-define-views-dialog.c (gdvd_init): #if out the copy button.
	* gal-view-instance.c (g_v_i_get_popup_menu): add ellipsis to
	Define Views menuitem.

svn path=/trunk/; revision=20804
2003-04-10 17:47:08 +00:00
8e56e45ae6 add ... to "Define Views" and "Save Custom View" menuitem labels.
2003-04-10  Mike Kestner  <mkestner@ximian.com>

	* menus/gal-view-menus.c (build menus): add ... to "Define Views"
	and "Save Custom View" menuitem labels.

svn path=/trunk/; revision=20802
2003-04-10 15:22:13 +00:00
43b39edf09 add response ids to buttons
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-table-config-no-group.glade : add response ids to buttons

svn path=/trunk/; revision=20770
2003-04-08 21:10:14 +00:00
0cdafe3604 kill an old e_utf8_gtk usage
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-search-bar.c (set_option): kill an old e_utf8_gtk usage

and remove some straggling e-font.h includes.

svn path=/trunk/; revision=20769
2003-04-08 20:44:58 +00:00
122470e9be remove e-font.[ch], test-e-font, and test-font-loading. kill
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* gal/widgets/Makefile.am : remove e-font.[ch], test-e-font,
	and test-font-loading.
	* gal/widgets/e-unicode.[ch] (e_utf8_from_gtk_string): kill
	(e_utf8_from_gtk_string_sized): kill
	(e_utf8_to_gtk_string): kill
	(e_utf8_to_gtk_string_sized): kill
	(e_utf8_gtk_menu_item_new_with_label): kill
	(e_utf8_gtk_clist_set_text): kill
	(e_utf8_gtk_clist_append): kill
	* e-categories-master-list-option-menu.c (ecmlom_ecml_changed):
	don't use e_utf8_to_gtk_string.
	* e-categories-master-list-combo (ecmlc_ecml_changed):
	don't use e_utf8_to_gtk_string.

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

	* e-cell-text.c : break e-font dependency

svn path=/trunk/; revision=20766
2003-04-08 19:48:41 +00:00
47c282f8c1 gal/e-text/e-text.[ch] : break EFont dependency
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	gal/e-text/e-text.[ch] : break EFont dependency

svn path=/trunk/; revision=20763
2003-04-08 17:09:10 +00:00
fe0bc3328d swap button order swap button order
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-table-config.glade : swap button order
	* e-table-config-no-group.glade : swap button order

svn path=/trunk/; revision=20761
2003-04-08 16:08:22 +00:00
1735baf281 fix button order fix button order fix button order
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* gal-define-views-dialog.c : fix button order
	* gal-view-instance-save-as-dialog.c : fix button order
	* gal-view-new-dialog.c : fix button order

svn path=/trunk/; revision=20755
2003-04-08 15:31:51 +00:00
65922aa0c6 remove debugging g_print calls fix length_threshold prop range fix
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-cell-popup.c : remove debugging g_print calls
	* e-table-group-container.c : fix length_threshold prop range
	* e-table-group-leaf.c : fix length_threshold prop range
	* e-table-item.c : fix length_threshold prop range

svn path=/trunk/; revision=20750
2003-04-08 14:36:55 +00:00
fc5fc4dcf0 fill_color_gdk is a boxed GdkColor, not a pointer. (ecb_set_property):
2003-04-07  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-canvas-background.c (ecb_class_init):
	fill_color_gdk is a boxed GdkColor, not a pointer.
	(ecb_set_property): same.
	(ecb_get_property): same.

svn path=/trunk/; revision=20741
2003-04-08 04:34:34 +00:00
ea6d89e804 e_cell_percent_get_type returns GType, not GtkType.
2003-04-06  Chris Toshok  <toshok@ximian.com>

	* e-cell-percent.h: e_cell_percent_get_type returns GType, not
	GtkType.

	* e-cell-percent.c (e_cell_percent_new): use g_object_new, not
	gtk_object_new.

svn path=/trunk/; revision=20692
2003-04-07 02:09:59 +00:00
427a404501 guard against root == NULL. Bug #39491.
2003-04-04  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (etta_sort_info_changed): guard against
	root == NULL.  Bug #39491.

svn path=/trunk/; revision=20668
2003-04-04 16:16:35 +00:00
708189441c set handle_popup to TRUE on the EText.
2003-04-03  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-entry.c (e_entry_init): set handle_popup to TRUE on
	the EText.

	* gal/e-text/e-text.c (e_text_set_property): add setter for
	handle_popup.
	(e_text_get_property): add getter for handle_popup.
	(e_text_event): only do our special popup handling if handle_popup
	is true.  otherwise, pass the event along.
	(e_text_class_init): install the handle_popup property.
	(e_text_init): init handle_popup to FALSE, so we get default
	behavior in most cases.

	* gal/e-text/e-text.h: add "handle_popup" field, so the user of an
	EText can decide whether to handle popups themselves.

svn path=/trunk/; revision=20664
2003-04-03 23:31:22 +00:00
e2e058c6b4 emit a keypress signal. yes, i know this might not correspond to a single
2003-04-03  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (e_text_commit_cb): emit a keypress signal.
	yes, i know this might not correspond to a single keypress, but..

svn path=/trunk/; revision=20659
2003-04-03 08:46:53 +00:00
8045179fe8 ifdef gtk_widget_get_clipboard since we need to build against gtk 2.0.
2003-04-02  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (e_text_copy_clipboard): ifdef
	gtk_widget_get_clipboard since we need to build against gtk 2.0.
	(e_text_update_primary_selection): same.
	(e_text_paste): same.
	(e_text_do_popup): same.

svn path=/trunk/; revision=20657
2003-04-03 07:55:09 +00:00
edc0d3e040 only connect the signals if !im_context_signals_registered. (e_text_init):
2003-04-02  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (e_text_event): only connect the signals if
	!im_context_signals_registered.
	(e_text_init): init im_context_signals_registered = FALSE.

	* gal/e-text/e-text.c (struct _EText): add
	im_context_signals_registered.

svn path=/trunk/; revision=20656
2003-04-03 06:44:40 +00:00
049c9cdaca just disconnect based on DATA, so we only need 1 call. (e_text_event):
2003-04-02  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (e_text_dispose): just disconnect based on
	DATA, so we only need 1 call.
	(e_text_event): same.

svn path=/trunk/; revision=20655
2003-04-03 06:19:17 +00:00
d2af55db1a [ either fixes #39702 or comes damn, damn close. also, fixes EText to not
2003-04-02  Chris Toshok  <toshok@ximian.com>

	[ either fixes #39702 or comes damn, damn close.  also, fixes EText
	to not suck *nearly* as much. ]
	* gal/util/e-marshal.list: add NONE:POINTER,INT,OBJECT.

	* gal/e-text/e-entry.h: (struct _EEntryClass): popup ->
	populate_popup.

	* gal/e-text/e-entry.c (proxy_changed): rename, the old name was
	too damn long.
	(proxy_activate): same.
	(proxy_populate_popup): same, and change from popup to
	populate_popup.
	(e_entry_init): track change to cb names, and populate_popup.
	also, pass the ECanvas's im_context to the EText.
	(e_entry_class_init): POPUP -> POPULATE_POPUP.

	* gal/e-text/e-text.h (struct _EText): remove the old selection
	stuff, and add im_context/reset_im_context fields.
	(struct _ETextClass): popup -> populate_popup.

	* gal/e-text/e-text.c (e_text_dispose): remove all the
	GtkInvisible based selection stuff, and disconnect from/unref the
	im_context.
	(e_text_set_property): add "im_context" handling.
	(e_text_get_property): same.
	(e_text_event): connect/disconnect from the IM context's signals
	in the FOCUS_CHANGE handler.  in the KEY_PRESS/RELEASE handler,
	use gtk_im_context_filter_keypress if we have an im_context.
	also, use e_text_do_popup now instead of just emitting the "popup"
	signal.
	(e_text_copy_clipboard): new function.
	(e_text_delete_selection): new function.
	(e_text_cut_clipboard): new function.
	(e_text_paste_clipboard): new function.
	(e_text_select_all): new function.
	(primary_get_cb): new function, handle requests for the primary
	selection when we're the owner.
	(primary_clear_cb): new function, unfinished.
	(e_text_update_primary_selection): new function.
	(paste_received): new function, insert pasted text.
	(e_text_paste): new function,
	(popup_menu_detach): new function, not needed really.
	(popup_targets_received): new function, pop up the popup once we
	have the selection information necessary to sensitize the c/c/p
	buttons.
	(e_text_do_popup): new function, request the selection.
	(e_text_reset_im_context): new function.
	(e_text_command): for E_TEP_SELECT, call
	e_text_update_primary_selection.  for E_TEP_DELETE/INSERT,
	_delete_selection -> e_text_delete_selection.  for E_TEP_COPY,
	call e_text_copy_clipboard.  for E_TEP_PASTE/E_TEP_GET_SELECTION
	call e_text_paste.
	(e_text_class_init): change the "popup" signal to
	"populate_popup".  Also, add the "im_context" property.
	(e_text_commit_cb): new function. IM context callback.
	(e_text_retrieve_surrounding_cb): new function.  IM context
	callback.
	(e_text_delete_surrounding_cb): new function.  IM context
	callback.  unfinished.

svn path=/trunk/; revision=20653
2003-04-03 06:06:20 +00:00
7143de721b For example; a selection ending 2003-apr-02 does not fit into the
2003-04-02  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_set_selection): For example;
	a selection ending 2003-apr-02 does not fit into the remaining
	shown days after 1969-dec. Stop assuming that it does.

svn path=/trunk/; revision=20652
2003-04-03 04:00:19 +00:00
60ffd0653e (e_tree_class_init): Add a G_SIGNAL_TYPE_STATIC_SCOPE
for the GTK_TYPE_SELECTION_DATA arg.

svn path=/trunk/; revision=20650
2003-04-02 23:34:36 +00:00
0a0e1f2f03 restore expanded state of node and all children. Fixes Ximian bug #40393.
2003-04-02  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (update_node): restore expanded
	state of node and all children. Fixes Ximian bug #40393.
	(check_expanded): new traverser function

svn path=/trunk/; revision=20642
2003-04-02 16:18:15 +00:00
2c96683a37 move to using gtk_im_context.
2003-04-01  Larry Ewing  <lewing@ximian.com>

	* gal/widgets/e-canvas.c: move to using gtk_im_context.

	* gal/widgets/e-canvas.c: add im_context member.

svn path=/trunk/; revision=20634
2003-04-02 05:46:33 +00:00
c3efd8d943 Nuke GdkFont and use Pango's font measuring for everything.
2003-04-01  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_class_init)
	(e_calendar_item_destroy)
	(e_calendar_item_get_arg)
	(e_calendar_item_set_arg)
	(e_calendar_item_update)
	(e_calendar_item_draw)
	(e_calendar_item_draw_month)
	(e_calendar_item_draw_day_numbers)
	(e_calendar_item_recalc_sizes)
	(e_calendar_item_convert_position_to_day): Nuke GdkFont and use
	Pango's font measuring for everything.

	* e-calendar-item.h: Ditto.

	* e-calendar.c (e_calendar_init)
	(e_calendar_size_allocate): Ditto.

svn path=/trunk/; revision=20633
2003-04-02 05:38:19 +00:00
9f06cc4980 stop drawing that annoying focus rectangle.
2003-04-01  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (e_text_draw): stop drawing that annoying
	focus rectangle.

svn path=/trunk/; revision=20626
2003-04-02 02:53:39 +00:00
0929cef791 [ fixes bug #39508 ] add back in some suitably pango-ized code to get
2003-04-01  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #39508 ]
	* gal/e-text/e-text.c (e_text_command): add back in some suitably
	pango-ized code to get EText's scrolling horizontally as you move
	the cursor.

svn path=/trunk/; revision=20625
2003-04-02 02:49:00 +00:00
fb5893bb04 if killing the root node, set it to NULL in the priv data. Bug #39441.
2003-03-31  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (kill_gnode): if killing the root
	node, set it to NULL in the priv data. Bug #39441.

svn path=/trunk/; revision=20607
2003-04-01 05:03:46 +00:00
86c77578a1 Handle multiple destroys.
2003-03-30  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_destroy): Handle multiple
	destroys.

svn path=/trunk/; revision=20588
2003-03-31 05:15:38 +00:00
7e0741f407 set the sub item to the default as well
2003-03-28  JP Rosevear  <jpr@ximian.com>

	* e-search-bar.c (clear_search): set the sub item to the default
	as well

svn path=/trunk/; revision=20572
2003-03-29 02:16:56 +00:00
a4f6a54e0a (set_state): Removed debugging message.
svn path=/trunk/; revision=20548
2003-03-27 16:39:32 +00:00
6590f32a3e set the popup to insensitive when we pop it down. hack to force it to lose
2003-03-26  Not Zed  <NotZed@Ximian.com>

	* gal/e-text/e-entry.c (e_entry_show_popup): set the popup to
	insensitive when we pop it down.  hack to force it to lose focus,
	fix for #39719.

svn path=/trunk/; revision=20531
2003-03-26 23:46:20 +00:00
cb46b4039b #include gtkarrow.h Likewise
* e-calendar.c: #include gtkarrow.h
	* e-combo-button.c: Likewise

	* e-charset-picker.c: Update for e_notice move

svn path=/trunk/; revision=20499
2003-03-25 15:48:09 +00:00
351cb225cb Remove e_notice. (Moved to evolution.)
* gal/widgets/e-gui-utils.c: Remove e_notice. (Moved to
	evolution.)

svn path=/trunk/; revision=20496
2003-03-25 15:47:13 +00:00
0e01b294fa properly parse nodes that include whitespace. bug #39896
2003-03-24  Mike Kestner  <mkestner@ximian.com>

	* e-table-sort-info.c (e_table_sort_info_load_from_node):
	properly parse nodes that include whitespace. bug #39896

svn path=/trunk/; revision=20486
2003-03-24 19:12:18 +00:00
6ebc3ad9d9 don't call delete_node on the root node since generate_tree already does
2003-03-24  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (update_node): don't call delete_node
	on the root node since generate_tree already does that. Thanks
	to Antonio Xu <antonio.xu@sun.com> for identifying the cause of
	the bug and providing a candidate patch. Bug #38320.

svn path=/trunk/; revision=20481
2003-03-24 15:34:33 +00:00
8b67c6478d fix UMR.
2003-03-23  Chris Toshok  <toshok@ximian.com>

	* e-table.c (do_drag_motion): fix UMR.

svn path=/trunk/; revision=20469
2003-03-23 09:57:10 +00:00
8794fa517a Use glib macro G_GNUC_FUNCTION instead of __FUNCTION__. Thank u, Ettore.
2003-03-19  Sanshao Jiang  <alex.jiang@sun.com>

	* gal-view-collection.c (gal_view_collection_append_with_title):
	(gal_view_collection_set_nth_view): Use glib macro G_GNUC_FUNCTION
	instead of __FUNCTION__. Thank u, Ettore.

	* gal-view-instance.c (gal_view_instance_set_current_view_id): same
	(add_popup_radio_item): Fix to be compilable on other compilers,
	using gcc extension independent codes.(bug#39176)
	(add_popup_menu_item): same

svn path=/trunk/; revision=20455
2003-03-21 17:32:04 +00:00
17057abe19 [ fixes bug #39856 ] request a full redraw when we're done dragging
2003-03-21  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #39856 ]
	* gal/widgets/e-reflow.c (e_reflow_update): request a full redraw
	when we're done dragging columns.

svn path=/trunk/; revision=20450
2003-03-21 10:21:45 +00:00
9e5f92c8e4 Updated to use GtkDialog instead of GnomeDialog. Also fixed bug #39550
2003-03-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c: Updated to use GtkDialog instead of
	GnomeDialog. Also fixed bug #39550 while I was at it.

svn path=/trunk/; revision=20375
2003-03-19 23:42:12 +00:00
529a87dfe5 add underline_column field.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.h: add underline_column field.

	* e-cell-date.c: add underline_column to the comment.

	* e-cell-size.c: add underline_column to the comment.

	* e-cell-text.c (build_layout): handle underline column.
	(ect_show_tooltip): same.
	(ect_set_property): same.
	(ect_get_property): same.
	(e_cell_text_class_init): same.
	(e_cell_text_init): same.
	(e_cell_text_new): add underline_column to the comment.

svn path=/trunk/; revision=20347
2003-03-18 20:49:59 +00:00
bc9697c7d2 add cursor_idle_id.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* e-table-item.h (ETableItem): add cursor_idle_id.

	* e-table-item.c (eti_idle_maybe_show_cursor): save off the
	cursor_idle_id.
	(eti_idle_show_cursor_cb): reset the cursor_idle_id to 0.
	(eti_dispose): remove the cursor_idle_id.  Fixes a crash in the
	evolution select-names dialog.

svn path=/trunk/; revision=20346
2003-03-18 20:49:31 +00:00
b57393ab7c add cursor_idle_id.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* e-table-item.h (ETableItem): add cursor_idle_id.

	* e-table-item.c (eti_idle_maybe_show_cursor): save off the
	cursor_idle_id.
	(eti_idle_show_cursor_cb): reset the cursor_idle_id to 0.
	(eti_dispose): remove the cursor_idle_id.  Fixes a crash in the
	evolution select-names dialog.

svn path=/trunk/; revision=20344
2003-03-18 20:29:49 +00:00
ede2b62efc mimic Gtk's sort arrows (ethi_start_drag): mimic Gtk's sort arrows
2003-03-18  Mike Kestner  <mkestner@ximian.com>

	* e-table-header-item.c (ethi_draw): mimic Gtk's sort arrows
	(ethi_start_drag): mimic Gtk's sort arrows

svn path=/trunk/; revision=20340
2003-03-18 17:33:02 +00:00
aa46ddf806 Swap OK/Cancel buttons to comply with the HIG.
svn path=/trunk/; revision=20339
2003-03-18 17:16:22 +00:00
251ffc55ad null start_path (etsm_invert_selection): null start_path
2003-03-18  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c (select_single_path): null start_path
	(etsm_invert_selection): null start_path
	(etsm_toggle_single_row): null start_path
	(etsm_real_move_selection_end): start at start_path, not cursor
	(etsm_set_selection_end): set start_path
	(e_tree_selection_model_init): null start_path

svn path=/trunk/; revision=20337
2003-03-18 16:38:30 +00:00
8bc5772286 Instead of using gtk_widget_unparent(), remove the widget from the
2003-03-17  Hans Petter Jansson  <hpj@ximian.com>

	* gal-define-views-dialog.c (gal_define_views_dialog_init): Instead
	of using gtk_widget_unparent(), remove the widget from the container
	using gtk_container_remove(). This fixes crashers where the dialog
	is being used.

	* gal-view-instance-save-as-dialog.c
	(gal_view_instance_save_as_dialog_init): Ditto.

	* gal-view-new-dialog.c (gal_view_new_dialog_init): Ditto.

svn path=/trunk/; revision=20324
2003-03-17 22:31:22 +00:00
3f486d99c6 Don't crash if there's no timezone set initially. #39783
* e-timezone-dialog/e-timezone-dialog.c (on_map_motion): Don't
	crash if there's no timezone set initially. #39783

svn path=/trunk/; revision=20313
2003-03-17 19:47:34 +00:00
cb382f6c30 save and restore expanded state so parents don't collapse when children
2003-03-14  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (update_node): save and restore expanded
	state so parents don't collapse when children are added to them.
	(e_tree_table_adapter_node_is_expanded): guard against null nodes.

svn path=/trunk/; revision=20303
2003-03-14 23:38:34 +00:00
0b82cc7a34 use access() like camel
2003-03-14  Mike Kestner  <mkestner@ximian.com>

	* gal/util/e-util.c (e_mkdir_hier): use access() like camel

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

	* gal-view-collection.c (gal_view_collection_load): check failure
	on e_create_directory call and warn.
	* gal-view-instance.c (save_current_view): check for failure and
	warn.

svn path=/trunk/; revision=20291
2003-03-14 17:19:25 +00:00
453ffef3e3 kill an unused variable
svn path=/trunk/; revision=20276
2003-03-13 18:26:09 +00:00