Commit Graph

220 Commits

Author SHA1 Message Date
d49d8a2f15 guard against multiple destroys
2003-05-14  JP Rosevear  <jpr@ximian.com>

	* e-combo-button.c (impl_destroy): guard against multiple destroys

2003-05-14  JP Rosevear  <jpr@ximian.com>

	* menus/gal-view-menus.c (gvm_finalize): unref the component

svn path=/trunk/; revision=21178
2003-05-14 18:42:38 +00:00
65fee07a39 [#42628] Call emit_search_activated() instead of emit_query_changed().
[#42628]
* e-search-bar.c (search_now_verb_cb): Call
emit_search_activated() instead of emit_query_changed().

svn path=/trunk/; revision=21154
2003-05-13 16:04:01 +00:00
a972ac3590 [ fixes bug #42177 ] remove the CAN_FOCUS flag.
2003-05-11  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #42177 ]
	* e-dateedit.c (e_date_edit_init): remove the CAN_FOCUS flag.

svn path=/trunk/; revision=21146
2003-05-11 21:57:25 +00:00
2b99ba904b Fix date in ChangeLog.
svn path=/trunk/; revision=21140
2003-05-09 16:34:22 +00:00
bcbf0b3fb2 *** empty log message ***
svn path=/trunk/; revision=21139
2003-05-09 16:34:04 +00:00
692862c505 trash e_utf8_gtk function (e_search_bar_get_text): ditto
2003-05-07  JP Rosevear  <jpr@ximian.com>

	* e-search-bar.c (e_search_bar_set_text): trash e_utf8_gtk
function
	(e_search_bar_get_text): ditto

svn path=/trunk/; revision=21129
2003-05-08 14:02:52 +00:00
fa9dddd005 Remove this so that GtkContainer's destroy method will destroy all of the
* e-dateedit.c (e_date_edit_forall): Remove this so that
        GtkContainer's destroy method will destroy all of the internal
        widgets. (This is how other compound-widgets-that-aren't-
        meant-to-be-used-as-containers behave.) #41458

svn path=/trunk/; revision=21003
2003-04-29 16:59:12 +00:00
d4b1e549f6 (remove_bonobo_menus): Only do the actual remove
if the ui component actually has a container; this suppresses a
BonoboUI warning at each folder view switch.

svn path=/trunk/; revision=20861
2003-04-16 14:47:06 +00:00
db8f0cbfbc Unref the metrics. (e_calendar_item_draw): Re-use the widget's context
2003-04-15  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_update): Unref the metrics.
	(e_calendar_item_draw): Re-use the widget's context instead of
	creating a new one. Unref the metrics.
	(e_calendar_item_draw_month): Unref the metrics. Don't create the
	layout where it might be leaked by an early return. Unref the layout
	before returning if we're outside the clip area.
	(e_calendar_item_draw_day_numbers): Unref the metrics.
	(e_calendar_item_recalc_sizes): Unref the metrics.
	(e_calendar_item_convert_position_to_day): Unref the metrics.

	* e-calendar.c (e_calendar_size_allocate): Unref the metrics.

svn path=/trunk/; revision=20855
2003-04-15 21:43:05 +00:00
359f89f8bf Change the border width and padding to comply with the HIG. Fixes bug
2003-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (do_advanced): Change the border width and
	padding to comply with the HIG. Fixes bug #41202.
	(do_advanced): Changed the button ordering from Cancel/Save/OK to
	Save/Cancel/OK to comply with the HIG. Fixes bug #41207.

svn path=/trunk/; revision=20829
2003-04-11 20:08:05 +00:00
dc0aeb63bb Change the border width and padding to comply with the HIG. Fixes bug
2003-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (do_advanced): Change the border width and
	padding to comply with the HIG. Fixes bug #41202.

svn path=/trunk/; revision=20828
2003-04-11 20:04:58 +00:00
0cdafe3604 kill an old e_utf8_gtk usage
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-search-bar.c (set_option): kill an old e_utf8_gtk usage

and remove some straggling e-font.h includes.

svn path=/trunk/; revision=20769
2003-04-08 20:44:58 +00:00
ea6d89e804 e_cell_percent_get_type returns GType, not GtkType.
2003-04-06  Chris Toshok  <toshok@ximian.com>

	* e-cell-percent.h: e_cell_percent_get_type returns GType, not
	GtkType.

	* e-cell-percent.c (e_cell_percent_new): use g_object_new, not
	gtk_object_new.

svn path=/trunk/; revision=20692
2003-04-07 02:09:59 +00:00
7143de721b For example; a selection ending 2003-apr-02 does not fit into the
2003-04-02  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_set_selection): For example;
	a selection ending 2003-apr-02 does not fit into the remaining
	shown days after 1969-dec. Stop assuming that it does.

svn path=/trunk/; revision=20652
2003-04-03 04:00:19 +00:00
c3efd8d943 Nuke GdkFont and use Pango's font measuring for everything.
2003-04-01  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_class_init)
	(e_calendar_item_destroy)
	(e_calendar_item_get_arg)
	(e_calendar_item_set_arg)
	(e_calendar_item_update)
	(e_calendar_item_draw)
	(e_calendar_item_draw_month)
	(e_calendar_item_draw_day_numbers)
	(e_calendar_item_recalc_sizes)
	(e_calendar_item_convert_position_to_day): Nuke GdkFont and use
	Pango's font measuring for everything.

	* e-calendar-item.h: Ditto.

	* e-calendar.c (e_calendar_init)
	(e_calendar_size_allocate): Ditto.

