Commit Graph

1521 Commits

Author SHA1 Message Date
0ddf9119dd Fix some non-ANSI switch statements.
* e-filter-bar.c: Fix some non-ANSI switch statements.

svn path=/trunk/; revision=18155
2002-09-22 22:50:50 +00:00
c480805ecc Set the selection model's selection_mode after setting the table model, or
* e-table.c (et_real_construct): Set the selection model's
	selection_mode after setting the table model, or things will break
	in the GTK_SELECTION_SINGLE case if the table doesn't start out
	empty.

svn path=/trunk/; revision=18121
2002-09-19 18:28:24 +00:00
939ed95a48 guard against NULL nodes.
2002-09-18  Mike Kestner  <mkestner@ximian.com>

	* e-tree-model.c (e_tree_model_is_expandable): guard against NULL nodes.

svn path=/trunk/; revision=18118
2002-09-19 17:20:21 +00:00
d4aa28c5e2 exit editing on dblclick. ungrab based on grabbed_count. unset grabbed_col
2002-09-17  Mike Kestner  <mkestner@ximian.com>

	* gal/e-table/e-table-item.c (eti_event): exit editing on dblclick.
	ungrab based on grabbed_count. unset grabbed_col and grabbed_row
	on ungrab.

svn path=/trunk/; revision=18089
2002-09-17 18:27:50 +00:00
4081a13ff1 forgot to commit the po stuff from the release. also bumped the so number.
forgot to commit the po stuff from the release. also bumped the so number.

2002-09-10  Mike Kestner  <mkestner@ximian.com>

	* gal/e-table/e-table-item.c (eti_event): allow keypress handling
	for cursor_col==-1 as long as cursor_row isn't -1 also so that e-tree
	searching works without click focusing an item.

svn path=/trunk/; revision=18038
2002-09-10 22:35:19 +00:00
f533402ce6 take a clip_height and use it to set the maximum number of lines if
2002-09-10  JP Rosevear  <jpr@ximian.com>

	* gal/e-text/e-text.c (line_splitter): take a clip_height and use
	it to set the maximum number of lines if necessary
	(split_into_lines): pass clip_height arg

svn path=/trunk/; revision=18032
2002-09-10 17:24:50 +00:00
ca0432fb04 need to make the find now button sensitive when you select something from
2002-08-29  Chris Toshok  <toshok@ximian.com>

	* e-search-bar.c (subitem_activated_cb): need to make the find now
	button sensitive when you select something from a submenu.

svn path=/trunk/; revision=17931
2002-08-29 21:41:07 +00:00
61a36eb138 kill a return that caused selection ranges to not emit selection_changed
2002-08-29  Mike Kestner  <mkestner@ximian.com>

	* gal/widgets/e-selection-model-array.c : kill a return that caused
	selection ranges to not emit selection_changed if the end index only
	changed by 1.

svn path=/trunk/; revision=17930
2002-08-29 21:31:20 +00:00
bd94562c04 If the item is ADVANCED_ID, check the query and efb->setquery to see
2002-08-29  Peter Williams  <peterw@ximian.com>

	* e-filter-bar.c (option_changed): If the item is ADVANCED_ID, check
	the query and efb->setquery to see whether we should pop up the advanced
	dialog or clear an advanced search. Fixes #29625.

svn path=/trunk/; revision=17923
2002-08-29 17:24:43 +00:00
061919e5c4 Don't set the item id; clear search isn't in the menu anymore. Fixes
2002-08-21  Peter Williams  <peterw@ximian.com>

	* e-search-bar.c (clear_search): Don't set the item id; clear search
	isn't in the menu anymore. Fixes #29211.

svn path=/trunk/; revision=17849
2002-08-23 16:31:26 +00:00
8b36f00ff0 don't adjust for two digit dates here, the e_time_parse routines do that
2002-08-22  JP Rosevear  <jpr@ximian.com>

	* e-dateedit.c (e_date_edit_parse_date): don't adjust for two
	digit dates here, the e_time_parse routines do that now

svn path=/trunk/; revision=17834
2002-08-22 15:40:39 +00:00
48c16713cc ref/unref the gvm
2002-08-15  Mike Kestner  <mkestner@ximian.com>

	* menus/gal-view-menus.c (build_stuff): ref/unref the gvm

svn path=/trunk/; revision=17780
2002-08-15 15:23:17 +00:00
7cc54f371c And finally here.
2002-08-06  Jeffrey Stedfast  <fejj@ximian.com>

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

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

	* e-table-specification.c (e_table_specification_save_to_file): No
	need to save to a temp file first here either since
	e_xml_save_file now does that for us.

	* e-table.c (e_table_save_specification): No need to handle
	writing to a temp file first anymore, since I've updated
	e_xml_save_file() to handle that for us.

