Commit Graph

1469 Commits

Author SHA1 Message Date
Christopher James Lahey 67bf5ca837 Include string.h here.
2002-05-10  Christopher James Lahey  <clahey@ximian.com>

	* e-table-search.c: Include string.h here.

svn path=/trunk/; revision=16749
2002-05-10 18:20:52 +00:00
Christopher James Lahey 57a8777026 Switch from gnome_canvas_item_grab to e_canvas_item_grab.
2002-05-09  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c: Switch from gnome_canvas_item_grab to
	e_canvas_item_grab.

	* gal/widgets/e-canvas.c, gal/widgets/e-canvas.h
	(e_canvas_item_grab, e_canvas_item_ungrab): Added these functions.

From gal/e-table/ChangeLog:

2002-05-09  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c, e-table-item.h: Switched from
	gnome_canvas_item_grab to e_canvas_item_grab.

svn path=/trunk/; revision=16738
2002-05-09 22:12:01 +00:00
Dan Winship de7a5090a8 Bump file version to 2. (This will make older versions of gal ignore the
* e-tree-table-adapter.c
	(e_tree_table_adapter_save_expanded_state): Bump file version to 2.
	(This will make older versions of gal ignore the file, fixing the
	problem where going from evo HEAD to evo 1.0.x makes the folder
	tree disappear.) Store the default expanded state in the file now
	to prevent this from happening again in the future.
	(e_tree_table_adapter_load_expanded_state): Deal with version 2.
	If the model's default expansion state doesn't match the saved
	state, ignore the save file.

svn path=/trunk/; revision=16736
2002-05-09 20:00:56 +00:00
Christopher James Lahey 77a58ee83c Change this directory to include the $(VERSION).
2002-05-06  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/Makefile.am (imagesdir): Change this directory to
	include the $(VERSION).

	* gal/widgets/e-reflow.c (set_empty): Don't switch from utf8 to
	widget encoding, since EText takes utf8.

From art/ChangeLog:

2002-05-06  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (imagesdir): Change this directory to include the
	$(VERSION).

svn path=/trunk/; revision=16697
2002-05-06 21:41:33 +00:00
Christopher James Lahey 8c9242e061 Make the style here match the proper widget style to emulate a label or an
2002-05-02  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_draw): Make the style here match the
	proper widget style to emulate a label or an entry.

svn path=/trunk/; revision=16670
2002-05-02 22:55:49 +00:00
Christopher James Lahey 874390a837 Added this function that lets you specify the translation domain.
2002-05-02  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h
	(e_popup_menu_create_with_domain): Added this function that lets
	you specify the translation domain.

From gal/e-table/ChangeLog:

2002-05-02  Christopher James Lahey  <clahey@ximian.com>

	* e-table-click-to-add.c (finish_editing): Add horizontal dividers
	here too.

	* e-table-config.c (create_global_store): Translate column headers
	here.

	* e-table-header-item.c (ethi_header_context_menu): Use
	e_popup_menu_create_with_domain here.

	* e-table-header-utils.c (e_table_header_draw_button): Translate
	from utf8 here before drawing.

	* e-table-memory-store.c, e-table-memory-store.h
	(e_table_memory_store_insert_adopt_array): Changed the name of
	this function from e_table_memory_store_insert_adopt.
	(e_table_memory_store_insert_adopt): Added this function which
	takes a ... list.

	* e-table-utils.c (et_col_spec_to_col): Translate column titles to
	utf8 here.

svn path=/trunk/; revision=16668
2002-05-02 20:32:19 +00:00
Christopher James Lahey cad5e25f86 Added horizontal dividers to this item when in table mode.
2002-05-02  Christopher James Lahey  <clahey@ximian.com>

	* e-table-click-to-add.c: Added horizontal dividers to this item
	when in table mode.

	* e-table.c, e-tree.c: Made the background be an
	e-canvas-background instead of a

	* e-tree.c, e-tree.h: Added a white_space_event for feature parity
	with ETable.

svn path=/trunk/; revision=16667
2002-05-02 18:45:19 +00:00
Christopher James Lahey e1f208de7d Set the gettext-domain here.
2002-05-01  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-completion-view.c (simple_spec),
	gal/widgets/e-categories-master-list-dialog.c (SPEC),
	gal/widgets/e-categories.c (INITIAL_SPEC): Set the gettext-domain
	here.

	* gal/util/e-i18n.h (E_I18N_DOMAIN): #define as makes sense in the
	different cases.