svn path=/trunk/; revision=20633
2003-04-02 05:38:19 +00:00
86c77578a1 Handle multiple destroys.
2003-03-30  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_destroy): Handle multiple
	destroys.

svn path=/trunk/; revision=20588
2003-03-31 05:15:38 +00:00
7e0741f407 set the sub item to the default as well
2003-03-28  JP Rosevear  <jpr@ximian.com>

	* e-search-bar.c (clear_search): set the sub item to the default
	as well

svn path=/trunk/; revision=20572
2003-03-29 02:16:56 +00:00
cb46b4039b #include gtkarrow.h Likewise
* e-calendar.c: #include gtkarrow.h
	* e-combo-button.c: Likewise

	* e-charset-picker.c: Update for e_notice move

svn path=/trunk/; revision=20499
2003-03-25 15:48:09 +00:00
9e5f92c8e4 Updated to use GtkDialog instead of GnomeDialog. Also fixed bug #39550
2003-03-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c: Updated to use GtkDialog instead of
	GnomeDialog. Also fixed bug #39550 while I was at it.

svn path=/trunk/; revision=20375
2003-03-19 23:42:12 +00:00
c6a1e23298 Use GtkArrow instead of pixmaps Use GtkArrow instead of pixmaps
2003-03-10  Rodney Dawes  <dobey@ximian.com>

	* e-calendar.c: Use GtkArrow instead of pixmaps
	* e-combo-button.c: Use GtkArrow instead of pixmaps
	* e-filter-bar.c: gtk_window_set_policy () is deprecated
	* e-url-entry.c: Load the icon in a pixbuf instead of GdkPixmap

svn path=/trunk/; revision=20254
2003-03-11 21:22:14 +00:00
34b5562c9f (destroy): Removed unused variable.
svn path=/trunk/; revision=20201
2003-03-06 17:24:48 +00:00
3de88468be Use G_GNUC_FUNCTION instead of __FUNCTION__.
* menus/gal-view-menus.c (gal_view_menus_unmerge): Use
G_GNUC_FUNCTION instead of __FUNCTION__.

* e-dropdown-button.c (menu_deactivate_cb): Removed debugging
spew.

svn path=/trunk/; revision=20200
2003-03-06 17:24:22 +00:00
265fea16e7 guard this so we don't try to free priv multiple times.
2003-02-27  Chris Toshok  <toshok@ximian.com>

	* e-url-entry.c (destroy): guard this so we don't try to free priv
	multiple times.

svn path=/trunk/; revision=20089
2003-02-27 23:02:46 +00:00
176204b94f Use g_signal_handlers_disconnect_by_func since
* e-map.c (e_map_destroy): Use
	g_signal_handlers_disconnect_by_func since
	gtk_signal_disconnect_by_data doesn't seem to work right.
	(e_map_set_scroll_adjustments): Likewise.

svn path=/trunk/; revision=20052
2003-02-25 15:39:47 +00:00
f446063c57 Same as below.
2003-02-25  Jeffrey Stedfast  <fejj@ximian.com>

	* e-dateedit.c (on_date_popup_date_selected): Same as below.

	* e-cell-date-edit.c (e_cell_date_edit_on_ok_clicked): Also
	updated to use the new GDate API from glib 2.0

	* test-calendar.c (on_selection_changed): Fixed to use glib 2.0's
	GDate API.

	* e-calendar-item.c (e_calendar_item_get_week_number): Port to
	glib 2.0's GDate API.
	(e_calendar_item_set_selection): Same.

	* e-search-bar.c (append_xml_menu_item): Use
	g_string_append_printf instead of g_string_sprintfa since the
	latter is now deprecated.
	(setup_bonobo_menus): Same.

	* e-filter-bar.c (do_advanced): Use gtk_window_set_resizable()

	* e-charset-picker.c: Fixes to make it build cleanly with
	-DG_DISABLE_DEPRECATED
	(add_charset): Escape _'s so we don't get underline weirdness due
	to GtkLabel thinking the _ means to underline the next char.
	(e_charset_picker_bonobo_ui_populate): Same here.

