Commit Graph

192 Commits

Author SHA1 Message Date
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
5aab042fae Added util/e-bit-array.lo.
2001-03-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added util/e-bit-array.lo.

	* gal/util/Makefile.am: Added e-bit-array.c and e-bit-array.h.

	* gal/util/e-bit-array.c, gal/util/e-bit-array.h: New class
	containing the implementation of the bit array used in
	e-selection-model-array.

	* gal/widgets/e-selection-model-array.c,
	e-selection-model-array.h: Refactored the bit array implementation
	into a separate class.

	* gal/widgets/e-selection-model-simple.c: Changed how it clears
	the bit array of the ESelectionModelArray parent class.

	* gal/widgets/e-selection-model.h: Added code to make the
	declaration of EForeachFunc only get included once.

svn path=/trunk/; revision=8955
2001-03-26 20:42:15 +00:00
1190e292f4 Added e-selection-model-array.lo.
2001-03-25  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added
	e-selection-model-array.lo.

	* gal/widgets/Makefile.am: Added e-selection-model-array.c and
	e-selection-model-array.h.

	* gal/widgets/e-selection-model-array.c,
	gal/widgets/e-selection-model-array.h: New class that implements
	the details of ESelectionModel.  ESelectionModel has been
	refactored to just be a this virtual class.  ESelectionModelArray
	is the original implementation of ESelectionModel.  This is what
	most people will want to use or derive from.

	* gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model-simple.h: Made the parent class of
	this be ESelectionModelArray instead of ESelectionModel.  Changed
	some function names to match this change.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Refactored most of the
	implementation of this class into ESelectionModelArray.  Now just
	a thin virtual class.

From gal/e-table/ChangeLog:

2001-03-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table-selection-model.c, e-table-selection-model.h: Made the
	parent object of this be ESelectionModelArray instead of
	ESelectionModel due to their refactoring.  Changed the commented
	out code for saving the selection a bit.

svn path=/trunk/; revision=8924
2001-03-25 08:17:15 +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
79aed0f7f0 Upped the version number to 0.5.99.4.
2001-03-19  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Upped the version number to 0.5.99.4.

	* Merged branch:

2001-03-18  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Added another semi-private
	function (e_selection_model_change_cursor.)

2001-03-18  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Added a couple of semi-private
	functions (e_selection_model_change_one_row and
	e_selection_model_confirm_row_count.)

2001-03-18  Christopher James Lahey  <clahey@ximian.com>

	* tests/test-tree-1.c, tests/test-tree-3.c: Added arguments for
	e_tree_memory_callbacks_new of get_save_id and has_save_id to
	NULL.

2001-03-17  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c (e_sort): Switched to just using qsort
	directly here.

2001-03-17  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-util.c, gal/util/e-util.h (e_bsearch, e_sort): Added e_sort and
	e_bsearch.  They both take a closure.  e_sort guarantees a stable
	sort.  e_bsearch returns the range of matching elements including
	the position where an object would be if there are no matching
	elements.

2001-03-16  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added e-tree-sorted.lo.

2001-03-14  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model-simple.h: Replaced the methods
	insert_row and delete_row with insert_rows and delete_rows.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Replaced the methods insert_row
	and delete_row with insert_rows and delete_rows.

2001-03-08  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am: Added e-table/e-table-utils.lo,
	e-table/e-tree-memory-callbacks.lo, e-table/e-tree-memory.lo,
	e-table/e-tree-scrolled.lo, e-table/e-tree-table-adapter.lo, and
	e-table/e-tree.lo.  Removed e-table/e-tree-simple.lo.

	* gal/util/e-util.c, gal/util/e-util.h: Added a whole bunch of
	e_marshal functions for ETree.

	* tests/test-tree-1.c, tests/test-tree-3.c: Reworked these to use
	the new tree stuff.

End of branch

svn path=/trunk/; revision=8840
2001-03-20 04:51:11 +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
3b21f3119c Make this take an extra argument saying whether or not to grab the
* gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Make this
	take an extra argument saying whether or not to grab the
	widget-level focus.

	* gal/e-text/e-text.c (e_text_event): Update arguments to
	e_canvas_item_grab_focus.

svn path=/trunk/; revision=8745
2001-03-15 22:47:47 +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
e4b9bae624 Made this function do something a little closer to what it is supposed to
2001-03-13  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_point): Made this function do
	something a little closer to what it is supposed to do.

svn path=/trunk/; revision=8693
2001-03-14 00:40:00 +00:00
2743780dc0 Rename this from g_unichar_to_utf8 so that it doesn't conflict with the
* gal/widgets/e-unicode.c (e_unichar_to_utf8): Rename this from
	g_unichar_to_utf8 so that it doesn't conflict with the function of
	that name exported by gnome-print (and so that it's consistent
	with all of the other functions in the file).

svn path=/trunk/; revision=8679
2001-03-13 20:43:53 +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
a4fe250a03 New class implementing a simple selection model that you add rows to and
* gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model-simple.h: New class implementing a
	simple selection model that you add rows to and remove rows from.

