Commit Graph

474 Commits

Author SHA1 Message Date
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
f4a7080e82 (e_notice): Use gtk_dialog_run()
instead of gtk_widget_show() so we return only after the user
acknowledges the error.

svn path=/trunk/; revision=19504
2003-01-17 21:57:08 +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
31002ecdfa guard against multiple calls.
2002-12-04  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-canvas-background.c (ecb_dispose): guard against
	multiple calls.

svn path=/trunk/; revision=19009
2002-12-04 22:40:41 +00:00
200071108f Don't leak old sort info.
2002-12-03  Hans Petter Jansson  <hpj@ximian.com>

        * e-table.c (e_table_get_state_object): Don't leak old sort info.

2002-12-03  Hans Petter Jansson  <hpj@ximian.com>

        * gal/widgets/e-canvas-background.c (ecb_destroy): Don't leak
        private structure.

svn path=/trunk/; revision=18999
2002-12-03 23:09:17 +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
0ac49c9334 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=18979
2002-12-02 04:32:10 +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
36ef28a759 column_width = double. (e_reflow_realize): no need to cast to double,
2002-11-18  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_set_property): column_width =
	double.
	(e_reflow_realize): no need to cast to double, column_width is
	already a double.

svn path=/trunk/; revision=18833
2002-11-19 00:32:34 +00:00
56f74fbb19 we need to destroy the dialog after we've run it, because run doesn't do
2002-11-18  Not Zed  <NotZed@Ximian.com>

        * gal/widgets/e-gui-utils.c (e_notice): we need to destroy the
        dialog after we've run it, because run doesn't do it for us like
        gnome-dialog did.

svn path=/trunk/; revision=18816
2002-11-18 07:52:45 +00:00
0e8f42c136 convert this to wrap around GtkMessageDialog.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-gui-utils.c (e_notice): convert this to wrap
	around GtkMessageDialog.

	* gal/widgets/e-categories-master-list-dialog.c (dialog_response):
	gnome_dialog_close -> gtk_widget_destroy.

svn path=/trunk/; revision=18814
2002-11-17 08:00:40 +00:00
68b8639345 fix c&p typo.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_class_init): fix c&p typo.

	* gal/widgets/e-categories-master-list-dialog.c: switch to
	GtkDialogism's.

	* gal/widgets/gal-categories.[ch]: same.

	* gal/widgets/e-categories-master-list-dialog.glade: libglade-convert.

	* gal/widgets/e-categories.glade: same.

	* gal/util/e-text-event-processor.[ch]: subclass this from
	GObject.

	* gal/util/e-text-event-processor-emacs-like.[ch]: clean up the
	gtk cruft a bit.

	* gal/e-text/e-text.c (_get_tep): remove the _sink call.
	(e_text_init): same.

	* gal/e-text/e-text-model.[ch]: subclass this from GObject instead
	of GtkObject.

svn path=/trunk/; revision=18808
2002-11-17 05:40:18 +00:00
7ffb70dc82 fix c&p typo.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_class_init): fix c&p typo.

svn path=/trunk/; revision=18806
2002-11-17 01:44:53 +00:00
183eb85406 lots of GObject work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/color-group.c: lots of GObject work.

	* gal/widgets/color-palette.[ch]: same.

	* gal/widgets/e-canvas-backgruond.[ch]: same.

	* gal/widgets/e-canvas-vbox.[ch]: same.

	* gal/widgets/e-canvas.[ch]: same.

	* e-categories-master-list-array.[ch]: same.

	* e-categories-master-list-combo.[ch]: same.

	* e-categories-master-list-dialog-model.[ch]: same.

	* e-categories-master-list-dialog.[ch]: same.

	* e-categories-master-list-option-menu.[ch]: same.

	* e-categories-master-list.[ch]: same.

	* e-categories.[ch]: same.

	* e-file-selection.[ch]: same.

	* e-gui-utils.c: same.

	* e-hscrollbar.[ch]: same.

	* e-option-menu.[ch]: same.

	* e-popup-menu.[ch]: same.

	* e-printable.[ch]: same.

	* e-reflow-sorted.[ch]: same.

	* e-reflow.[ch]: same.

	* e-scroll-frame.[ch]: same.

	* e-vscrollbar.[ch]: same.

	* gtk-combo-box.[ch]: same.

	* gtk-combo-stack.[ch]: same.

	* gtk-combo-text.[ch]: same.

	* test-e-font.c: same.

	* widget-color-combo.[ch]: same.

	* widget-pixmap-combo.[ch]: same.

svn path=/trunk/; revision=18798
2002-11-16 23:42:18 +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
b7c86285a3 (esma_dispose): g_object_unref() instead of gtk_object_unref().
(esma_dispose):
g_object_unref() instead of gtk_object_unref().

svn path=/trunk/; revision=18779
2002-11-15 16:36:30 +00:00
b39be53775 deal with EBitArray/ESorter being a GObject now.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-selection-model-array.c: deal with
	EBitArray/ESorter being a GObject now.

	* gal/widgets/e-selection-model-simple.c: same.

	* gal/util/e-bit-array.[ch]: this derives from GObject now.

	* gal/util/e-sorter.[ch]: same.

	* gal/util/e-sorter-array.[ch]: same.

svn path=/trunk/; revision=18774
2002-11-15 02:47:18 +00:00