svn path=/trunk/; revision=20048
2003-02-25 07:03:46 +00:00
986f2ace07 Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamic
libraries, so they can be portably linked into the (shared library)
components. (Part 1 of N.)

svn path=/trunk/; revision=19971
2003-02-20 16:48:43 +00:00
a8d95c424f Define MAP_DIR in terms of $(imagesdir). (widgetsincludedir): Define in
* Makefile.am (INCLUDES): Define MAP_DIR in terms of $(imagesdir).
	(widgetsincludedir): Define in terms of $(privincludedir)

svn path=/trunk/; revision=19772
2003-02-05 22:04:32 +00:00
9c2e592707 Use Pango to draw. (e_calendar_item_class_init): Add font_desc and
2003-02-02  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.[ch]: Use Pango to draw.
	(e_calendar_item_class_init): Add font_desc and week_number_font_desc
	args.
	(e_calendar_item_get_arg): Ditto.
	(e_calendar_item_set_arg): Ditto.
	(e_calendar_item_draw_month): Use Pango.
	(e_calendar_item_draw_day_numbers): Ditto.

	* e-calendar.c: Use Pango to draw. Specify just the size of the small
	font to use, instead of all aspects of it.
	(e_calendar_init): Produce the small font description and pass it to
	the ECalendarItem.

svn path=/trunk/; revision=19705
2003-02-02 08:02:27 +00:00
4a84630875 Don't request combo boxes that are 0 pixels tall. (position_date_popup):
2003-02-01  Hans Petter Jansson  <hpj@ximian.com>

	* e-dateedit.c (create_children): Don't request combo boxes that are
	0 pixels tall.
	(position_date_popup): Make this work when the button doesn't have
	its own window.

svn path=/trunk/; revision=19704
2003-02-02 03:07:00 +00:00
29a26b08f3 init the layout to NULL.
2003-01-26  Chris Toshok  <toshok@ximian.com>

	* e-clipped-label.c (e_clipped_label_new): init the layout to
	NULL.

svn path=/trunk/; revision=19639
2003-01-27 04:59:48 +00:00
b110f7e404 Make the label bold using the new args to e_clipped_label_new().
* e-title-bar.c (e_title_bar_construct): Make the label bold using
the new args to e_clipped_label_new().

* e-clipped-label.c (build_layout): Honor ->font_size and ->layout
in the newly created PangoLayout.
(e_clipped_label_new): New args font_weight, font_size.
(e_clipped_label_size_request): Removed unused variables.
(e_clipped_label_expose): Likewise.
(e_clipped_label_expose): Likewise.
(e_clipped_label_set_text): Likewise.
(e_clipped_label_recalc_chars_displayed): Likewise.

* e-clipped-label.h (struct _EClippedLabel): Add font_size, layout
members.

svn path=/trunk/; revision=19591
2003-01-23 19:30:48 +00:00
e55ad4d255 (widgetsincludedir): Version using $(BASE_VERSION).
svn path=/trunk/; revision=19568
2003-01-22 20:34:11 +00:00
387af10dfa (init): Change dialog from
OK/Apply/Cancel to Apply/Close/OK to be closer to the HIG.

