Commit Graph

81 Commits

Author SHA1 Message Date
24a4d864f0 New prototype here.
2001-08-27  Ettore Perazzoli  <ettore@ximian.com>

	* e-timezone-dialog/e-timezone-dialog.h
	(e_timezone_dialog_reparent): New prototype here.

svn path=/trunk/; revision=12511
2001-08-29 03:49:21 +00:00
a7da845f7f added e_date_edit_get/set_make_time_insensitive() which makes the time
2001-08-16  Damon Chaplin  <damon@ximian.com>

	* e-dateedit.c: added e_date_edit_get/set_make_time_insensitive()
	which makes the time field insensitive rather than hiding it.
	I'm not sure we're going to actually use this now, though.

svn path=/trunk/; revision=12135
2001-08-16 23:25:45 +00:00
791c2bec7e Set the horizontal usize of the entry to 4.
* e-search-bar.c (activate_by_subitems): Set the horizontal usize
of the entry to 4.

svn path=/trunk/; revision=12132
2001-08-16 22:28:24 +00:00
fef28ce070 Boost scoring on an exact nickname match. Manually addressify match.
2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names-completion.c
	(match_nickname): Boost scoring on an exact nickname match.
	Manually addressify match.
	(match_name): Manually addressify matches.
	(book_query_score): Remove automatic addressification.

	* gui/component/addressbook.c (addressbook_query_changed): Minor
	tweak to avoid a crash if we have a negative subid with id
	ESB_CATEGORY.  This should never happen.
	(addressbook_menu_activated): Reset the entry/option when we
	select "Clear".
	Some changes to reflect renaming in ESearchBar.

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_set_property_fn): Cardify after importing destinations.
	This might fix a problem that Damon is having.

2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* e-filter-bar.c (option_changed): Adjusted for renamed ESearchBar
	functions.
	(menubar_activated): Adjusted for renamed ESearchBar functions.

	* e-search-bar.c: Renames some of the horrible function names:
	s/option_choice/item_id/, s/suboption_choice/subitem_id/.

2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* gui/cal-search-bar.c: Changed to reflect my renaming of some of
	the more hideously-named functions in the ESearchBar API.

svn path=/trunk/; revision=12081
2001-08-16 06:17:18 +00:00
f6ae871a73 Destroy, do not unref, the popup_window.
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	* e-cell-date-edit.c (e_cell_date_edit_destroy): Destroy, do not
	unref, the popup_window.

svn path=/trunk/; revision=12022
2001-08-14 18:32:33 +00:00
84eb55399b Correctness fixes for when the entry and submenu must be interchanged.
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	* e-search-bar.c (activate_by_subitems): Correctness fixes for
	when the entry and submenu must be interchanged.