From gal/e-table/ChangeLog:

2002-05-01  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c, e-table-config.h, e-table-specification.c,
	e-table-specification.h, e-table-utils.c, e-table-utils.h,
	e-table.c, e-table.h: Made these pay attention to the
	gettext-domain in the etspec.

	* e-table-config.c: Set the gettext-domain in the etspec here.

From gal/menus/ChangeLog:

2002-05-01  Christopher James Lahey  <clahey@ximian.com>

	* gal-define-views-dialog.c (SPEC),
	gal-view-instance-save-as-dialog.c (SPEC): Set the gettext-domain
	here.

svn path=/trunk/; revision=16658
2002-05-01 23:26:42 +00:00
Christopher James Lahey f1cdb504e8 From gal/e-table/ChangeLog:
2002-04-29  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_cursor_change): Redraw a row that is no
	longer the cursor even if this item isn't getting the new cursor.

svn path=/trunk/; revision=16642
2002-04-29 23:17:14 +00:00
Christopher James Lahey 320ea94ae8 Changed LDFLAGS to LIBS for tests here. Bumped the version number to
2002-04-29  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Changed LDFLAGS to LIBS for tests here.  Bumped
	the version number to 0.19.99.15.

From gal/e-table/ChangeLog:

2002-04-29  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c, e-tree.h (e_tree_path_foreach): Added this function
	which recurses over all nodes, regardless of selection.

svn path=/trunk/; revision=16635
2002-04-29 21:26:48 +00:00
Christopher James Lahey 84923b319c Take an int instead of a double. From a patch by jody@ximian.com.
2002-04-26  Christopher James Lahey  <clahey@ximian.com>

	* e-table-field-chooser-item.c (etfci_maybe_start_drag): Take an
	int instead of a double.  From a patch by jody@ximian.com.

svn path=/trunk/; revision=16606
2002-04-26 21:42:07 +00:00
Christopher James Lahey 70e9e37d3e Don't print out the colors here unless debugging is turned on.
2002-04-26  Christopher James Lahey  <clahey@ximian.com>

	* e-multi-config-dialog.c (fill_in_pixbufs): Don't print out the
	colors here unless debugging is turned on.

svn path=/trunk/; revision=16605
2002-04-26 21:27:05 +00:00
Christopher James Lahey 68cb7c9340 Only unref etst->sort_info once.
2002-04-26  Christopher James Lahey  <clahey@ximian.com>

	* e-table-state.c (etst_destroy): Only unref etst->sort_info once.

svn path=/trunk/; revision=16603
2002-04-26 21:01:15 +00:00
Christopher James Lahey 24f211162b Documented the life cycle requirements of the return value of these
2002-04-26  Christopher James Lahey  <clahey@ximian.com>

	* e-table-model.c (e_table_model_value_at), e-tree-model.c
	(e_tree_model_value_at): Documented the life cycle requirements of
	the return value of these functions.

svn path=/trunk/; revision=16602
2002-04-26 20:33:23 +00:00
Christopher James Lahey fd07f957a1 Include alloca.h here if it's necessary.
2002-04-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-unicode.c: Include alloca.h here if it's
	necessary.

svn path=/trunk/; revision=16601
2002-04-26 20:14:39 +00:00
Christopher James Lahey 4d1a6538ab Initialize these struct members individually instead of as a struct.
2002-04-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas-background.c (ecb_init): Initialize these
	struct members individually instead of as a struct.

svn path=/trunk/; revision=16600
2002-04-26 20:11:09 +00:00
Christopher James Lahey 9785d01bdc Added calls to e_table_model_pre_change here so that the ETableItem
2002-04-26  Christopher James Lahey  <clahey@ximian.com>

	* e-table-memory-store.c (e_table_memory_store_adopt_value_at,
	etms_set_value_at): Added calls to e_table_model_pre_change here
	so that the ETableItem doesn't unfreeze more times than it
	freezes.