svn path=/trunk/; revision=19466
2003-01-14 22:30:15 +00:00
3be3c9494b Do not #include <e-bonobo-widget.h>. (e_set_dialog_parent): Remove the
* e-dialog-utils.c: Do not #include <e-bonobo-widget.h>.
(e_set_dialog_parent): Remove the BonoboWidget handling stuff (it
doesn't really work anyways).

* e-shell-view.c: Do not #include "e-bonobo-widget.h".

* Makefile.am (widgetsinclude_HEADERS): Ooops, remove
e-bonobo-widget.h.
(libemiscwidgets_a_SOURCES): Likewise, remove e-bonobo-widget.c.

svn path=/trunk/; revision=19460
2003-01-14 20:19:26 +00:00
51203b37f4 (EXTRA_DIST): e-util-marshal.list, not
e-book-marshal.list.
(widgetsinclude_HEADERS): Add e-bonobo-widget.h.
(libemiscwidgets_a_SOURCES): Add e-bonobo-widget.c.

svn path=/trunk/; revision=19457
2003-01-14 18:31:34 +00:00
5513846c31 (EXTRA_DIST): e-util-marshal.list, not
e-book-marshal.list.

svn path=/trunk/; revision=19443
2003-01-14 16:58:55 +00:00
86033606aa Images are now in $(datadir)/evolution/images
instead of $(datadir)/images/evolution.

svn path=/trunk/; revision=19294
2003-01-08 22:36:12 +00:00
6d87926c24 Removed the g_assert_not_reached(). If you hit the close button on your
2002-12-10  Not Zed  <NotZed@Ximian.com>

        * e-multi-config-dialog.c (impl_response): Removed the
        g_assert_not_reached().  If you hit the close button on your
        window it would abort, treat same as close.

svn path=/trunk/; revision=19083
2002-12-10 11:06:13 +00:00
bdd9cae5e9 rework this to be faster and deal more correctly with the ellipsis.
2002-12-09  Chris Toshok  <toshok@ximian.com>

	* e-clipped-label.[ch]: rework this to be faster and deal more
	correctly with the ellipsis.

svn path=/trunk/; revision=19076
2002-12-09 23:30:30 +00:00
fee69a584f dispose can be run multiple times too ... bloody gobject crap.
2002-12-03  Not Zed  <NotZed@Ximian.com>

        * e-search-bar.c (impl_dispose): dispose can be run multiple times
        too ... bloody gobject crap.

svn path=/trunk/; revision=18992
2002-12-03 04:55:22 +00:00
19da39fe23 Reverted
svn path=/trunk/; revision=18983
2002-12-02 13:10:17 +00:00
ed349d459b Included gtkmessagedialog.h.
2002-12-02  Rodrigo Moya <rodrigo@ximian.com>

	* e-cahrset-picker.c: Included gtkmessagedialog.h.

svn path=/trunk/; revision=18981
2002-12-02 12:26:43 +00:00
4354c0ac03 Add include of gnome-dialog.h
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * e-charset-picker.c: Add include of gnome-dialog.h

        * *.[ch]: ran fix.sh script over everything.

svn path=/trunk/; revision=18978
2002-12-02 03:28:22 +00:00
fb5e3d7237 Dont grab_add anymore on the button, gtk_button is changed in gtk2 not to
2002-11-26  Not Zed  <NotZed@Ximian.com>

        * e-combo-button.c (impl_button_press_event): Dont grab_add
        anymore on the button, gtk_button is changed in gtk2 not to do
        this anymore.

svn path=/trunk/; revision=18921
2002-11-26 10:41:05 +00:00
2a9def0dc9 new function, build pango layout for string.
2002-11-15  Chris Toshok  <toshok@ximian.com>

	* e-clipped-label.c (build_layout): new function, build pango
	layout for string.
	(e_clipped_label_size_request): pango-ize this, make the size
	requested dependent on the label.
	(e_clipped_label_expose): pango-ize this.
	(e_clipped_label_recalc_chars_displayed): pango-ize this.

svn path=/trunk/; revision=18784
2002-11-15 20:29:59 +00:00
e69c2b94c2 New. (e_clipped_label_destroy): Removed.
* e-clipped-label.c (e_clipped_label_finalize): New.
(e_clipped_label_destroy): Removed.

* e-title-bar.c (destroy): Removed.
(impl_finalize): New.
(class_init): Install GObject::finalize handler instead of
GtkObject::destroy handler.

svn path=/trunk/; revision=18761
2002-11-14 21:49:19 +00:00
792733a3c6 Changed to use g_object_*() and g_signal_*()
functions instead of gtk_object_*() and gtk_signal_*().
(destroy): Removed.
(dispose): New.
(class_init): Install GObject::dispose handler instead of
GtkObject::destroy handler.

svn path=/trunk/; revision=18753
2002-11-14 17:46:44 +00:00
f9ea4ba866 port to GObject.
2002-11-11  Chris Toshok  <toshok@ximian.com>

	* e-dateedit.[ch]: port to GObject.

svn path=/trunk/; revision=18717
2002-11-12 03:26:44 +00:00
07d5771f17 (init): Use GObject functions instead of
GtkObject throughout.

svn path=/trunk/; revision=18706
2002-11-11 19:50:22 +00:00
f2b2d6abb5 Removed. (impl_finalize): New. (class_init): Override GObject::finalize,
* e-multi-config-dialog.c (impl_destroy): Removed.
(impl_finalize): New.
(class_init): Override GObject::finalize, not GtkObject::destroy.

* e-config-page.c (impl_destroy): Removed.
(impl_finalize): New.
(class_init): Override GObject::finalize, not GtkObject::destroy.

* e-multi-config-dialog.c: Converted to a GtkDialog subclass
[instead of GnomeDialog].

svn path=/trunk/; revision=18696
2002-11-11 17:23:00 +00:00