Commit Graph

499 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
fd2a3bcf17 *misc/e-multi-config-dialog.c : add appropriate padding and spacing to the
2003-04-22  Anna Dirks  <anna@ximian.com>

	*misc/e-multi-config-dialog.c : add appropriate padding
	and spacing to the settings dialog. Fixes #41392.

svn path=/trunk/; revision=20942
2003-04-23 19:17:54 +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
122470e9be remove e-font.[ch], test-e-font, and test-font-loading. kill
2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* gal/widgets/Makefile.am : remove e-font.[ch], test-e-font,
	and test-font-loading.
	* gal/widgets/e-unicode.[ch] (e_utf8_from_gtk_string): kill
	(e_utf8_from_gtk_string_sized): kill
	(e_utf8_to_gtk_string): kill
	(e_utf8_to_gtk_string_sized): kill
	(e_utf8_gtk_menu_item_new_with_label): kill
	(e_utf8_gtk_clist_set_text): kill
	(e_utf8_gtk_clist_append): kill
	* e-categories-master-list-option-menu.c (ecmlom_ecml_changed):
	don't use e_utf8_to_gtk_string.
	* e-categories-master-list-combo (ecmlc_ecml_changed):
	don't use e_utf8_to_gtk_string.

2003-04-08  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c : break e-font dependency

svn path=/trunk/; revision=20766
2003-04-08 19:48:41 +00:00
fc5fc4dcf0 fill_color_gdk is a boxed GdkColor, not a pointer. (ecb_set_property):
2003-04-07  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-canvas-background.c (ecb_class_init):
	fill_color_gdk is a boxed GdkColor, not a pointer.
	(ecb_set_property): same.
	(ecb_get_property): same.

svn path=/trunk/; revision=20741
2003-04-08 04:34:34 +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
2c96683a37 move to using gtk_im_context.
2003-04-01  Larry Ewing  <lewing@ximian.com>

	* gal/widgets/e-canvas.c: move to using gtk_im_context.

	* gal/widgets/e-canvas.c: add im_context member.

svn path=/trunk/; revision=20634
2003-04-02 05:46:33 +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
351cb225cb Remove e_notice. (Moved to evolution.)
* gal/widgets/e-gui-utils.c: Remove e_notice. (Moved to
	evolution.)