svn path=/trunk/; revision=16593
2002-04-26 06:12:47 +00:00
Christopher James Lahey 8358adf1ac Made these handle the case where all_children_selected_array has a bit
2002-04-25  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (etsm_selected_count_recurse,
	etsm_foreach_recurse): Made these handle the case where
	all_children_selected_array has a bit set, but the children of
	that node aren't filled in.

svn path=/trunk/; revision=16590
2002-04-25 20:45:03 +00:00
Christopher James Lahey 0a226a0483 Ansification patch from danw.
2002-04-25  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-paned/e-paned.c, gal/e-text/e-entry.c,
	gal/util/e-bit-array.c, gal/util/e-sorter-array.c,
	gal/util/e-sorter.c, gal/util/e-text-event-processor.c,
	gal/widgets/color-group.c, gal/widgets/color-palette.c,
	gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas.c,
	gal/widgets/e-canvas.h,
	gal/widgets/e-categories-master-list-array.c,
	gal/widgets/e-categories-master-list-combo.c,
	gal/widgets/e-categories-master-list-dialog-model.c,
	gal/widgets/e-categories-master-list-dialog.c,
	gal/widgets/e-categories.c, gal/widgets/e-reflow-model.c,
	gal/widgets/e-reflow.c, gal/widgets/e-selection-model-array.c,
	gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h,
	gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-stack.c,
	gal/widgets/widget-color-combo.c,
	gal/widgets/widget-pixmap-combo.c: Ansification patch from danw.

svn path=/trunk/; revision=16589
2002-04-25 20:05:40 +00:00
Christopher James Lahey 95b711c4cd Ansification patch from danw.
2002-04-25  Christopher James Lahey  <clahey@ximian.com>

	* gal-define-views-dialog.c, gal-view-factory.c,
	gal-view-new-dialog.c, gal-view.c: Ansification patch from danw.

svn path=/trunk/; revision=16587
2002-04-25 20:00:21 +00:00
Christopher James Lahey b036c8392d Ansification patch from danw.
2002-04-25  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-checkbox.c, e-cell-combo.c, e-cell-date.c,
	e-cell-float.c, e-cell-number.c, e-cell-pixbuf.c, e-cell-popup.c,
	e-cell-size.c, e-cell-spin-button.c, e-cell-text.c,
	e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h,
	e-table-click-to-add.c, e-table-col.c,
	e-table-column-specification.c, e-table-config-field.c,
	e-table-config.c, e-table-extras.c,
	e-table-field-chooser-dialog.c, e-table-field-chooser-item.c,
	e-table-field-chooser.c, e-table-group-container.c,
	e-table-group-leaf.c, e-table-group.c, e-table-header-item.c,
	e-table-header.c, e-table-item.c, e-table-memory-callbacks.c,
	e-table-model.c, e-table-scrolled.c, e-table-selection-model.c,
	e-table-sort-info.c, e-table-sorted-variable.c, e-table-sorted.c,
	e-table-sorter.c, e-table-specification.c, e-table-state.c,
	e-table-subset-variable.c, e-table-subset.c, e-table-without.c,
	e-table.c, e-table.h, e-tree-scrolled.c, e-tree-selection-model.c,
	e-tree-sorted-variable.c, e-tree-sorted.c, e-tree-table-adapter.c,
	e-tree.c: Ansification patch from danw.

svn path=/trunk/; revision=16586
2002-04-25 19:56:41 +00:00
Christopher James Lahey 289d2c34a0 Changed this to match the new e_table_memory_store_insert function
2002-04-24  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c (create_global_store): Changed this to match
	the new e_table_memory_store_insert function prototype.

svn path=/trunk/; revision=16579
2002-04-25 00:20:24 +00:00
JP Rosevear 8cf870c277 implement printing (pixbuf_print_height): implement print height
2002-04-24  JP Rosevear  <jpr@ximian.com>

	* e-cell-pixbuf.c (pixbuf_print): implement printing
	(pixbuf_print_height): implement print height
	(e_cell_pixbuf_class_init): set printing virtual methods

	* e-cell-toggle.c (etog_print): remove clipping, default clipping
	is done by the table, scale based on toggle height

	* e-table-item.c (e_table_item_calculate_print_widths): make the
	scale 1:1

