Commit Graph

165 Commits

Author SHA1 Message Date
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
e68b48fb6e Work to get a Gtk-Doc infrastructure in place for Gal.
Work to get a Gtk-Doc infrastructure in place for Gal.

Miguel.

svn path=/trunk/; revision=6883
2000-12-09 02:18:00 +00:00
c224a149c5 Call the parent class destroyer as well
2000-12-08  JP Rosevear  <jpr@helixcode.com>

	* e-calendar.c (e_calendar_destroy): Call the parent class destroyer
	as well

svn path=/trunk/; revision=6881
2000-12-09 02:08:36 +00:00
92708e6f44 Destroy the gdkIC if we have one
2000-12-07  JP Rosevear  <jpr@helixcode.com>

	* gal/widgets/e-canvas.c (e_canvas_destroy): Destroy the gdkIC
	if we have one

svn path=/trunk/; revision=6847
2000-12-07 21:33:27 +00:00
87d218b24d Move away from unicode_iconv*. We still need libunicode for utf8
strings functions, but that will go away eventually.

	* configure.in: Add a check for libiconv, which is required if
	your system doesn't have iconv in libc, or has glibc 2.1.2. Bump
	the gal version number to 0.2.99.3

	* tests/Makefile.am (LDADD): add ICONV_LIBS

	* gal/widgets/Makefile.am (libwidgets_la_LDFLAGS): Add ICONV_LIBS

	* gal/widgets/e-unicode.c: Use iconv rather than libunicode for
	iconv()ing.
	(e_unicode_init): No longer needed

	* gal/widgets/e-font.c: Use iconv rather than libunicode for
	iconv()ing.
	(e_iconv_{from,to}_gdk_font): renamed from e_uiconv...

	* gal/widgets/test-e-font.c: No longer need to e_unicode_init().

svn path=/trunk/; revision=6719
2000-11-29 20:36:00 +00:00
cc43237879 updated to emit "changed" when appropriate, which turned out to be
2000-10-26  Damon Chaplin  <damon@helixcode.com>

	* e-dateedit.[hc]: updated to emit "changed" when appropriate, which
	turned out to be amazingly difficult :(
	Also added e_date_edit_get/set_date() to get/set just the date.
	Added e_date_edit_date_is_valid() & e_date_edit_time_is_valid() so
	you can check if the user has tried to enter an invalid date.
	(All the get_date/time functions return the last valid date entered.)

	* test-dateedit.c: updated a bit.

svn path=/trunk/; revision=6672
2000-11-26 23:10:17 +00:00
54ebbd37f3 Made the underline show up properly in the main menu bar.
2000-11-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.c: Made the underline show up properly in the main
	menu bar.

svn path=/trunk/; revision=6532
2000-11-10 16:26:36 +00:00
2ff6fc1219 Switched from using gtk_menu_item_new_with_label for the menu header to
2000-11-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.c: Switched from using gtk_menu_item_new_with_label
	for the menu header to using gnome_stock_menu_item.

svn path=/trunk/; revision=6530
2000-11-10 10:13:00 +00:00
3e041d400f Changed the gal version number and the gal so number. Added check for
2000-11-09  Christopher James Lahey  <clahey@helixcode.com>

	* configure.in: Changed the gal version number and the gal so
	number.  Added check for bonobo.

	* gal/Makefile.am: Added gal-view-menus.lo.

	* gal/widgets/e-unicode.c: Removed some unused variables.

From gal/menus/ChangeLog:

2000-11-09  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added gal-view-menus.c and gal-view-menus.h.

	* gal-view-menus.c, gal-view-menus.h: New files to create the view
	menus.

svn path=/trunk/; revision=6528
2000-11-10 02:44:25 +00:00
b4927628cf Fixed two spacing problems: first, changed the spacing around the end of
2000-11-08  Anna Marie Dirks  <anna@helixcode.com>
	* e-search-bar.c: Fixed two spacing problems: first, changed
	the spacing around the end of the text-entry widget so that
	the text entry is always aligned with the beginning of the scrollbar;
	second, trimmed down the space between the widgets in the search bar.

svn path=/trunk/; revision=6522
2000-11-09 22:21:07 +00:00
9f7ff57297 Added decomposing case insensitive utf-8 strstr
svn path=/trunk/; revision=6498
2000-11-08 02:47:35 +00:00
381e202936 gal/widgets/e-unicode.h: END_GNOME_DECLS, not BEGIN
svn path=/trunk/; revision=6469
2000-11-07 00:09:27 +00:00
3729117ec6 Add a submenu field to struct EPopupMenu.
2000-11-06  Jeffrey Stedfast  <fejj@helixcode.com>

	* gal/widgets/e-popup-menu.h: Add a submenu field to struct
	EPopupMenu.

	* gal/widgets/e-popup-menu.c (e_popup_menu_create): If the menu
	item has a submenu field, create the submenu and attach it.

	* configure.in: Bumped the micro-version because of some changes
	to e-popup-menu's structure.

svn path=/trunk/; revision=6461
2000-11-06 23:07:04 +00:00
f2178aee93 Fixed the argument comment. Removed an old enum that's not used here.
2000-11-06  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.h: Fixed the argument comment.  Removed an old enum
	that's not used here.

svn path=/trunk/; revision=6457
2000-11-06 22:07:48 +00:00
a2dda6941a Added e-search-bar.c and e-search-bar.h.
2000-11-06  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added e-search-bar.c and e-search-bar.h.

	* e-search-bar.c, e-search-bar.h: Moved this from
	e-addressbook-search.

svn path=/trunk/; revision=6454
2000-11-06 21:52:09 +00:00
9bbf4be3ac Removed the "time_changed" signal, since it was never being emitted in the
2000-11-02  Federico Mena Quintero  <federico@helixcode.com>

	* e-dateedit.h (EDateEditClass): Removed the "time_changed"
	signal, since it was never being emitted in the first place.  Time
	values *are* both date and time together anyways, so whenever one
	changes we should notify about the whole date/time value being
	changed.
	Renamed the remaining "date_changed" signal to just "changed".

	* e-dateedit.c (e_date_edit_class_init): Do not create the
	"time_changed" signal; rename the other one to "changed".
	(set_time): Moved the core functionality from
	e_date_edit_set_time() to here.  This function just sets the
	widgets' values without emitting any signals.
	(e_date_edit_set_time): Emit the "changed" signal unconditionally.
	This is to be consistent with the rest of the GTK+ widgets, and it
	actually makes writing client code easier.
	(e_date_edit_new): Use set_time().
	(on_date_popup_now_button_clicked): Do not emit the signal here.
	(on_date_popup_none_button_clicked): Likewise.
	(e_date_edit_set_time_of_day): Emit the signal, since we do not
	call e_date_edit_set_time().

svn path=/trunk/; revision=6367
2000-11-03 18:15:54 +00:00
97fa2239f7 #include <string.h> to get rid of warning. Same here.
2000-10-30  Kjartan Maraas  <kmaraas@gnome.org>

	* e-calendar-item.c: #include <string.h> to get rid of warning.
	* e-clipped-label.c: Same here.

svn path=/trunk/; revision=6287
2000-10-31 13:34:13 +00:00
c3abfc7154 Do not unref the cal_popup since we already destroyed it.
2000-10-27  Federico Mena Quintero  <federico@helixcode.com>

	* e-dateedit.c (e_date_edit_destroy): Do not unref the cal_popup
	since we already destroyed it.

svn path=/trunk/; revision=6244
2000-10-28 00:48:42 +00:00