svn path=/trunk/; revision=17724
2002-08-07 03:37:40 +00:00
71eabe9f8c #include <string.h> for memset
2002-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-cell-progress.c: #include <string.h> for memset

	* e-table.c (e_table_save_specification): Updated to use
	e_xml_save_file() instead of xmlSaveFile(). Also fixed to save to
	a tmp file first.

	* e-table-specification.c (e_table_specification_save_to_file):
	Same as above.

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

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

svn path=/trunk/; revision=17717
2002-08-06 20:31:40 +00:00
115a2836e1 Set the query text into the filter name when saving it, for #10979.
2002-08-06  Not Zed  <NotZed@Ximian.com>

        * e-filter-bar.c (menubar_activated): Set the query text into the
        filter name when saving it, for #10979.

svn path=/trunk/; revision=17710
2002-08-06 05:19:49 +00:00
1080bf46a1 Add missing cast. (e_calendar_item_signal_emission_idle_cb): Likewise.
* e-calendar-item.c (e_calendar_item_signal_emission_idle_cb): Add
missing cast.
(e_calendar_item_signal_emission_idle_cb): Likewise.

* e-search-bar.c (init): Don't initialize dropdown_menu here
anymore since we got rid of it.

* e-search-bar.h (struct _ESearchBar): Removed member
dropdown_menu.

svn path=/trunk/; revision=17567
2002-07-24 06:28:45 +00:00
b7f80576ce (item_key_press): In the case of '-' and '=', check
that no non-Shift modifier is pressed.

svn path=/trunk/; revision=17556
2002-07-23 20:50:17 +00:00
ef539c50b7 Also perform a search on the query_changed signal, which is what gets
2002-07-22  Peter Williams  <peterw@ximian.com>

	* folder-browser.c (folder_browser_gui_init): Also perform a search
	on the query_changed signal, which is what gets emitted when the
	Search menu is used.

2002-07-22  Peter Williams  <peterw@ximian.com>

	* e-filter-bar.c (do_advanced): Break out the code for creating
	the advanced rule editor into a separate function, so that...
	(menubar_activated): ... can also create an Advanced dialog;
	needed when the Search menu's advanced button is used.
	(option_changed): Change this to call the function instead of
	having all the code to itself.

	* e-search-bar.h: Add id's for the FIND_NOW and CLEAR actions
	so that other code (eg, EFilterBar) doesn't get confused by
	an old id being used when the search-activated signal gets
	emitted.

	* e-search-bar.c (clear_search): Set the item_id to CLEAR
	before emitting the signal.
	(search_now_verb_cb): Just make this emit query_changed,
	as the button in the toolbar does.

svn path=/trunk/; revision=17550
2002-07-23 16:03:07 +00:00
56aad0a4c0 Made these able to find the potential row for a new node which will be the
2002-07-19  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-table-adapter.c (find_next_node, find_first_child_node):
	Made these able to find the potential row for a new node which
	will be the last row.
	(find_row_num): Made this handle find_next_node and
	find_first_child_node returning n_map.

svn path=/trunk/; revision=17517
2002-07-19 08:02:50 +00:00
515ebfd45c Install libversit.a so that people compiling against the addressbook can
2002-07-09  Peter Williams  <peterw@ximian.com>

       * libversit/Makefile.am (privlib_LIBRARIES): Install libversit.a so
       that people compiling against the addressbook can do so successfully.

       * Makefile.am: create our *Conf.sh files and dist them and install
       them.

       * configure.in: Define and subst some variables that the Conf.sh
       file need.

 2002-07-08  Peter Williams  <peterw@ximian.com>

       * backend/ebook/Makefile.am: Install libebook-static.la.
       Also change --all-static to -all-static, which is the right flag.

       * backend/pas/Makefile.am: Install the PAS headers in
       $(includedir)/evolution/pas. Install libpas.a


2002-07-08  Peter Williams  <peterw@ximian.com>

       * cal-util/Makefile.am: Install libcal-util-static.la
       and fix the -all-static flag to make it install statically.

       * pcs/Makefile.am: Install libpcs.a and its headers.

       * pcs/cal-backend-util.h: Same sort of include namespacing fix,
       but for pcs.

       * pcs/cal.h:
       * pcs/query.h:
       * pcs/cal-factory.h:
       * pcs/cal-backend.h:
       * pcs/cal-backend-file.h: Same.