svn path=/trunk/; revision=16577
2002-04-24 21:39:24 +00:00
Christopher James Lahey 78b91d43f8 Updated this to match the changed function name in gal.
2002-04-22  Christopher James Lahey  <clahey@ximian.com>

	* e-multi-config-dialog.c (e_multi_config_dialog_add_page):
	Updated this to match the changed function name in gal.

svn path=/trunk/; revision=16562
2002-04-22 21:53:06 +00:00
Christopher James Lahey acf4bad9d0 Bumped version number to 0.19.99.14.
2002-04-22  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version number to 0.19.99.14.

	* gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h
	(e_popup_menu_copy_1, e_popup_menu_free_1, e_popup_menu_copy,
	e_popup_menu_free): Added these functions

From gal/e-table/ChangeLog:

2002-04-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-memory-store.c, e-table-memory-store.h: Renamed the
	insert functions in this class to make a bit more sense.

From gal/menus/ChangeLog:

2002-04-22  Christopher James Lahey  <clahey@ximian.com>

	* gal-view-instance.c, gal-view-instance.h
	(gal_view_instance_get_popup_menu,
	gal_view_instance_free_popup_menu):  Added these functions.  Used
	to add a current view menu to your popup menus.

From gal/shortcut-bar/ChangeLog:

2002-04-22  Christopher James Lahey  <clahey@ximian.com>

	* e-icon-bar.c (e_icon_bar_drag_motion): Removed an unused
	variable.

svn path=/trunk/; revision=16559
2002-04-22 21:46:59 +00:00
Jeffrey Stedfast 3bda5b75e8 Unref the sort_info.
2002-04-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-table-state.c (etst_destroy): Unref the sort_info.

svn path=/trunk/; revision=16549
2002-04-20 02:07:48 +00:00
Jeffrey Stedfast 2312be3726 After unreffing all the pixmaps, free the toggle_view->pixmap_cache.
2002-04-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-cell-toggle.c (etog_kill_view): After unreffing all the
	pixmaps, free the toggle_view->pixmap_cache.

svn path=/trunk/; revision=16548
2002-04-20 01:56:23 +00:00
Jeffrey Stedfast 082a1d35db Free the priv->search_string and priv itself. More memory leak fixage.
2002-04-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-table-search.c (e_table_search_destroy): Free the
	priv->search_string and priv itself. More memory leak fixage.

	* e-tree.c (e_tree_drag_source_unset): Unref site->taget_list so
	we don't leak memory.

svn path=/trunk/; revision=16547
2002-04-20 01:44:07 +00:00
JP Rosevear c1f065e586 print the cell in the allotted area (etog_print_height): return the print
2002-04-19  JP Rosevear  <jpr@ximian.com>

	* e-cell-toggle.c (etog_print): print the cell in the allotted
	area
	(etog_print_height): return the print height

svn path=/trunk/; revision=16536
2002-04-19 20:22:24 +00:00
JP Rosevear b997798e35 handle toggle and radio items (make_item): the item is now passed in from
2002-04-18  JP Rosevear  <jpr@ximian.com>

	* gal/widgets/e-popup-menu.c (e_popup_menu_create): handle toggle
	and radio items
	(make_item): the item is now passed in from above and not returned

svn path=/trunk/; revision=16508
2002-04-18 15:37:57 +00:00
Christopher James Lahey 11112bffd1 Bumped version number to 0.19.99.11.
2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version number to 0.19.99.11.

	* gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h: Changed
	this to be API compatible with gal 0.19.  Added a bunch of pound
	defines and added API for toggle and radio menu items.

	* gal/widgets/e-categories.c: Updated this to match the new
	EPopupMenu.

From gal/e-table/ChangeLog:

2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c: Updated this to match the new EPopupMenu.

svn path=/trunk/; revision=16496
2002-04-17 21:57:08 +00:00
Christopher James Lahey 822505f93b If there is a grabbed_item, send all events to it.
2002-04-17  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas.c (emit_event): If there is a grabbed_item,
	send all events to it.

svn path=/trunk/; revision=16492
2002-04-17 19:38:27 +00:00
Christopher James Lahey 0479b8d9a0 Fixed a memory leak here by using the "selection-done" signal.
2002-04-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c (ethi_header_context_menu): Fixed a memory
	leak here by using the "selection-done" signal.

	* e-table.c, e-table.h (white_item_event): Added the
	"white_space_event" signal.