svn path=/trunk/; revision=8443
2001-03-01 08:33:29 +00:00
5fa7ce6c09 Added e-selection-model-simple.lo.
2001-03-01  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added
	e-selection-model-simple.lo.

	* gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added e-selection-model-simple.c.
	(libwidgetsinclude_HEADERS): Added e-selection-model-simple.h.

	* gal/widgets/e-reflow-sorted.c, gal/widgets/e-reflow-sorted.h:
	Added a gint *position argument to e_reflow_sorted_remove_item and
	e_reflow_sorted_get_item and two gint * arguments to
	e_reflow_sorted_replace_item and e_reflow_sorted_reorder_item to
	return the positions in the array of the items removed, gotten, or
	moved.

	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Added a gint
	*position argument to e_reflow_sorted_add_item to return the
	positions in the array of the item added.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: Added e_selection_model_move_row.

svn path=/trunk/; revision=8442
2001-03-01 08:32:16 +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
51e975bf37 Make this more robust: do not assume that the GdkEvent will be either a
2001-02-27  Miguel de Icaza  <miguel@ximian.com>

	* gal/widgets/e-gui-utils.c (e_popup_menu): Make this more robust:
	do not assume that the GdkEvent will be either a GdkEventButton of
	some sort or a GdkEventKey: deal gracefully with other possible

svn path=/trunk/; revision=8423
2001-02-28 04:07:54 +00:00
5a2e01a7af Added e-sorter.lo and e-selection-model.lo.
2001-02-27  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am: Added e-sorter.lo and e-selection-model.lo.

	* gal/util/Makefile.am: Added e-sorter.c and e-sorter.h.

	* gal/util/e-sorter.c, gal/util/e-sorter.h: New class.  This is a
	new simple virtual class for use with ESelectionModel.  It
	implements the same set of methods as ETableSorter but the default
	behavior is as if the sorting was a no-op.

	* gal/widgets/Makefile.am: Added e-selection-model.c and
	e-selection-model.h.

	* gal/widgets/e-selection-model.c,
	gal/widgets/e-selection-model.h: New class.  Implements all of the
	semantics of ETableSelectionModel except for the connection to the
	ETableModel.

svn path=/trunk/; revision=8421
2001-02-28 03:32:47 +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
238d4b2091 From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com>
2001-02-17  Christopher James Lahey  <clahey@ximian.com>

	From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com>

	* gal/util/e-util.h, gal/util/e-xml-utils.h,
	gal/widgets/e-canvas-utils.h, gal/widgets/e-colors.h,
	gal/widgets/e-cursors.h, gal/widgets/e-gui-utils.h,
	gal/widgets/e-popup-menu.h, gal/widgets/e-printable.h,
	gal/widgets/gtk-combo-stack.h: Added GNOME_DECLS.

svn path=/trunk/; revision=8267
2001-02-17 08:40:12 +00:00
63b02f6746 Made a width other than the default possible if the children have widths
2001-02-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas-vbox.h: Made a
	width other than the default possible if the children have widths
	larger than the default.

svn path=/trunk/; revision=8171
2001-02-11 06:52:10 +00:00
114587155d Added this function.
2001-02-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h
	(e_canvas_item_show_area_delayed): Added this function.

svn path=/trunk/; revision=8168
2001-02-11 05:51:59 +00:00
414408be59 Since gdkevent is a union, casting a smaller struct to a gdkevent caused
2001-02-09  JP Rosevear  <jpr@ximian.com>

	* gal/widgets/e-canvas.c (e_canvas_key): Since gdkevent is a
	union, casting a smaller struct to a gdkevent caused unknown
	memory to be copied around.  fix by copying to a full gdkevent
	structure before calling gdkevent.
	(e_canvas_focus_in): ditto
	(e_canvas_focus_out): ditto

svn path=/trunk/; revision=8153
2001-02-09 22:27:37 +00:00
82d69c876f Added a "header" argument to set the label at the top of the dialog.
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/gal-categories.glade, gal/widgets/e-categories.c
	(ec_set_header): Added a "header" argument to set the label at the
	top of the dialog.

svn path=/trunk/; revision=8108
2001-02-08 17:38:38 +00:00
de975c303a Added Akira's japanese etc. encodings to e-font
svn path=/trunk/; revision=8056
2001-02-07 19:57:19 +00:00
4a01c75587 Check for nl_langinfo (CODESET). Code taken from glib 1.3 branch.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Check for nl_langinfo (CODESET).  Code taken from
	glib 1.3 branch.

	* gal/widgets/e-font.c, gal/widgets/e-font.h (e_locale_encoding):
	Added e_locale_encoding, e_iconv_from_locale, and
	e_iconv_to_locale.

	* gal/widgets/e-unicode.c, gal/widgets/e-unicode.h: Added
	e_utf8_from_locale_string, e_utf8_from_locale_string_sized,
	e_utf8_to_locale_string, e_utf8_to_locale_string_sized.