2002-07-17  Peter Williams  <peterw@ximian.com>

       * calendar/cal-util/Makefile.am (GTKDOC_LIBS): Because we're
       using libtool as our LD, we can reference .la's and libtool
       will DTRT for us.

       * calendar/cal-client/Makefile.am (GTKDOC_LIBS): Same here.


2002-07-03  Peter Williams  <peterw@ximian.com>

       * Makefile.am: Install libeutil, libeconduit, and libedb3util and
       their headers.


2002-07-08  Peter Williams  <peterw@ximian.com>

       * Makefile.am: Reference the new libefilterbar.a.

 2002-07-12  Peter Williams  <peterw@ximian.com>

       * Makefile.am (INCLUDES): Add -I$(builddir)/libical/src/libical
       for the generated ical.h (some headers rely on this because
       they too get installed.)


2002-07-09  Peter Williams  <peterw@ximian.com>

       * e-timezone-dialog/Makefile.am: Add -I$(top_builddir)/libical/src/libical;
       some headers that we rely on get installed, so they point to the ical.h that
       gets generated and installed; consequently we need to be able to find the
       generated ical.h

       * misc/Makefile.am: Install libemiscwidgets.a and its headers. However,
       break EFilterBar into a separate libefilterbar.a because we don't want
       the installed library to depend on libfilter.

svn path=/trunk/; revision=17496
2002-07-17 21:03:19 +00:00
6dee50394a (setup_standard_verbs): Set the <commands> part
of the XML manually with bonobo_ui_component_set() otherwise the
verbs don't get added on the other side for us to be able to do
bonobo_ui_component_set_prop().
(setup_bonobo_menus): New, menu setup code taken from
update_bonobo_menus().
(remove_bonobo_menus): New; removes the Bonobo menus.
(update_bonobo_menus): Rewritten, just call remove_bonobo_menus()
first and setup_bonobo_menus() then.
(e_search_bar_set_ui_component): Call setup_bonobo_menus() and
remove_bonobo_menus() as appropriate instead of just
update_bonobo_menus().

svn path=/trunk/; revision=17490
2002-07-17 16:57:38 +00:00
41a5db238a (e_timezone_dialog_init):
Make not floating.

svn path=/trunk/; revision=17374
2002-07-05 18:41:15 +00:00
2b12d52c56 (update_sensitivity): Removed.
(set_find_now_sensitive): New.
(entry_changed_cb): Always make the "Find Now" button and menu
item sensitive here.
(emit_search_activated): ...And here, always insensitive.
(setup_standard_verbs): Always start up insensitive.
(activate_button_clicked_cb): Make the entry grab the focus.
(clear_button_clicked_cb): Likewise.

svn path=/trunk/; revision=17348
2002-07-02 16:14:08 +00:00
e3041e673f (subitem_activated_cb): Don't emit
"search_activated" here.
(e_search_bar_set_subitem_id): And not here either.
(e_search_bar_set_text): Same.

svn path=/trunk/; revision=17346
2002-07-02 15:55:55 +00:00
2227003e55 (activate_by_subitems): Don't set the entry to be
an empty string here.

svn path=/trunk/; revision=17345
2002-07-02 15:50:13 +00:00
0fd51afe4b (build_items): Put the numbers in front of the
rules only if type is zero [i.e. not in the option menu].

svn path=/trunk/; revision=17224
2002-06-18 19:38:12 +00:00
150129e103 Patch by clahey.
2002-06-18  JP Rosevear  <jpr@ximian.com>

	Patch by clahey.

	* e-table.c (et_get_arg): get the use_click_to_add value
	(et_set_arg): set the use_click_to_add_value, and either display
	the item or destroy it
	(e_table_class_init): add the use_click_to_add arg

svn path=/trunk/; revision=17218
2002-06-18 15:46:26 +00:00
5ad6f45cbc Edit the view after appending it to the model.
2002-06-16  Christopher James Lahey  <clahey@ximian.com>

	* gal-define-views-dialog.c (gdvd_button_new_dialog_callback):
	Edit the view after appending it to the model.

svn path=/trunk/; revision=17203
2002-06-16 22:42:03 +00:00
bfccd5b470 Don't draw or interact with the popup button if a cell isn't editable
2002-06-14  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-popup.c (ecp_draw, ecp_event): Don't draw or interact
	with the popup button if a cell isn't editable (based on a patch
	by JPR.)

	* e-table-col.c, e-table-col.h: Added the compare_col field to
	this structure.  Added a GtkArg to set it.

	* e-table-column-specification.c, e-table-column-specification.h:
	Added the compare_col field here.  Made it load properly from xml.

	* e-table-sorting-utils.c: Sort based on the compare_col in the
	ETableCol instead of the col_idx.

	* e-table-utils.c (et_col_spec_to_col): Set the compare_col field
	in the ETableCol properly.

	* e-table.c, e-table.h: Removed the drag_get_data_row and
	drag_get_data_col fields since they're not used any longer.
	(e_table_construct): If specification loading fails, return a NULL
	ETable instead of just ignoring it.
	(e_table_drag_highlight): Only destroy table->drop_highlight if it
	exists.