svn path=/trunk/; revision=16439
2002-04-11 20:02:31 +00:00
Dan Winship 4ebf5cbd15 Oops. The previous change made the search bar widgets get packed in the
* e-search-bar.c (e_search_bar_construct, add_button): Oops. The
	previous change made the search bar widgets get packed in the
	wrong order. So use gtk_box_pack_end instead in add_button and add
	the two buttons in reverse order. It's all good now. Noticed by
	Ettore, who I then promptly blamed for it. Sorry Ettore!

svn path=/trunk/; revision=16411
2002-04-09 19:42:56 +00:00
Dan Winship 5be9af3b13 Construct the buttons earlier so that the option-menu-setup code that
* e-search-bar.c (e_search_bar_construct): Construct the buttons
	earlier so that the option-menu-setup code that tries to adjust
	the button sensitivity won't fail and g_warn.

svn path=/trunk/; revision=16375
2002-04-06 19:55:50 +00:00
JP Rosevear f3a6f0a3a4 show a specific page number
2002-04-06  JP Rosevear  <jpr@ximian.com>

	* e-multi-config-dialog.c (e_multi_config_dialog_show_page): show
	a specific page number

	* e-multi-config-dialog.h: new proto

svn path=/trunk/; revision=16374
2002-04-06 19:55:49 +00:00
Ettore Perazzoli 78492a5deb Don't show the popup if the entry->item doesn't have focus.
* gal/e-text/e-entry.c (e_entry_show_popup): Don't show the popup
if the entry->item doesn't have focus.

svn path=/trunk/; revision=16345
2002-04-04 15:34:09 +00:00
Chris Toshok 8875ca4adc ignore .pure
svn path=/trunk/; revision=16312
2002-04-01 20:27:03 +00:00
Ettore Perazzoli a455db74f5 Change the ETable specs so it doesn't sort.
* e-multi-config-dialog.c: Change the ETable specs so it doesn't
sort.

svn path=/trunk/; revision=16289
2002-03-29 22:05:40 +00:00
Christopher James Lahey a020c2bd2f Added widgets/e-option-menu.lo.
2002-03-25  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added
	widgets/e-option-menu.lo.

	* gal/util/e-util.c, gal/util/e-util.h (e_strdupv): Copied this
	function from glib2.
	(GET_STRING_ARRAY_FROM_ELLIPSIS,
	GET_DUPLICATED_STRING_ARRAY_FROM_ELLIPSIS): Added these macros to
	automate getting a NULL terminated array off of the stack.

	* gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added
	e-option-menu.c.
	(libwidgetsinclude_HEADERS): Added e-option-menu.h.

	* gal/widgets/e-canvas.c (e_canvas_class_init): Reformatted this
	function.

	* gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h
	(e_glade_xml_connect_widget, e_glade_xml_set_sensitive): Two new
	functions to automate pulling a widget from a GladeXML and either
	connecting a signal or setting the sensitivity.

	* gal/widgets/e-option-menu.c, gal/widgets/e-option-menu.h: New
	class to simplify the interface to GtkOptionMenu.

svn path=/trunk/; revision=16246
2002-03-25 19:33:20 +00:00
Christopher James Lahey 660118fcbe Call the parent function after doing all the internal work so that when
2002-03-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table-memory-store.c (e_table_memory_store_insert,
	e_table_memory_store_insert_adopt, e_table_memory_store_remove):
	Call the parent function after doing all the internal work so that
	when the changed signal goes out, our work is already done.

svn path=/trunk/; revision=16245
2002-03-25 19:22:25 +00:00
Chris Lahey 46c0e7a054 +2002-03-20 Christopher James Lahey <clahey@ximian.com>
+
+	* e-table-header-item.c: Adjust this to handle the new EPopupMenu
+	API.
+

svn path=/trunk/; revision=16223
2002-03-21 20:14:26 +00:00
Ettore Perazzoli 9eeff8bfec Add accelerators for "Find Now" and "Clear".
* e-search-bar.c (update_bonobo_menus): Add accelerators for "Find
Now" and "Clear".