svn path=/trunk/; revision=12019
2001-08-14 17:48:08 +00:00
f8473e11f7 *Please* add accessor functions instead of just object arguments!
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	*Please* add accessor functions instead of just object arguments!

	* e-search-bar.c (e_search_bar_set_option_choice): New function.
	(e_search_bar_set_suboption_choice): New function.
	(e_search_bar_set_text): New function.
	(impl_set_arg): Use the functions above instead of setting things
	directly.
	(add_dropdown): If the item is a separator, set it as insensitive.
	(activate_by_subitems): Handle the translate field in the subitem
	structure.  Also, allow the creation of separators by having NULL
	text strings in the subitems.
	(set_option): If the item is a separator, set it as insensitive.
	(set_option): Do not use the subitem_garbage hack.  Do proper
	memory management instead.
	(e_search_bar_set_suboption): New function to change the suboption
	items in a search bar.

	* e-search-bar.h (ESearchBarSubitem): Added a `translate' field.
	This API sucks so much it is not funny.
	(ESearchBar): Removed the subitem_garbage hack.  Please do proper
	memory management.

svn path=/trunk/; revision=12014
2001-08-14 16:04:33 +00:00
9086989f20 Add "Any Category" option for category searches.
2001-08-14  Jon Trowbridge  <trow@ximian.com>

	* gui/component/addressbook.c (addressbook_factory_new_control):
	Add "Any Category" option for category searches.
	(addressbook_query_changed): Do the right thing on an
	"Any Category" search.

2001-08-14  Jon Trowbridge  <trow@ximian.com>

	* e-search-bar.c (activate_by_subitems): Oops... initial
        suboption_choice should be subitems[0].id, not 0.

svn path=/trunk/; revision=12013
2001-08-14 15:48:39 +00:00
7796022af8 Oops, we didn't need to unref all of the widgets, just a few.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (impl_destroy): Oops, we didn't need to unref all
	of the widgets, just a few.

svn path=/trunk/; revision=11907
2001-08-11 00:19:08 +00:00
78544223ad Removed comment about the need to resolve nicknames properly, because we
2001-08-10  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Removed comment about
	the need to resolve nicknames properly, because we now do that.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * e-filter-bar.h: Set the subitems to NULL in the pre-defined
        ESearchBarItems.

        * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's
        subitems to NULL.
        (build_items): Set the ESearchBarItem's subitems to NULL.
        (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL.

        * e-search-bar.c: Added support for subitems, so that a search
        option can key off of another option menu rather than just an
        entry.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/component/addressbook.c: Set the ESearchBarItem
        subitems explicitly to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/cal-search-bar.c: Where we have ESearchBarItems, set their
        subitems to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * folder-browser.c: Set our ESearchBarItems subitems to NULL.

svn path=/trunk/; revision=11904
2001-08-10 22:36:41 +00:00
d69a71921a Don't forget to unref stuff here too.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (impl_destroy): Don't forget to unref stuff here
	too.

	* e-filter-bar.c (destroy): Free all the goodies that we allocate
	at construct time and unref the rule context.
	(class_init): Override the destroy method.

svn path=/trunk/; revision=11871
2001-08-10 05:16:07 +00:00
4a8b09b1bd Fixes bug #6918
2001-08-09  Anna Marie Dirks <anna@ximian.com>

	Fixes bug #6918

	* e-filter-bar.h: Changed the "Save As.." menu item to
	"Add to Saved Searches".

svn path=/trunk/; revision=11850
2001-08-09 23:39:23 +00:00
44f7f1b1ae changed the E_FILTERBAR_RESET label from "Show All" to "Clear" to
2001-08-09  Anna Marie Dirks <anna@ximian.com>
	* e-filter-bar.h : changed the E_FILTERBAR_RESET label from
	"Show All" to "Clear" to alleviate confusion about whether
	"Show All" means that hidden messages are also shown or not.
	(See ximian bug #6743)

svn path=/trunk/; revision=11833
2001-08-09 17:21:39 +00:00
5f4ca361a0 Chain to the destroy handler in the parent class!
2001-08-09  Federico Mena Quintero  <federico@ximian.com>

	* e-calendar-item.c (e_calendar_item_destroy): Chain to the
	destroy handler in the parent class!

	* e-clipped-label.c (e_clipped_label_destroy): Likewise.  Sigh.

	* e-dropdown-button.c (impl_destroy): Likewise.  Double sigh.

svn path=/trunk/; revision=11817
2001-08-09 06:22:12 +00:00
ce3758a1d8 Re-labeled the "Activate" button "Find Now".
2001-08-08  Anna Marie Dirks <anna@ximian.com>
	* e-search-bar.c: Re-labeled the "Activate" button "Find Now".

svn path=/trunk/; revision=11804
2001-08-08 22:52:10 +00:00
164dd845b6 New. New.
* e-bonobo-widget.c: New.
* e-bonobo-widget.h: New.

svn path=/trunk/; revision=11768
2001-08-08 08:18:12 +00:00
067467c916 [Added an "Activate" button to the search bar.]
* e-search-bar.c (submit_button_clicked_cb): Callback for the
"clicked" signal on the activate button.
(add_submit): New function to add a "Activate" button on the right
of the entry.
(e_search_bar_construct): Call it.
(add_spacer): Removed.
(e_search_bar_construct): Don't call it.
(find_id): Remove debugging message.
(put_in_spacer_widget): New utility function to create a
GtkEventBox with a border width of one and put a widget into it.

svn path=/trunk/; revision=11690
2001-08-05 05:50:37 +00:00
90b888b8af Make the close icon as large as the pin icon so the bar doesn't change
* e-title-bar.c: Make the close icon as large as the pin icon so
the bar doesn't change size when it switches between them.
(e_title_bar_construct): Add some horizontal padding to the label
to make it look nicer.

svn path=/trunk/; revision=11688
2001-08-05 04:31:24 +00:00
239a8d9c93 Request an update. (e_calendar_item_mark_days): Likewise.
2001-08-03  Federico Mena Quintero  <federico@ximian.com>

	* e-calendar-item.c (e_calendar_item_mark_day): Request an update.
	(e_calendar_item_mark_days): Likewise.

svn path=/trunk/; revision=11643
2001-08-04 02:45:09 +00:00
b6d9682a89 don't show the year in the popup submenu for the months, and center the
2001-07-24  Damon Chaplin  <damon@ximian.com>

	* e-calendar-item.c (e_calendar_item_show_popup_menu): don't show the
	year in the popup submenu for the months, and center the months.
	Fixes bug #4397.

svn path=/trunk/; revision=11365
2001-07-24 22:38:57 +00:00
14308a5492 When the dialog gets closed, always make sure the entry widget becomes
2001-07-18  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (rule_editor_destroyed): When the dialog gets
	closed, always make sure the entry widget becomes sensitive again.
	(menubar_activated): Don't use FILTER_SOURCE_INCOMING because
	that's not what we want, we want (I think) NULL (at least with
	NULL, bug #4490 goes away).

svn path=/trunk/; revision=11209
2001-07-18 20:22:27 +00:00
03c2cfdca8 When the dialog gets closed, always make sure the entry widget becomes
2001-07-18  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (rule_editor_destroyed): When the dialog gets
	closed, always make sure the entry widget becomes sensitive again.

svn path=/trunk/; revision=11208
2001-07-18 20:01:54 +00:00
b3b1380f85 Fixes bug #2901.
2001-07-16  Federico Mena Quintero  <federico@ximian.com>

	Fixes bug #2901.

	* e-dateedit.c (e_date_edit_parse_date): Use e_time_parse_date().
	(e_date_edit_parse_time): Use e_time_parse_time().

svn path=/trunk/; revision=11137
2001-07-16 21:25:01 +00:00
6fdea01a3e *** empty log message ***
svn path=/trunk/; revision=11126
2001-07-16 14:23:48 +00:00
bacd3a85a4 added functions to set a callback to get the current time, which is used
2001-07-02  Damon Chaplin  <damon@ximian.com>

	* e-calendar-item.c:
	* e-cell-date-edit.c:
	* e-dateedit.c: added functions to set a callback to get the current
	time, which is used instead of localtime(). We need this as we have to
	use our own timezones.

svn path=/trunk/; revision=10728
2001-07-03 04:12:17 +00:00
a5f3fea0ef Take a callback function and user_data so that we can add listeners to
2001-07-02  Jeffrey Stedfast  <fejj@ximian.com>

	* e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Take a
	callback function and user_data so that we can add listeners to
	each of the menu items.

svn path=/trunk/; revision=10702
2001-07-02 21:02:56 +00:00
3b88e97ddc Updated to build e-charset-picker.c
2001-07-02  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Updated to build e-charset-picker.c

	* e-charset-picker.[c,h]: Moved here from gal.
	(e_charset_picker_bonobo_ui_populate): New function to populate a
	bonobo-ui with a charset picker menu.

svn path=/trunk/; revision=10687
2001-07-02 18:13:16 +00:00
fdb10dd6d9 copied the EMap widget verbatim from Ximian Setup Tools. Hmm. Maybe it
2001-06-14  Damon Chaplin  <damon@ximian.com>

	* e-map.[hc]: copied the EMap widget verbatim from Ximian Setup Tools.
	Hmm. Maybe it should go in gal, but its not a very general widget.

	* Makefile.am (INCLUDES): defined MAP_DIR for e-map.c.
	(libemiscwidgets_a_SOURCES): added e-map.[hc].

svn path=/trunk/; revision=10221
2001-06-14 04:06:55 +00:00
5fbaf3bd98 Removed unused variable.
2001-05-31  Federico Mena Quintero  <federico@ximian.com>

	* e-dropdown-button.c (impl_button_press_event): Removed unused
	variable.

	* e-cell-date-edit.c (e_cell_date_edit_rebuild_time_list): Removed
	unused variable.

svn path=/trunk/; revision=10062
2001-05-31 19:49:50 +00:00
55fba808bd I am sure at least with this:
2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* misc/e-filter-bar.h: xgettext does not find N_() in #defines. So
	created fake enum. Also removed spaces before "..."

svn path=/trunk/; revision=9690
2001-05-06 22:37:41 +00:00
d7b952f44f Update
svn path=/trunk/; revision=9541
2001-04-24 09:27:16 +00:00
0345c9047d Added #include <glib.h> and moved corresponding local headers to the top.
2001-04-24  Kjartan Maraas  <kmaraas@gnome.org>

	* e-calendar-item.c, e-calendar.c, e-cell-date-edit.c,
	e-clipped-label.c: Added #include <glib.h> and moved
	corresponding local headers to the top.

svn path=/trunk/; revision=9540
2001-04-24 09:26:28 +00:00
e1a2f6999a New function, because it is ridiculous to have to hunt down object
2001-04-15  Federico Mena Quintero  <federico@ximian.com>

	* e-search-bar.c (e_search_bar_get_option_choice): New function,
	because it is ridiculous to have to hunt down object arguments to
	fetch values.
	(e_search_bar_get_text): Likewise.
	(impl_get_arg): Use the functions above so that we have to
	maintain only one version of the getters.

svn path=/trunk/; revision=9339
2001-04-16 02:49:07 +00:00
af777b08ca More header fixes. Same. Same. Same here. More header fixes. Same here.
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* e-calendar.c: More header fixes.
	* e-cell-date-edit.c: Same.
	* e-dateedit.[ch]: Same.
	* e-title-bar.c: Same here.
	* e-search-bar.c: More header fixes.
	* test-calendar.c: Same here.

svn path=/trunk/; revision=9178
2001-04-04 18:46:01 +00:00
69dd62ddd0 Replace #include <gtk/gtk.h> Remove #include <gnome.h> Replace #include
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* e-dropdown-button.c: Replace #include <gtk/gtk.h>
	* e-dropdown-button.h: Remove #include <gnome.h>
	* e-filter-bar.c: Replace #include <gtk/gtk.h>
	* e-filter-bar.h: Replace #include <gtk/gtk.h>
	* e-messagebox.c: Add #includes to count for removed <gnome.h> in
	e-messagebox.h:
	* e-messagebox.h: Replace #include <gnome.h>
	* e-search-bar.c: Replace #include <gnome.h>
	* e-search-bar.h: Same here
	* test-calendar.c: Remove #include <gnome.h>
	* test-dateedit.c: Replace #include <gnome.h>
	* test-dropdown-button.c: Same here.
	* test-title-bar.c: Same here.

svn path=/trunk/; revision=9018
2001-03-29 18:16:57 +00:00
f1dc83990b Validate the filter rule.
2001-03-22  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (rule_editor_clicked): Validate the filter rule.

svn path=/trunk/; revision=8909
2001-03-23 01:24:15 +00:00
9ad433a58b use gnome_dialog_run() to make the warning dialog modal. Also created a
2001-03-18  Damon Chaplin  <damon@ximian.com>

	* e-cell-date-edit.c (e_cell_date_edit_show_time_invalid_warning):
	use gnome_dialog_run() to make the warning dialog modal. Also created
	a better warning message showing the format expected.
	Also used e_time_format_time() to format all times.

svn path=/trunk/; revision=8823
2001-03-19 15:47:38 +00:00
2f95668944 If we click on the edit menu, then bring up a rule editor. If the user
2001-03-15  Not Zed  <NotZed@Ximian.com>

        * e-filter-bar.c (menubar_activated): If we click on the edit
        menu, then bring up a rule editor.  If the user adds/removes rules
        though, they are neither saved, nor added to the menu's. sigh.

svn path=/trunk/; revision=8730
2001-03-15 06:56:17 +00:00
7b7acde405 pretty much working now.
2001-03-04  Damon Chaplin  <damon@ximian.com>

	* e-cell-date-edit.c: pretty much working now.

svn path=/trunk/; revision=8548
2001-03-04 23:55:37 +00:00
eab717a2ec New type of search bar that interacts with filter contexts to save filters
2001-03-01  Not Zed  <NotZed@Ximian.com>

	* e-filter-bar.c: New type of search bar that interacts with
	filter contexts to save filters etc.  Still probably needs a
	little cleanpu.

2001-02-28  Not Zed  <NotZed@Ximian.com>

	* e-search-bar.c (add_dropdown): Save the dropdown menu in the
	struct too.  Sigh, this is only so we can scan its content later,
	ick.
	(e_search_bar_set_menu_sensitive): New function to se tthe
	sentisitivty of menyu items based on id.
	(find_id): New function to find the row and widget for a specific
	id.
	(add_option): Renamed to set_option.
	(add_dropdown): Renamed to set_dropdown.
	(add_dropdown): ?New function to add a single item.
	(set_dropdown): Call add_dropdown to add each item.
	(e_search_bar_add_menu): New public function to add a single item.

2001-02-27  Not Zed  <NotZed@Ximian.com>

	* Makefile.am (libemiscwidgets_a_SOURCES): Added filter-bar.[ch].

	* e-search-bar.c (class_init): Init virtual functions.
	(e_search_bar_set_option):
	(e_search_bar_set_menu): virtualise calling.
	(e_search_bar_construct): Call virtual functions to setup menus.

	* e-search-bar.h (struct _ESearchBarClass): Virtualise
	add_dropdown/add_option, so certain base options can be created.

svn path=/trunk/; revision=8436
2001-03-01 00:55:12 +00:00
802f47f2bf new files to implement an ECell for showing and editing dates & times.
2001-02-25  Damon Chaplin  <damon@ximian.com>

	* e-cell-date-edit.[hc]: new files to implement an ECell for showing
	and editing dates & times. (Unfinished)

	* Makefile.am (libemiscwidgets_a_SOURCES): added e-cell-date-edit.[hc]

svn path=/trunk/; revision=8388
2001-02-25 19:48:49 +00:00
669c081810 Move the event box into the esb->dropdown_holder. Changed so it can be
2001-02-24  Not Zed  <NotZed@Ximian.com>

        * e-search-bar.c (add_dropdown): Move the event box into the
        esb->dropdown_holder.  Changed so it can be called again on the
        same esb, to rebuild the menu.
        (e_search_bar_set_menu): New function to (re)set the menu.
        (add_option): Setup so it can be re-called to rebuild the option
        list.
        (e_search_bar_set_option): New function to build the menu's.

svn path=/trunk/; revision=8373
2001-02-23 21:22:15 +00:00
0e3786d3ec Ignore test-dropdown-button
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* .cvsignore: Ignore test-dropdown-button

svn path=/trunk/; revision=8013
2001-02-06 04:31:02 +00:00
830dd5dd7a Make the ESearchBar pretty by using the same border for the dropdown
button as the option menu, and adding the right amount of empty space
on the right, to match the size of a scrollbar.  (The latter is just a
dirty ugly bad hack, but it's fine for now.)

svn path=/trunk/; revision=7876
2001-01-28 13:38:07 +00:00
50fea9ab7e Changed the EDropdownButton so that it works more like a standard menu
bar (i.e. the menu is popped up on button_press instead of
button_release).  Now it is also based on GtkToggleButton, so it stays
pushed down when the menu is on the screen.

svn path=/trunk/; revision=7869
2001-01-28 09:58:37 +00:00
b8ea424792 Make the ESearchBar use the new EDropdownButton widget.
svn path=/trunk/; revision=7855
2001-01-27 11:24:13 +00:00
d2c859ad38 Fix the API to EDropdownButton by removing args that don't make much
sense.

svn path=/trunk/; revision=7854
2001-01-27 10:28:58 +00:00
ba1a7da847 ...And the ChangeLog too.
svn path=/trunk/; revision=7853
2001-01-27 10:21:53 +00:00
9e60ca1bb2 e_calendar_item_get_date_range() now returns a boolean, which is FALSE if
2001-01-25  Damon Chaplin  <damon@ximian.com>

	* e-calendar-item.[hc]: e_calendar_item_get_date_range() now returns
	a boolean, which is FALSE if no dates are currently shown.
	Plus a couple of minor sanity checks.

svn path=/trunk/; revision=7799
2001-01-25 03:48:56 +00:00
739e141dbe Unset the GTK_CAN_FOCUS flag on the ECalendar. (e_calendar_focus_in):
2001-01-19  Federico Mena Quintero  <federico@ximian.com>

	* e-calendar.c (e_calendar_init): Unset the GTK_CAN_FOCUS flag on
	the ECalendar.
	(e_calendar_focus_in): Removed function since it did nothing.
	(e_calendar_focus_out): Likewise.
	(e_calendar_key_press): Likewise.
	(e_calendar_init): Turn off the GTK_CAN_FOCUS flag for both arrow
	buttons.

svn path=/trunk/; revision=7665
2001-01-20 15:37:36 +00:00