svn path=/trunk/; revision=17190
2002-06-14 22:26:43 +00:00
1e1f118e64 Bumped the version number to 0.19.99.17.
2002-06-05  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.19.99.17.

	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h
	(e_reflow_selection_event_real): Made this function handle
	GDK_BUTTON_RELEASE.  Added a maybe_in_drag variable that the API
	user can set to 0 to indicate that a drag has occurred.

svn path=/trunk/; revision=17122
2002-06-05 19:35:13 +00:00
3146e7f80e Added debugging printfs. (e_text_request_paste): Fixed the order of
2002-06-05  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c: Added debugging printfs.
	(e_text_request_paste): Fixed the order of setting
	last_type_request before calling gtk_selection_convert due to a
	reentrancy bug.

svn path=/trunk/; revision=17119
2002-06-05 16:52:45 +00:00
882e28269d Added debugging printfs.
2002-06-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-field-chooser-item.c: Added debugging printfs.

	* e-table-header-item.c: Added debugging printfs.
	(ethi_drag_motion): Don't subtract widget->allocation.* here.  It
	seems that this value is affected by whether the table is using a
	click to add field.  Not sure why.

	* e-table-item.c (eti_realize): Check for NULL selection here.

svn path=/trunk/; revision=17118
2002-06-05 15:47:23 +00:00
4ea52e5e61 Added debugging printfs.
2002-06-05  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-model.c (d): Added debugging printfs.

	* e-tree-sorted.c (ets_proxy_node_changed,
	ets_proxy_node_data_changed, ets_proxy_node_col_changed,
	ets_proxy_node_inserted): Added a bunch of e_tree_model_no_change
	signals where appropriate.

	* e-tree-table-adapter.c (etta_proxy_node_changed): Added an
	e_table_model_no_change signal where appropriate.

svn path=/trunk/; revision=17116
2002-06-05 14:37:38 +00:00
efb514d63c Made it so that on realize we grab focus if we have the cursor, since
2002-06-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_realize): Made it so that on realize we grab
	focus if we have the cursor, since otherwise, we'll change our
	selection on focus in.

svn path=/trunk/; revision=17115
2002-06-05 13:51:24 +00:00
ad1e5a3b6a Added this function to let you disable the define views dialog.
2002-06-04  Christopher James Lahey  <clahey@ximian.com>

	* menus/gal-view-menus.c, menus/gal-view-menus.h
	(gal_view_menus_set_show_define_views): Added this function to let
	you disable the define views dialog.

svn path=/trunk/; revision=17111
2002-06-04 22:12:08 +00:00
75a1cb19cd Added this function.
2002-06-04  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header.c, e-table-header.h
	(e_table_header_prioritized_column_selected): Added this function.

	* e-table-utils.c, e-table-utils.h
	(e_table_util_calculate_current_search_col): Added this function.

	* e-table.c, e-table.h, e-tree.c: Added a "always_search"
	argument.  If this is off, then searches only occur if there's
	sort.  If it's on, sort takes precendence in doing searches,
	followed by the highest priority column shown.

svn path=/trunk/; revision=17109
2002-06-04 21:24:19 +00:00
c1dadee81a Don't show this dialog more than once per collection.
2002-06-04  Christopher James Lahey  <clahey@ximian.com>

	* menus/gal-view-menus.c (define_views): Don't show this dialog
	more than once per collection.

svn path=/trunk/; revision=17106
2002-06-04 17:16:57 +00:00
5127b10e8b Added this function to set the user visible name of this collection.
2002-06-04  Christopher James Lahey  <clahey@ximian.com>

	* gal-view-collection.c, gal-view-collection.h
	(gal_view_collection_set_title): Added this function to set the
	user visible name of this collection.

	* gal-define-views-dialog.c (gal_define_views_dialog_init): Set
	the Define Views for %s label.  Fixes Ximian bug #2100 and #4080.

svn path=/trunk/; revision=17100
2002-06-04 12:19:33 +00:00
4f5d8637a1 Reenable tooltips if the GAL_DO_TOOLTIPS environment variable is set.
2002-06-04  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Reenable tooltips if the
	GAL_DO_TOOLTIPS environment variable is set.