* e-filter-bar.h: Change search labels as suggested in Anna's
redesign [#16246].

* folder-browser.c: Reorder folder_browser_search_menu_items
according to #16246.

svn path=/trunk/; revision=16219
2002-03-20 22:25:06 +00:00
Ettore Perazzoli bc11ab14a5 Remove all the SearchBar items before setting them up again.
* e-search-bar.c (update_bonobo_menus): Remove all the SearchBar
items before setting them up again.
(free_menu_items): New.
(impl_destroy): Call it.
(set_menu): Call it here too before adding the new items.

svn path=/trunk/; revision=16218
2002-03-20 21:18:08 +00:00
Ettore Perazzoli 91c17571fd No accelerator for "FindNow". (add_button): Add a one-pixel padding to the
* e-search-bar.c (update_bonobo_menus): No accelerator for
"FindNow".
(add_button): Add a one-pixel padding to the button.

svn path=/trunk/; revision=16201
2002-03-18 21:20:57 +00:00
Ettore Perazzoli 74eff81d8f Rename the "Search Now" menu entry to "Find Now". Rename the corresponding
* e-search-bar.c (update_bonobo_menus): Rename the "Search Now"
menu entry to "Find Now".  Rename the corresponding verb to
"ESearchBar:FindNow".
(update_sensitivity): Updated accordingly.
(setup_standard_verbs): Likewise.

svn path=/trunk/; revision=16200
2002-03-18 20:56:15 +00:00
Ettore Perazzoli 1657404cf7 New halper function to update the sensitivity of the commands.
* e-search-bar.c (update_sensitivity): New halper function to
update the sensitivity of the commands.
(entry_changed_cb): New callback to make the activate_button and
the "Find Now" verb sensitive only if the entry has some contents.
(activate_by_subitems): Connect the callback here.
(setup_standard_verbs): Call update_sensitivity() here.

svn path=/trunk/; revision=16199
2002-03-18 20:54:36 +00:00
Ettore Perazzoli ad1e6e7f44 Init clear_button to NULL. (add_button): New helper function to add a
* e-search-bar.c (init): Init clear_button to NULL.
(add_button): New helper function to add a button to the search
bar with the right spacing etc.
(clear_search): New helper function.
(add_activate_button): Removed.
(clear_button_clicked_cb): New.
(e_search_bar_construct): Just add the button here using
`add_button'.  Also add a clear_button.
(clear_verb_cb): Rewritten by means of `clear_search()'.

* e-search-bar.h (ESearchBar): Add clear_button.

svn path=/trunk/; revision=16198
2002-03-18 20:37:14 +00:00
Ettore Perazzoli 6b5f07ff01 New, implementation for a new "SearchNow" verb. (setup_standard_verbs):
* e-search-bar.c (search_now_verb_cb): New, implementation for a
new "SearchNow" verb.
(setup_standard_verbs): Create verb here.
(update_bonobo_menus): Add SearchNow menu item.

svn path=/trunk/; revision=16197
2002-03-18 20:14:42 +00:00
Ettore Perazzoli 6f9b8ecfb3 [Search bar re-design implementation, Take 2.]
* e-search-bar.c (clear_verb_cb): New.
(setup_standard_verbs): New.
(e_search_bar_set_ui_component): Call it if a new
BonoboUIComponent is set.
(append_xml_menu_item): New helper function.
(update_bonobo_menus): Use it.  Also add a "Clear" menu item.
(e_search_bar_construct): @menu_items can be NULL now.
(e_search_bar_new): Same here.
(set_menu): Work with NULL items.

* e-filter-bar.c (menubar_activated): Don't handle
E_FILTERBAR_RESET_ID anymore.

* e-filter-bar.h: Remove `E_FILTERBAR_RESET_ID' and `E_FILTERBAR_RESET'.

* folder-browser.c: Remove E_FILTERBAR_RESET menu entry.

* gui/cal-search-bar.c: Removed `search_menu_items'.
(cal_search_bar_menu_activated): Removed.
(cal_search_bar_class_init): Don't install.
(cal_search_bar_construct): No menu items here.

* gui/component/addressbook.c (addressbook_menu_activated):
Removed.
(addressbook_factory_new_control): Don't connect anymore, as this
signal has been removed from the ESearchBar.
(addressbook_factory_new_control): No more custom menu items here.

svn path=/trunk/; revision=16194
2002-03-18 20:06:00 +00:00