svn path=/trunk/; revision=20496
2003-03-25 15:47:13 +00:00
17057abe19 [ fixes bug #39856 ] request a full redraw when we're done dragging
2003-03-21  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #39856 ]
	* gal/widgets/e-reflow.c (e_reflow_update): request a full redraw
	when we're done dragging columns.

svn path=/trunk/; revision=20450
2003-03-21 10:21:45 +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
63aef14c02 i18n fix
2003-03-04  Dmitry Mastrukov  <dmitry@taurussoft.org>

	* gal/widgets/e-unicode.c : i18n fix

2003-03-04  Dmitry Mastrukov  <dmitry@taurussoft.org>

	* e-cell-date.c (ecd_get_text): i18n fix
	* e-table.c (et_real_construct): i18n fix
	* e-table-config.c (create_global_store): i18n fix
	* e-table-utils.c (et_col_spec_to_col): i18n fix

2003-03-04  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c : some cursor fixes

svn path=/trunk/; revision=20156
2003-03-04 22:09:44 +00:00
c003d7dec8 init column_count to column_start + 1. (item_removed): clean up the
2003-02-27  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (reflow_columns): init column_count to
	column_start + 1.
	(item_removed): clean up the setting of
	reflow->reflow_from_column.
	(items_inserted): same.

svn path=/trunk/; revision=20097
2003-02-28 01:32:27 +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
1de4b21c42 use gdk_event_copy and gdk_event_free to dup the event.
2003-02-27  Mike Kestner  <mkestner@ximian.com>

	* gal/widgets/e-canvas.c (emit_event): use gdk_event_copy
	and gdk_event_free to dup the event.

svn path=/trunk/; revision=20088
2003-02-27 22:24:38 +00:00
da0afe53d2 remove the grab_cancelled_check_id if it's still active.
2003-02-26  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-canvas.c (e_canvas_dispose): remove the
	grab_cancelled_check_id if it's still active.

svn path=/trunk/; revision=20083
2003-02-27 04:13:06 +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
0f7100a65c make this actually work: destroy the canvas item, memmove stuff around,
2003-02-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (item_removed): make this actually work:
	destroy the canvas item, memmove stuff around, change
	reflow->count, etc, etc.

svn path=/trunk/; revision=19918
2003-02-17 02:58:09 +00:00
baa50a5c89 enable this function to reflow the view from a particular column onward.
2003-02-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (reflow_columns): enable this function to
	reflow the view from a particular column onward.  This is useful
	if you have a huge model and the only changes are happening at the
	end (as is normally the case if you're appending to a large
	model.)
	(item_changed): calculate the height of the changed item here, so
	we aren't doing it as we reflow the model.  For now, reflow the
	entire model.  Further optimization can be done here.
	(item_removed): new function.  remove the item and reflow from the
	column that contained it.
	(items_inserted): calculate the heights of the new items, and
	calculate the lowest numbered column containing one of the
	inserted items.  reflow from there.
	(model_changed): calculate the heights of everything here.
	(comparison_changed): new function, clear the sorter and reflow.
	(disconnect_model): disconnect comparison_changed and
	model_item_removed.
	(connect_model): connect comparison_changed and
	model_item_removed.
	(adjustment_changed): use queue_incarnate here, instead of forcing
	the reflow model to incarnate as we scroll.  Not sure if this is
	actually the right solution, but it does make the scrollbar more
	responsive at the cost of redraw speed.

	* gal/widgets/e-reflow.h (struct _EReflow): add slots for the new
	signal ids, as well as "reflow_from_column".

	* gal/widgets/e-reflow-model.c (e_reflow_model_class_init): create
	the comparison_changed and model_item_removed signals.
	(e_reflow_model_comparison_changed): new function, emit the
	comparison_changed signal.
	(e_reflow_model_item_removed): new function, emit the
	model_item_removed signal.

	* gal/widgets/e-reflow-model.h: add comparison_changed and
	model_item_removed signals.

svn path=/trunk/; revision=19917
2003-02-17 02:38:15 +00:00
88698ec92a replaced deprecated calls (gtk_menu_append -> gtk_menu_shell_append and
2003-02-07  Radek Doulik  <rodo@ximian.com>

	* gal/widgets/e-popup-menu.c (e_popup_menu_create_with_domain):
	replaced deprecated calls (gtk_menu_append ->
	gtk_menu_shell_append and gtk_radio_menu_item_group ->
	gtk_radio_menu_item_get_group)

svn path=/trunk/; revision=19841
2003-02-07 09:53:11 +00:00
75b60575be (e_auto_kill_popup_menu_on_selection_done): Rename from
e_auto_kill_popup_menu_on_hide().  Connect to "deactivate" instead
of destroy.
(e_popup_menu): Use e_auto_kill_popup_menu_on_selection_done()
instead of e_auto_kill_popup_menu_on_hide().

svn path=/trunk/; revision=19833
2003-02-06 23:22:50 +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
a5e82f72f8 updated for e scroll frame --> gtk scrolled window
svn path=/trunk/; revision=19736
2003-02-04 19:03:02 +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
39d54f9d91 Just use gtk_widget_destroy as the G_CALLBACK function.
2003-02-01  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/widgets/e-gui-utils.c (e_auto_kill_popup_menu_on_hide): Just
	use gtk_widget_destroy as the G_CALLBACK function.

svn path=/trunk/; revision=19703
2003-02-02 03:01:32 +00:00
2ca00daea4 gtk_widget_destroy the menu rather than g_object_unref'ing it.
2003-01-31  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/widgets/e-gui-utils.c (kill_popup_menu): gtk_widget_destroy
	the menu rather than g_object_unref'ing it.

svn path=/trunk/; revision=19696
2003-01-31 20:55:41 +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
e867ad711e Fix destroy.
svn path=/trunk/; revision=19505
2003-01-17 22:18:39 +00:00