svn path=/trunk/; revision=17097
2002-06-04 05:36:58 +00:00
ccc7bafebe Get the font from the style again when the style changes. (init): Checks
2002-06-03  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_style_set): Get the font from the style again
	when the style changes.
	(init): Checks for the environment variable GAL_ELLIPSIS and uses
	that instead of ... if it is set.

	* e-table-click-to-add.c (finish_editing): e_table_item_leave_edit
	before committing.
	(etcta_event): Added a missing break; here.

	* e-table-item.c (eti_style_set): On style set, free the height
	cache, request a reflow and a redraw, and call
	eti_idle_maybe_show_cursor.
	(e_table_item_compute_location): Don't call eti_get_height here,
	just use the cached value.

	* e-tree.c, e-tree.h (e_tree_get_table_adapter): Added this simple
	accessor function.

svn path=/trunk/; revision=17088
2002-06-03 21:54:37 +00:00
1e3dc5a343 Reflow and redraw when the style gets set.
2002-06-03  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_style_set):
	Reflow and redraw when the style gets set.

svn path=/trunk/; revision=17086
2002-06-03 21:04:43 +00:00
02eab77be4 New helper function. (build_items): g_strdup() the text for all the items.
* e-filter-bar.c (dup_item_no_subitems): New helper function.
(build_items): g_strdup() the text for all the items.  Prepend the
user-defined items with an order number.
(free_built_items): New function to free the array returned by
build_items, freeing the text strings too [since now they are
newly allocated instead of just pointing to the exiting ones].
(generate_menu): Call free_built_items() on the built items
instead of just g_array_free().
(set_option): Likewise.

svn path=/trunk/; revision=17045
2002-05-30 17:56:52 +00:00
e6298a6cd5 Added would_be_expanded refactoring code out of is_expanded.
2002-05-24  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-table-adapter.c
	(e_tree_table_adapter_node_would_be_expanded,
	e_tree_table_adapter_node_is_expanded): Added would_be_expanded
	refactoring code out of is_expanded.
	(find_first_child_node_maybe_deleted): Use the new function.

svn path=/trunk/; revision=17016
2002-05-24 23:47:33 +00:00
e0d114045a Put the stuff in /menu/Searchplaceholder/Search instead of /menu/Search.
* e-search-bar.c (update_bonobo_menus): Put the stuff in
/menu/Searchplaceholder/Search instead of /menu/Search.

svn path=/trunk/; revision=16980
2002-05-22 22:57:05 +00:00
2ab4653659 Put the search menu in a SearchPlaceholder.
* evolution.xml: Put the search menu in a SearchPlaceholder.

svn path=/trunk/; revision=16979
2002-05-22 22:56:57 +00:00
5b60538512 New, overrides GtkWidget::draw. (impl_expose_event): New, overrides
* e-combo-button.c (impl_draw): New, overrides GtkWidget::draw.
(impl_expose_event): New, overrides GtkWidget::expose_event.

svn path=/trunk/; revision=16978
2002-05-22 22:15:33 +00:00
a33709547e Check for path being NULL.
2002-05-21  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (ets_proxy_node_request_collapse): Check for
	path being NULL.

	* e-tree-table-adapter.c
	(e_tree_table_adapter_load_expanded_state): Rebuild the tree after
	loading the state.

svn path=/trunk/; revision=16963
2002-05-21 06:24:29 +00:00
2867707026 Prepend the advanced menu with a separator.
* e-filter-bar.c (build_items): Prepend the advanced menu with a
separator.

* e-filter-bar.h: Add E_FILTERBAR_SEPARATOR.  Rename the "Advanced
Search..." menu item into "Advanced...".

svn path=/trunk/; revision=16953
2002-05-20 20:53:17 +00:00
888c7ceeb8 Strip underscores from the menu item labels.
* e-search-bar.c (activate_by_subitems): Strip underscores from
the menu item labels.

svn path=/trunk/; revision=16952
2002-05-20 20:45:35 +00:00
eec3b5a2f3 Made it so that if the current_id doesn't match any of the given ids, it
2002-05-14  Christopher James Lahey  <clahey@ximian.com>

	* menus/gal-view-menus.c (build_menus): Made it so that if the
	current_id doesn't match any of the given ids, it treats it the
	same as a NULL id.
	(gal_view_menus_apply): Added a check for gvm->priv == NULL here.
	(gal_view_menus_apply, collection_changed, instance_changed):
	Removed calls to set_radio after build_stuff, since the last thing
	build_stuff does is calls set_radio.

svn path=/trunk/; revision=16781
2002-05-14 07:04:49 +00:00