Commit Graph

182 Commits

Author SHA1 Message Date
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
d4ff693f85 Broke font and fontset parts of EFont into separate functions. Possibly
fixed bug #857 (needs some more testing)

svn path=/trunk/; revision=7279
2001-01-06 03:59:56 +00:00
2bd88e7f25 bump version
2001-01-04  JP Rosevear  <jpr@helixcode.com>

	* configure.in: bump version

	* gal/widgets/gal-categories.glade: Glade file for category editor

	* gal/widgets/e-categories.[hc]: A category editor dialog taken
	and renamed from evolution

	* gal/widgets/Makefile.am: Build new files and install
	glade stuff

svn path=/trunk/; revision=7260
2001-01-04 21:55:49 +00:00
33e0d0e847 Added functions for encoding utf8 safely into libxml brokenness
svn path=/trunk/; revision=7225
2001-01-03 03:03:34 +00:00
05217d5ace Always have some text. Fixes crash.
2000-12-25  Miguel de Icaza  <miguel@helixcode.com>

	* gal/e-text/e-text.c (e_text_init): Always have some text.  Fixes crash.

	* gal/widgets/e-reflow.c (set_empty): Set draw_background to FALSE.

svn path=/trunk/; revision=7172
2000-12-25 22:15:34 +00:00
9b02c881ef translations
2000-12-22  JP Rosevear  <jpr@helixcode.com>

	* gui/goto-dialog.glade.h: translations

	* gui/goto-dialog.glade: new glade file for goto dialog

	* gui/gnome-cal.c (setup_widgets): Set date navigator attributes

	* gui/calendar-commands.h: remove prototype

	* gui/goto.h: Add prototype

	* gui/Makefile.am: Add glade file stuff

	* gui/gnome-cal.c (setup_widgets): Use accessors to configure the
	calendar item properly

2000-12-22  JP Rosevear  <jpr@helixcode.com>

	* e-calendar-item.h: add prototypes

	* e-calendar-item.c (e_calendar_item_init): Set max_days_selected to
	1 and days_to_start_week_selection to -1 as documented in header
	(e_calendar_item_set_arg): use new accessor methods
	(e_calendar_item_get_arg): ditto
	(e_calendar_item_get_max_days_sel): accessor
	(e_calendar_item_set_max_days_sel): ditto
	(e_calendar_item_get_days_start_week_sel): ditto
	(e_calendar_item_set_days_start_week_sel): ditto
	(e_calendar_item_class_init): add display_popup argument
	(e_calendar_item_init): initialize display_popup member
	(e_calendar_item_get_arg): get display_popup member
	(e_calendar_item_set_arg): set display_popup member
	(e_calendar_item_button_press): only show the popup menu if the
	member is set
	(e_calendar_item_get_display_popup): acessor
	(e_calendar_item_set_display_popup): ditto

svn path=/trunk/; revision=7132
2000-12-23 01:06:22 +00:00
4d0734f891 Upped the version number to 0.4.1. Bumped the GAL_REVISION to 1.
2000-12-15  Christopher James Lahey  <clahey@helixcode.com>

	* configure.in: Upped the version number to 0.4.1.  Bumped the
	GAL_REVISION to 1.

2000-12-14  Christopher James Lahey  <clahey@helixcode.com>

	* gal/widgets/e-canvas-vbox.c (e_canvas_vbox_event): Don't allow
	the arrow keys to let you scroll off of the table.

	* NEWS: Changed the NEWS format.

svn path=/trunk/; revision=7049
2000-12-15 17:35:20 +00:00
45a037eef5 #include <time.h>
2000-12-14  Federico Mena Quintero  <federico@helixcode.com>

	* e-dateedit.h: #include <time.h>

svn path=/trunk/; revision=7034
2000-12-15 00:06:07 +00:00
cbb72fbf86 Changed the color from yellow to light gray.
2000-12-13  Christopher James Lahey  <clahey@helixcode.com>

	* gal/e-text/e-text.c (_do_tooltip): Changed the color from yellow
	to light gray.

	* gal/widgets/e-canvas-vbox.c (e_canvas_vbox_event): Made it so
	that e-canvas-vbox doesn't eat all the keyboard events.  This
	means widget navigation keys work properly.

svn path=/trunk/; revision=6989
2000-12-14 01:59:35 +00:00
7f1a408cd3 Fixed some warnings.
2000-12-12  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.c (esb_pack_menubar): Fixed some warnings.

svn path=/trunk/; revision=6940
2000-12-12 07:38:26 +00:00
16b387c97c If there are columns allocated, free them upon a destroy.
2000-12-08  JP Rosevear  <jpr@helixcode.com>

	* e-table-state.c (etst_destroy): If there are columns allocated,
	free them upon a destroy.

2000-12-08  JP Rosevear  <jpr@helixcode.com>

	* gal/widgets/e-canvas.c (e_canvas_destroy): Remove my lame "fix"

svn path=/trunk/; revision=6884
2000-12-09 02:56:48 +00:00