svn path=/trunk/; revision=8032
2001-02-06 22:57:01 +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
6c2bb13f67 Changed the call to iconv to be char ** instead of const char **.
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* gal/widgets/e-font.c (e_font_to_native), gal/widgets/e-unicode.c
	(e_utf8_from_gtk_string_sized, e_utf8_to_gtk_string_sized):
	Changed the call to iconv to be char ** instead of const char **.

svn path=/trunk/; revision=7970
2001-02-05 14:39:55 +00:00
1b18f022ca Always include +1 for the size. 0*2 == 0, so malloc returns NULL, which is
2001-01-29  Not Zed  <NotZed@Ximian.com>

        * gal/widgets/e-unicode.c (e_utf8_xml1_decode): Always include +1
        for the size.  0*2 == 0, so malloc returns NULL, which is not what
        we want.

svn path=/trunk/; revision=7885
2001-01-29 09:15:03 +00:00
aba2b5bbeb Update copyright and add myself as the author.
svn path=/trunk/; revision=7877
2001-01-28 13:40:04 +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
3ab2eaeb03 Documented.
svn path=/trunk/; revision=7870
2001-01-28 10:00:47 +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
4ad90449e1 Ooops, forgot to commit the Makefile.
svn path=/trunk/; revision=7852
2001-01-27 10:15:08 +00:00
f0404a284a New, simple dropdown button widget based on the thing that Damon did
in `e-meeting-time-sel.c'.

svn path=/trunk/; revision=7851
2001-01-27 10:13:45 +00:00
5066180bc3 Clamp the value we set here. (compute_offset): Switched to ints here.
2001-01-25  Christopher James Lahey  <clahey@helixcode.com>

	* gal/widgets/e-canvas-utils.c (e_canvas_item_show_area): Clamp
	the value we set here.
	(compute_offset): Switched to ints here.

svn path=/trunk/; revision=7825
2001-01-25 22:27:09 +00:00
cc505b2c67 Made this function put some space around the area shown.
2001-01-25  Christopher James Lahey  <clahey@helixcode.com>

	* gal/widgets/e-canvas-utils.c (e_canvas_item_show_area): Made
	this function put some space around the area shown.

svn path=/trunk/; revision=7820
2001-01-25 20:34:55 +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
7ed4e6f182 s/GdkEventButton/GdkEvent/
* gal/widgets/e-popup-menu.c (e_popup_menu_run):
	s/GdkEventButton/GdkEvent/

	* gal/widgets/e-gui-utils.c (e_popup_menu): ditto, and deal with
	key events as well

svn path=/trunk/; revision=7660
2001-01-20 00:19:18 +00:00
52f1578c81 Make zero the minimum number of days that can be specified.
2001-01-17  Federico Mena Quintero  <federico@ximian.com>

	* e-calendar-item.c (e_calendar_item_set_max_days_sel): Make zero
	the minimum number of days that can be specified.
	(e_calendar_item_set_arg): We do need an update when the maximum
	number of selected days is changed.
	(e_calendar_item_set_max_days_sel): Request an update of the
	canvas item.
	(e_calendar_item_button_press): Do not start selecting days if the
	max_days_selected is less than 1.

svn path=/trunk/; revision=7625
2001-01-18 17:27:22 +00:00
f921268b14 Oops. Delete this. I never meant for this to get commit'd.
2001-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-messagebox.c (e_message_box_get_id): Oops. Delete this. I
	never meant for this to get commit'd.

svn path=/trunk/; revision=7587
2001-01-17 17:57:23 +00:00
0c4617b33e Dont remove the function, give it the proper name
2001-01-17  JP Rosevear  <jpr@ximian.com>

	* e-messagebox.c (e_message_box_get_id): Dont remove the function, give
	it the proper name

svn path=/trunk/; revision=7580
2001-01-17 15:50:40 +00:00
ac6e2ee7ef Fix the build by removing a stale function definition. Sigh.
svn path=/trunk/; revision=7578
2001-01-17 15:35:26 +00:00
8f0f48283e Hi fejj. Using your computer to check in the files you forget to add. :-)
svn path=/trunk/; revision=7576
2001-01-17 14:01:33 +00:00
485d80d336 Added e-messagebox to the build.
2001-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Added e-messagebox to the build.

	* e-messagebox.[c,h]: Added a new messagebox window that contains
	a checkbox for "Don't show me this again."

svn path=/trunk/; revision=7566
2001-01-17 08:36:28 +00:00
7878a71545 Moved ESearchBar from filter/ to widgets/misc/, a more appropriate home.
Moved ESearchBar from filter/ to widgets/misc/, a more appropriate
 home.  Bug #1060.

svn path=/trunk/; revision=7536
2001-01-16 17:50:44 +00:00
903d188a7b Removed an unused variable. (e_utf8_from_gtk_string_sized): Made ib const
2001-01-06  Christopher James Lahey  <clahey@helixcode.com>

	* gal/widgets/e-unicode.c (e_utf8_xml1_decode): Removed an unused
	variable.
	(e_utf8_from_gtk_string_sized): Made ib const here.

svn path=/trunk/; revision=7307
2001-01-08 21:36:41 +00:00