aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
Commit message (Collapse)AuthorAgeFilesLines
* Bug #591436 - Add -avoid-version to LDFLAGSH. Habighorst2012-02-151-1/+1
|
* Introduce libemail-engine and libemail-utils.Matthew Barnes2012-01-191-0/+1
| | | | | | | These libraries are bound for E-D-S so they live at the lowest layer of Evolution for now -- even libeutil can link to them (but please don't). This is the first step toward moving mail handing to a D-Bus service.
* Bug #661434 - Unfriendly search resultMilan Crha2011-10-112-1/+6
|
* Simplify library dependency flags.Matthew Barnes2011-10-051-3/+4
| | | | | | | | | We have a confusing array of nearly-identical CFLAGS/LIBS definitions in configure.ac. Time to simplify. Instead let's just have one definition that includes all the libraries provided by Evolution-Data-Server (incl. Camel). That, in combination with GNOME_PLATFORM, gives us most of what we need for compliation and linking, and we can sprinkle definitions for additional library dependencies in Makefile.am's as needed.
* Fix few 'may be used uninitialized' compiler warningsMilan Crha2011-09-301-1/+1
|
* Remove Ctrl + l ( ) character from source filesPaul Menzel2011-09-302-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From ccc980da1fd84ebfca25cf8caf9a5d62333099fc Mon Sep 17 00:00:00 2001 From: Paul Menzel <paulepanter@users.sourceforge.net> Date: Wed, 28 Sep 2011 10:18:18 +0200 Subject: [PATCH] Remove Ctrl + l ( ) character from source files The following commits git show aac3f2c8 git show 1510304c git show 13cabd9e git show 350a7a33 git show 9b7cc54d git show e6972011 git show 1d3a7938 git show 934524b9 git show b2954936 git show a7f677b5 git show 4369c400 git show d509f47a git show a6d5818f git show c3876df7 git show 4583098b git show 2831ada5 git show 4e1bce59 git show 1609f699 git show 4e4c1676 git show d6fade43 among others(?) introduced several occurrences of Ctrl + l ( ). Probably this was caused by the used editor. These control characters can be searched for using the following command [1]. $ git grep ^L [1] http://unstableme.blogspot.com/2009/10/grep-and-print-control-characters-in.html
* Coding style and whitespace cleanup.Matthew Barnes2011-09-047-207/+322
|
* Coding style and whitespace cleanups.Matthew Barnes2011-06-092-56/+64
|
* Including <glib-object.h> directly is rarely needed.Matthew Barnes2011-05-284-4/+0
|
* Bug #646109 - Fix use of include <config.h> to make sure translations workMilan Crha2011-05-277-0/+19
|
* Coding style and whitespace cleanup.Matthew Barnes2011-05-222-6/+9
|
* Bug 649990 - Remove get_font_options() from e-util.c.Matthew Barnes2011-05-171-9/+0
| | | | | | | | | Not only is get_font_options() no longer needed, it's actually doing the wrong thing by reading settings through GConfClient instead of GSettings. But it turns out, thanks to the tighter Cairo integration in GTK3, the widgets that call get_font_options() can be made to work correctly by simply removing this hack. Love it when that happens.
* Coding style cleanups.Matthew Barnes2011-05-091-3/+3
|
* Whitespace and coding style cleanups.Matthew Barnes2011-05-083-10/+21
|
* Use G_SIGNAL_TYPE_STATIC_SCOPE for all GdkEvent signal params.Matthew Barnes2011-02-251-2/+3
| | | | | I thought this might be the cause of bug #643089. Turns out it wasn't, but it's a good thing to do anyway.
* Remove NULL checks for GObject methods.Matthew Barnes2011-02-132-4/+4
| | | | | As of GLib 2.28 all GObject virtual methods, including constructed(), are safe to chain up to unconditionally. Remove unnecessary checks.
* Bug 641756 - Fix warnings from GCC 4.6Kjartan Maraas2011-02-091-2/+0
| | | | GCC learned how to find dead assignments.
* More whitespace cleanup.Matthew Barnes2011-01-314-134/+134
|
* Coding style and whitespace cleanup.Matthew Barnes2011-01-301-38/+49
|
* Adapt EReflow to latest gtk+-3.0 API.Matthew Barnes2011-01-261-11/+12
|
* Adapt EText to latest gtk+-3.0 API.Matthew Barnes2011-01-261-25/+21
|
* gdk_cursor_unref() -> g_object_unref()Matthew Barnes2011-01-252-4/+4
|
* Drop backward-compatibility cruft.Matthew Barnes2011-01-252-8/+2
|
* Remove some unused gnome-canvas options.Matthew Barnes2011-01-161-13/+5
| | | | | | | | | | | | | Simplifies the drawing code a bit. Public API removed: GnomeCanvas.center_scroll_region (is always TRUE) GnomeCanvas.pixels_per_unit (is always 1.0) gnome_canvas_set_center_scroll_region() gnome_canvas_get_center_scroll_region() gnome_canvas_set_pixels_per_unit()
* Fudge GtkScrollable for gtk2.Matthew Barnes2011-01-151-10/+13
| | | | | | Yes, the GtkScrollable interface is implemented by more than just GtkLayout, but it turns out GtkLayout is the only thing Evolution uses the GtkScrollable API for on the gtk3 branch.
* Bug #371705 - Calendar's day view does not reset its IM contextMilan Crha2010-11-231-48/+39
|
* Coding style and whitespace cleanup.Matthew Barnes2010-11-081-7/+7
|
* Add forgotten cairo_destroy() callsMilan Crha2010-11-021-1/+5
|
* Fix typo in EText.Matthew Barnes2010-10-301-2/+2
| | | | Fill color properties should be write-only, not read-only.
* e-text: Draw EReflow with cairoBenjamin Otte2010-10-301-7/+13
|
* e-text: Fix color handlingBenjamin Otte2010-10-302-27/+13
| | | | | | | - "color" and "color-gdk" properties aren't readable (Their values would be wrong if an alpha channel was set). - Use the rgba color when rendering - Don't allocate the color in the colormap anymore.
* e-text: Draw with cairoBenjamin Otte2010-10-302-80/+27
|
* e-text: Use gdk_pango_layout_get_clip_region() for selection renderingBenjamin Otte2010-10-301-58/+19
|
* gnome-canvas: Convert canvas item transformation matrix to cairoBenjamin Otte2010-10-302-5/+5
| | | | | Also update the GnomeCanvasItem.update vfunc to take a cairo_matrix_t and no longer pass the clip_path (what was it used for anyway?).
* e-text: Only include libgnomecanvas.hBenjamin Otte2010-10-303-3/+2
|
* gnome-canvas: Change GnomeCanvasItem->point vfuncBenjamin Otte2010-10-302-20/+12
| | | | | | | | Previously the function returned the distance to the nearest item. Now it only returns an item that is hit. This slightly changes semantics (button events are no longer dispatched to the nearest item, but only to the item actually clicked on), but makes the code way simpler and actually does what one would expect.
* gnome-canvas: Remove close_enough memberBenjamin Otte2010-10-301-1/+1
| | | | It's never set, so just replace it with its default value 0 everywhere.
* e-text: Remove stippling codeBenjamin Otte2010-10-302-48/+0
|
* gnome-canvas: Remove aa codeBenjamin Otte2010-10-301-21/+18
| | | | The anti-aliased code was never used, so remove it.
* Drop usage of GtkAnchorType.Matthew Barnes2010-10-273-103/+0
| | | | gtk+-3.0 removed it for being "unused".
* Memory leaks around g_value_set_stringMilan Crha2010-10-221-3/+3
|
* Bug #630504 - Precache collate keys before sorting in EReflowModelMilan Crha2010-10-203-7/+43
|
* Bug #631320 - GtkObject is gone in GTK3Milan Crha2010-10-071-4/+4
|
* Coding style and whitespace cleanup.Matthew Barnes2010-10-041-2/+6
|
* Use new GDK keysym names if available.Matthew Barnes2010-09-182-3/+5
| | | | | | | In GTK+ 2.21.8, the keysym names were renamed from GDK_* to GDK_KEY_*. I've added backward-compatibility macors to gtk-compat.h, which can be dumped as soon as we require GTK+ >= 2.22.0.
* Coding style and whitespace cleanups.Matthew Barnes2010-09-124-237/+237
|
* Various memory leaksMilan Crha2010-09-081-0/+3
|
* Coding style and whitespace cleanup.Matthew Barnes2010-07-123-71/+151
|
* Work around sudden disappearance of GdkRegion in GTK+ 2.90.5.Matthew Barnes2010-06-301-0/+1
| | | | API was deprecated and removed in less than two hours! Sheesh!
* Coding style and whitespace cleanup.Matthew Barnes2010-06-203-31/+50
|
* Fix all remaining GTK3 issues.Matthew Barnes2010-06-161-3/+3
| | | | | | | | | | | | Work around the issue of GnomeCanvasItem amending its own flags to GtkObject::flags (which is sealed) by giving it its own flags field. This breaks libgnomecanvas ABI and API, but I see no other way. This commit didn't work the first time because gnome-pilot libraries were still pulling in the system-wide libgnomecanvas, and that was interfereing with our bundled version which has a different ABI. But gnome-pilot integration was dropped in the previous commit, so everything is now using the bundled libgnomecanvas.
* Revert "Fix all remaining GTK3 issues."Matthew Barnes2010-06-151-3/+3
| | | | | | | This reverts commit fd8b55edaa88906b588aa07d9eadcacd34a7a774. Something in this commit seriously hosed ETable, making Evolution pretty much unusable. Reverting this until I can track down the problem.
* Drop the "2" from libgnomecanvas and libart_lgpl.Matthew Barnes2010-06-151-1/+1
|
* Add some missing linker flags.Matthew Barnes2010-06-151-6/+7
|
* Fix all remaining GTK3 issues.Matthew Barnes2010-06-151-3/+3
| | | | | | Work around the issue of GnomeCanvasItem amending its own flags to GtkObject::flags (which is sealed) by giving it its own flags field. This breaks libgnomecanvas ABI and API, but I see no other way.
* Remove 3 leftover references to non-existing librariesFridrich Štrba2010-04-231-4/+0
|
* Giant leap towards GSEAL compliance.Matthew Barnes2010-04-083-68/+141
|
* Bug #325121 - Do not translate developer strings in g_param_spec_*Milan Crha2010-04-022-82/+80
|
* Work around recent GTK+ deprecations.Matthew Barnes2010-03-051-0/+12
|
* Coding style and whitespace cleanup.Matthew Barnes2010-01-317-109/+109
|
* Remove dead assignments found by clang.Matthew Barnes2010-01-161-2/+0
|
* Remove unused tooltip support from ECanvas/ETable/EText.Matthew Barnes2010-01-151-298/+0
|
* Baby steps toward GSEAL compliance.Matthew Barnes2010-01-141-53/+103
|
* Bug 606250 - Remove usage of deprecated GTK+ symbolsMatthew Barnes2010-01-081-2/+2
| | | | Several GtkWidget macros were recently deprecated.
* Bug 596848 - Use per-target CPPFLAGS in automake filesH.Habighorst2009-10-011-4/+4
|
* Remove a bunch of unused functions.Matthew Barnes2009-09-152-32/+0
|
* More whitespace cleanup.Matthew Barnes2009-07-192-21/+21
|
* Fix excessive whitespace.Matthew Barnes2009-07-1411-48/+0
|
* Merge branch 'master' into kill-bonoboMatthew Barnes2009-07-011-0/+4
|\
| * Use AM_CPPFLAGS instead of INCLUDE in all Makefile.am.Matthew Barnes2009-07-011-1/+1
| |
| * Stop abusing forward declarations.Matthew Barnes2009-06-191-3/+2
| |
| * More code cleanup.Matthew Barnes2009-06-022-8/+8
| |
| * Whitespace cleanup.Matthew Barnes2009-05-292-12/+12
| |
| * Prefer GLib basic types over C types.Matthew Barnes2009-05-294-102/+102
| |
| * Remove trailing whitespace, again.Matthew Barnes2009-05-296-9/+9
| |
* | Fix "make distcheck" errors and other build cleanups.Matthew Barnes2009-07-011-1/+1
| |
* | Radically reorganize source code.Matthew Barnes2009-06-256-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Collect all shell modules into a new top-level 'modules' directory: $(top_srcdir)/modules/addressbook $(top_srcdir)/modules/calendar $(top_srcdir)/modules/mail Nothing is allowed to link to these, not plugins nor other modules. THIS SOLVES BUG #571275 AND OPENS THE DOOR TO PORTING TO MAC OS X. - Mimic the libevolution-mail-shared library from master (except drop the "shared" suffix) and have libevolution-mail-importers and all mail-related plugins link to it. - Discard the a11y subdirectories and have the files live alongside their counterpart widgets.
* | Stop abusing forward declarations.Matthew Barnes2009-06-191-3/+2
| |
* | Use G_BEGIN_DECLS / G_END_DECLS macros.Matthew Barnes2009-06-182-13/+4
| |
* | More code cleanup.Matthew Barnes2009-06-024-18/+18
| |
* | Whitespace cleanup.Matthew Barnes2009-05-294-27/+27
| |
* | Prefer GLib basic types over C types.Matthew Barnes2009-05-279-239/+239
| |
* | Merge branch 'master' into kill-bonoboMatthew Barnes2009-05-2714-25/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: a11y/widgets/ea-combo-button.c a11y/widgets/ea-combo-button.h addressbook/gui/component/addressbook-component.c addressbook/gui/component/addressbook-component.h addressbook/gui/component/addressbook-view.c addressbook/gui/component/addressbook-view.h addressbook/gui/component/component-factory.c addressbook/gui/widgets/e-addressbook-view.c addressbook/gui/widgets/eab-contact-display.c addressbook/gui/widgets/eab-gui-util.h addressbook/gui/widgets/eab-menu.c addressbook/gui/widgets/eab-menu.h addressbook/gui/widgets/eab-popup-control.c addressbook/gui/widgets/eab-popup-control.h addressbook/gui/widgets/eab-popup.c addressbook/gui/widgets/eab-popup.h calendar/gui/cal-search-bar.c calendar/gui/calendar-commands.c calendar/gui/calendar-component.c calendar/gui/comp-editor-factory.c calendar/gui/comp-editor-factory.h calendar/gui/control-factory.c calendar/gui/dialogs/comp-editor.c calendar/gui/e-cal-component-memo-preview.c calendar/gui/e-cal-component-memo-preview.h calendar/gui/e-calendar-table.c calendar/gui/e-memo-table.c calendar/gui/e-memos.c calendar/gui/e-tasks.c calendar/gui/gnome-cal.c calendar/gui/gnome-cal.h calendar/gui/itip-bonobo-control.c calendar/gui/itip-bonobo-control.h calendar/gui/main.c calendar/gui/memos-component.c calendar/gui/memos-control.c calendar/gui/memos-control.h calendar/gui/migration.c calendar/gui/migration.h calendar/gui/tasks-component.c calendar/gui/tasks-control.c calendar/importers/main.c composer/Makefile.am composer/e-composer-header-table.c composer/e-composer-header.c composer/e-composer-header.h composer/e-composer-name-header.c composer/e-composer-private.c composer/e-composer-text-header.c composer/e-msg-composer.c composer/e-msg-composer.h e-util/e-corba-utils.h e-util/e-logger.c e-util/e-logger.h e-util/e-util-labels.c e-util/e-util-labels.h em-format/em-format.c mail/Makefile.am mail/e-mail-shell-migrate.c mail/em-account-editor.c mail/em-account-editor.h mail/em-composer-prefs.c mail/em-composer-utils.c mail/em-composer-utils.h mail/em-folder-browser.c mail/em-folder-tree-model.c mail/em-folder-tree.c mail/em-folder-tree.h mail/em-folder-utils.c mail/em-folder-utils.h mail/em-folder-view.c mail/em-format-html-display.c mail/em-format-html.c mail/em-mailer-prefs.c mail/em-mailer-prefs.h mail/em-message-browser.c mail/em-message-browser.h mail/em-network-prefs.h mail/em-popup.c mail/em-utils.c mail/importers/Makefile.am mail/mail-component-factory.c mail/mail-component.c mail/mail-config-factory.c mail/mail-config-factory.h mail/mail-config.c mail/mail-dialogs.glade mail/mail-types.h plugins/calendar-weather/calendar-weather.c plugins/mail-account-disable/mail-account-disable.c plugins/select-one-source/select-one-source.c po/POTFILES.in shell/e-component-registry.c shell/e-component-registry.h shell/e-component-view.c shell/e-component-view.h shell/e-corba-config-page.c shell/e-corba-config-page.h shell/e-shell-constants.h shell/e-shell-settings-dialog.c shell/e-shell-settings-dialog.h shell/e-shell-window-commands.c shell/e-shell-window.c shell/e-shell.h shell/e-sidebar.c shell/e-sidebar.h shell/e-user-creatable-items-handler.c shell/e-user-creatable-items-handler.h shell/es-menu.c shell/es-menu.h shell/evolution-component.h shell/evolution-config-control.c shell/evolution-config-control.h shell/evolution-listener.c shell/evolution-listener.h shell/evolution-shell-component-utils.c shell/evolution-shell-component-utils.h shell/importer/evolution-importer-client.c shell/importer/evolution-importer-client.h shell/importer/evolution-importer-listener.c shell/importer/evolution-importer-listener.h shell/importer/evolution-importer.c shell/importer/evolution-importer.h shell/importer/evolution-intelligent-importer.c shell/importer/evolution-intelligent-importer.h shell/importer/intelligent.c shell/main.c shell/test/evolution-test-component.c shell/test/evolution-test-component.h widgets/menus/gal-view-instance.c widgets/menus/gal-view-menus.c widgets/menus/gal-view-menus.h widgets/misc/Makefile.am widgets/misc/e-activity-handler.c widgets/misc/e-activity-handler.h widgets/misc/e-charset-picker.c widgets/misc/e-combo-button.c widgets/misc/e-combo-button.h widgets/misc/e-config-page.h widgets/misc/e-dropdown-button.c widgets/misc/e-dropdown-button.h widgets/misc/e-filter-bar.c widgets/misc/e-info-label.c widgets/misc/e-info-label.h widgets/misc/e-multi-config-dialog.c widgets/misc/e-multi-config-dialog.h widgets/misc/e-search-bar.c widgets/misc/e-search-bar.h widgets/misc/e-task-bar.c widgets/misc/e-task-bar.h widgets/misc/e-task-widget.c widgets/misc/e-task-widget.h widgets/misc/test-dropdown-button.c widgets/misc/test-error.c widgets/misc/test-info-label.c widgets/table/e-table-example-1.c
| * | Remove trailing whitespace, again.Matthew Barnes2009-05-276-9/+9
| |/
| * Fix compiler warnings in widgets.Matthew Barnes2009-05-262-8/+6
| |
* | Use -no-undefined on Linux tooMilan Crha2009-05-2010-11/+3498
|/ | | | | There still left two things opened, search for KILL-BONOBO to find them. One is in calendar's Makefile.am, one in composer.
* ** BUGFIX: 573830 - g_timeout_add_seconds should be preferred to g_timeout_addMarcel Stimberg2009-05-041-1/+1
| | | | | | According to https://wiki.ubuntu.com/SavingTheWorld (and of course according to the gtk docs) using g_timeout_add_seconds is preferred over g_timeout_add if a timeout in seconds is desired.
* Use Behdad's brilliant git.mk to generate .gitignore files.Matthew Barnes2009-05-021-0/+2
|
* Only #include specific libgnome[ui] headers; easier to track.Matthew Barnes2009-05-012-265/+0
| | | | | | | | Stop including top-level libgnome[ui] headers -- <gnome.h>, <libgnome/libgnome.h> and <libgnomeui/libgnomeui.h>. Instead, include specific header files so we can track them easier. Also, remove several unshipped test programs. Mostly ETable stuff.
* Commit the rest of the attachment UI rewriteMatthew Barnes2009-04-281-0/+2
| | | | | Oops, last commit only included the -new- files. This also removes EExpander, which is no longer used.
* Bug 577929 – Consolidate marshallersMatthew Barnes2009-04-232-3/+3
| | | | | | Consolidate all marshalling specifications to e-util/e-marshal.list. This reduces code duplication and makes it slightly easier to locate unused marshallers.
* ** Fixes bug #576694Matthew Barnes2009-03-251-2/+6
| | | | | | | | | | | | | 2009-03-25 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #576694 * widgets/table/e-cell-text.c (build_layout): * widgets/text/e-text.c (reset_layout): Handle absolute font sizes correctly. svn path=/trunk/; revision=37474
* ** Fixes bug #571734Matthew Barnes2009-02-151-3/+0
| | | | | | | | | | | | 2009-02-14 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #571734 * widgets/text/e-text.c: Remove unneeded #include <libart_lgpl/...>. svn path=/trunk/; revision=37271
* ** Fixes bug #559041Matthew Barnes2008-11-031-0/+2
| | | | | | | | | | | | 2008-11-03 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #559041 * widgets/text/e-text.c (e_text_class_init): Add translator comment for "im_context" property. svn path=/trunk/; revision=36725
* License changes.Sankarasivasubramanian Pasupathilingam2008-10-182-5/+6
| | | | svn path=/trunk/; revision=36641
* Change licese from GPL to LGPL.Sankarasivasubramanian Pasupathilingam2008-10-031-15/+17
| | | | svn path=/trunk/; revision=36539
* License Changes from GPL to LGPLSankarasivasubramanian Pasupathilingam2008-09-131-16/+17
| | | | svn path=/trunk/; revision=36313
* Change License from GPL to LGPL. 2nd batch.Sankarasivasubramanian Pasupathilingam2008-09-033-47/+46
| | | | | | More changes to come. svn path=/trunk/; revision=36247
* License ChangesSankarasivasubramanian Pasupathilingam2008-08-272-32/+32
| | | | svn path=/trunk/; revision=36116
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-217-7/+7
| | | | svn path=/trunk/; revision=35665
* ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES andMatthew Barnes2008-06-062-3/+2
| | | | | | | | | | 2008-06-06 Matthew Barnes <mbarnes@redhat.com> ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES and GTK_DISABLE_SINGLE_INCLUDES defined. (#536637) svn path=/trunk/; revision=35606
* gdk_rgb_get_cmap -> gdk_rgb_get_colormapKjartan Maraas2008-06-042-3/+3
| | | | | | | | | | 2008-06-03 Kjartan Maraas <kmaraas@gnome.org> * text/e-text-model-test.c: (main): * text/e-text-test.c: (main): gdk_rgb_get_cmap -> gdk_rgb_get_colormap svn path=/trunk/; revision=35589
* ** Fixes bug #534360Matthew Barnes2008-05-231-1/+1
| | | | | | | | | | | | 2008-05-22 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #534360 Migrate from deprecated GtkObject symbols to GObject equivalents. Touches over 150 files in all components; too many to list. svn path=/trunk/; revision=35526
* ** Fix for bug #529893Danny Baumann2008-04-251-0/+1
| | | | | | | | | | | | | | | | | | | 2008-04-25 Danny Baumann <dannybaumann@web.de> ** Fix for bug #529893 * widgets/misc/e-dateedit.c (create_children): * widgets/misc/e-combo-cell-editable.c (build_popup): * widgets/misc/e-cell-date-edit.c (e_cell_date_edit_init): * widgets/table/e-table-header-item.c: (make_shaped_window_from_xpm): * widgets/table/e-cell-combo.c: (e_cell_combo_init): * widgets/table/e-cell-text.c: (ect_show_tooltip): * widgets/text/e-text.c: (_do_tooltip): * calendar/gui/e-calendar-view.c: (e_calendar_view_get_tooltips): Properly set type hints for popup windows. svn path=/trunk/; revision=35416
* ** Fix for bug #383438Milan Crha2008-02-201-1/+1
| | | | | | | | | | | | 2008-02-19 Milan Crha <mcrha@redhat.com> ** Fix for bug #383438 * text/e-text.c: (e_text_point): Report "mouse over" even with no text entered. svn path=/trunk/; revision=35056
* Fix a compiler warning.Matthew Barnes2008-02-031-52/+0
| | | | | | | | | | | | | | | 2008-02-03 Matthew Barnes <mbarnes@redhat.com> * pluginsattachment-reminder.c (org_gnome_evolution_attachment_reminder): Fix a compiler warning. * widgets/text/e-text.c (update_im_cursor_position): * widgets/text/e-text.c (e_text_get_cursor_locations): Remove these unused functions to silence compiler warnings. svn path=/trunk/; revision=34952
* Patch from Mayank Jain <mayank.gnu@gmail.com> ** Fix for bug #348638 ↵Suman Manjunath2008-01-141-16/+24
| | | | | | (Cleanly remove pre-edit buffer on pressing backspace in day-view, for non-ascii characters as well) svn path=/trunk/; revision=34809
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-158-114/+114
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* ** Fix for bug #341085Milan Crha2007-11-051-5/+5
| | | | | | | | | | | | | | | 2007-11-05 Milan Crha <mcrha@redhat.com> ** Fix for bug #341085 * calendar/gui/e-day-view.c: (e_day_view_reshape_day_event): Use 'x_offset' instead of changing event size when has icons. * widgets/text/e-text.c: (get_bounds), (e_text_draw): Use 'x_offset' and 'y_offset' only for text drawing, not for changing bounds of EText. svn path=/trunk/; revision=34504
* text/e.entry.[ch] text/e-completion.[ch] text/e-text-model-uri.[ch]Kjartan Maraas2007-10-3117-3989/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-26 Kjartan Maraas <kmaraas@gnome.org> * e-timezone-dialog/e-timezone-dialog.c: (get_local_offset), (get_local_timezone), (on_map_visibility_changed), (on_map_button_pressed), (get_zone_from_point), (e_timezone_dialog_set_timezone), (on_combo_changed): * menus/gal-view-factory.c: (gal_view_factory_get_title): * text/Makefile.am: * text/e-text.c: (e_text_event), (popup_targets_received), (next_word), (find_offset_into_line), (_get_position), (e_text_class_init): * text/e.entry.[ch] * text/e-completion.[ch] * text/e-text-model-uri.[ch] * text/e-completion-view.[ch] * text/e-completion-callbacks.[ch] * text/e-completion-match.[ch] * text/e-table-text-model.[ch]: Remove all of these. They are now unused. Warning fixes: - NULL vs 0 vs FALSE - ANSIfication of function declarations svn path=/trunk/; revision=34468
* ** Fixes bug #437579Matthew Barnes2007-10-101-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-09 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #437579 * addressbook/conduit/address-conduit.c: * addressbook/gui/component/addressbook-config.c: * addressbook/gui/contact-editor/e-contact-editor.c: * addressbook/gui/widgets/eab-gui-util.c: * calendar/conduits/calendar/calendar-conduit.c: * calendar/conduits/memo/memo-conduit.c: * calendar/conduits/todo/todo-conduit.c: * calendar/gui/dialogs/alarm-dialog.c: * calendar/gui/dialogs/event-page.c: * calendar/gui/dialogs/memo-page.c: * calendar/gui/dialogs/task-page.c: * calendar/gui/e-day-view-layout.c: * calendar/gui/e-day-view-layout.h: * calendar/gui/print.c: * e-util/e-pilot-map.c: * e-util/e-plugin.c: * e-util/e-profile-event.c: * e-util/e-signature.c: * filter/filter-file.c: * mail/e-searching-tokenizer.c: * mail/em-folder-browser.c: * mail/em-format-html.c: * mail/em-format-view.c: * mail/em-format.c: * mail/em-mailer-prefs.c: * mail/em-mailer-prefs.h: * mail/mail-session.c: * mail/mail-session.h: * mail/mail-vfolder.c: * mail/message-list.c: * plugins/bbdb/bbdb.c: * plugins/bbdb/gaimbuddies.c: * plugins/calendar-http/calendar-http.c: * plugins/exchange-operations/exchange-user-dialog.c: * plugins/face/face.c: * shell/e-shell-window.c: * shell/e-shell.c: * smime/lib/e-cert-db.c: * tools/killev.c: * widgets/misc/e-cursors.c: * widgets/misc/e-spinner.c: * widgets/misc/e-unicode.c: * widgets/table/e-table-field-chooser-item.c: * widgets/table/e-table-header-item.c: * widgets/table/e-table-header-item.h: * widgets/table/e-table-header-utils.c: * widgets/table/e-table.c: * widgets/text/e-text.c: Fix various compiler warnings. Patch from Milan Crha. svn path=/trunk/; revision=34368
* Fix for bug #461195 from Hiroyuki Ikezoe.Matthew Barnes2007-09-285-15/+15
| | | | | | | Use GObject's marshalers whenever possible. svn path=/trunk/; revision=34324
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-0223-46/+46
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* Move away from g_asserts from g_return*.Srinivasa Ragavan2007-08-313-3/+3
| | | | svn path=/trunk/; revision=34142
* ** Fixes bug #309166Matthew Barnes2007-08-241-5/+77
| | | | | | | | | | | | | | | 2007-08-23 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #309166 * text/e-text.c (_get_updated_position): Modified the way movement of cursor is handled across grapheme clusters. * text/e-text.c (_get_position): Uses the new function for forward and backward movement of characters (simple or grapheme clusters). Patch by Mayank Jain. svn path=/trunk/; revision=34083
* ** Fixes bug #303878Matthew Barnes2007-08-242-3/+62
| | | | | | | | | | | | | | | | | | | | 2007-08-23 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #303878 * widgets/text/e-text.h: preedit_pos: new value. * widgets/text/e-text.c: (e_text_get_cursor_locations): New function. Get the cursor locations. (update_im_cursor_position): New function. Set the cursor location to IMContext. (insert_preedit_text): Call update_im_cursor_position when draw preedit text. (e_text_preedit_changed_cb): Set the preedit cursor position to preedit_pos. Patch by Hiroyuki Ikezoe and makuchaku. svn path=/trunk/; revision=34081
* ** Fix for bug #455799Hiroyuki Ikezoe2007-08-041-11/+0
| | | | | | | | | | | | 2007-08-04 Hiroyuki Ikezoe <poincare@ikezoe.net> ** Fix for bug #455799 Remove all .cvsignore and update svn:ignore porperty in whole directories. svn path=/trunk/; revision=33945
* Remove E_MAKE_TYPE macro.Hiroyuki Ikezoe2007-07-288-157/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-27 Hiroyuki Ikezoe <poincare@ikezoe.net> * e-util/e-util.h: Remove E_MAKE_TYPE macro. * e-util/e-bit-array.c: * e-util/e-sorter-array.c: * e-util/e-sorter.c: * e-util/e-text-event-processor-emacs-like.c: * e-util/e-text-event-processor.c: * widgets/menus/gal-define-views-dialog.c: * widgets/menus/gal-define-views-model.c: * widgets/menus/gal-view-collection.c: * widgets/menus/gal-view-etable.c: * widgets/menus/gal-view-factory-etable.c: * widgets/menus/gal-view-factory.c: * widgets/menus/gal-view-instance-save-as-dialog.c: * widgets/menus/gal-view-instance.c: * widgets/menus/gal-view-new-dialog.c: * widgets/menus/gal-view.c: * widgets/misc/e-canvas-background.c: * widgets/misc/e-canvas-vbox.c: * widgets/misc/e-canvas.c: * widgets/misc/e-printable.c: * widgets/misc/e-reflow-model.c: * widgets/misc/e-reflow.c: * widgets/misc/e-selection-model-array.c: * widgets/misc/e-selection-model-simple.c: * widgets/misc/e-selection-model.c: * widgets/table/e-cell-checkbox.c: * widgets/table/e-cell-combo.c: * widgets/table/e-cell-date.c: * widgets/table/e-cell-float.c: * widgets/table/e-cell-hbox.c: * widgets/table/e-cell-number.c: * widgets/table/e-cell-pixbuf.c: * widgets/table/e-cell-popup.c: * widgets/table/e-cell-progress.c: * widgets/table/e-cell-size.c: * widgets/table/e-cell-spin-button.c: * widgets/table/e-cell-text.c: * widgets/table/e-cell-toggle.c: * widgets/table/e-cell-tree.c: * widgets/table/e-cell-vbox.c: * widgets/table/e-cell.c: * widgets/table/e-table-click-to-add.c: * widgets/table/e-table-col.c: * widgets/table/e-table-column-specification.c: * widgets/table/e-table-column.c: * widgets/table/e-table-config-field.c: * widgets/table/e-table-config.c: * widgets/table/e-table-extras.c: * widgets/table/e-table-field-chooser-dialog.c: * widgets/table/e-table-field-chooser-item.c: * widgets/table/e-table-field-chooser.c: * widgets/table/e-table-group-container.c: * widgets/table/e-table-group-leaf.c: * widgets/table/e-table-group.c: * widgets/table/e-table-header-item.c: * widgets/table/e-table-header.c: * widgets/table/e-table-item.c: * widgets/table/e-table-memory-callbacks.c: * widgets/table/e-table-memory-store.c: * widgets/table/e-table-memory.c: * widgets/table/e-table-model.c: * widgets/table/e-table-one.c: * widgets/table/e-table-scrolled.c: * widgets/table/e-table-search.c: * widgets/table/e-table-selection-model.c: * widgets/table/e-table-simple.c: * widgets/table/e-table-sort-info.c: * widgets/table/e-table-sorted-variable.c: * widgets/table/e-table-sorted.c: * widgets/table/e-table-sorter.c: * widgets/table/e-table-specification.c: * widgets/table/e-table-state.c: * widgets/table/e-table-subset-variable.c: * widgets/table/e-table-subset.c: * widgets/table/e-table-without.c: * widgets/table/e-table.c: * widgets/table/e-tree-memory-callbacks.c: * widgets/table/e-tree-memory.c: * widgets/table/e-tree-model.c: * widgets/table/e-tree-scrolled.c: * widgets/table/e-tree-selection-model.c: * widgets/table/e-tree-simple.c: * widgets/table/e-tree-sorted-variable.c: * widgets/table/e-tree-sorted.c: * widgets/table/e-tree-table-adapter.c: * widgets/table/e-tree.c: * widgets/text/e-completion-callbacks.c: * widgets/text/e-completion-view.c: * widgets/text/e-completion.c: * widgets/text/e-entry.c: * widgets/text/e-table-text-model.c: * widgets/text/e-text-model-uri.c: * widgets/text/e-text-model.c: * widgets/text/e-text.c: Use G_DEFINE_TYPE instead of E_MAKE_TYPE. svn path=/trunk/; revision=33864
* Collect all the required package versions in one place and explicitlyMatthew Barnes2007-07-281-2/+2
| | | | | | | | | | | | | 2007-07-27 Matthew Barnes <mbarnes@redhat.com> * configure.in: Collect all the required package versions in one place and explicitly require GTK+ 2.10 or higher. (#380354) * Adapt various Makefile.am files. svn path=/trunk/; revision=33863
* Plugged memory leak.Hiroyuki Ikezoe2007-07-261-0/+5
| | | | | | | | | 2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net> * text/e-text.c: (e_text_dispose): Plugged memory leak. svn path=/trunk/; revision=33848
* Remove needless g_strndup().Hiroyuki Ikezoe2007-07-191-6/+2
| | | | | | * text/e-text.c: (e_text_copy_clipboard): Remove needless g_strndup(). svn path=/trunk/; revision=33819
* Remove needless g_strndup().Hiroyuki Ikezoe2007-07-151-4/+3
| | | | | | * text/e-text.c: (primary_get_cb): Remove needless g_strndup(). svn path=/trunk/; revision=33806
* ** Fixes bug #424562Matthew Barnes2007-05-251-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-24 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #424562 * e-util/eggtrayicon.c: * e-util/eggtrayicon.h: Evolution requires GTK+ 2.10 now so kill this widget. * e-util/Makefile.am: Remove eggtrayicon.c and eggtrayicon.h. * calendar/gui/dialogs/recur-comp.c (recur_component_dialog): * e-util/e-dialog-utils.c (e_notice): * plugins/calendar-weather/calendar-weather.c (e_calendar_weather_location): * widgets/text/e-text.c (e_text_copy_clipboard), (e_text_update_primary_selection), (e_text_paste), (e_text_do_popup): Remove check for obsolete GTK+ version. * gui/alarm-notify/alarm-queue.c: EggTrayIcon is dead; always use GtkStatusIcon. svn path=/trunk/; revision=33573
* Massive code cleanup (bug #429422)Matthew Barnes2007-04-205-32/+30
| | | | svn path=/trunk/; revision=33432
* ** Fixes bug #419524Matthew Barnes2007-03-214-5/+5
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* ** Fixes bug #357216Matthew Barnes2007-02-091-47/+0
| | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-08 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #357216 * widgets/text/e-entry.c: Remove "font", "fontset", and "gdk_font" properties, since they forward gets and sets to non-existant properties in entry->item. * widgets/table/e-table-field-chooser-item.c: * widgets/table/e-table-field-chooser-item.h: * widgets/table/e-table-group-container.c: * widgets/table/e-table-group-container.h: Replace deprecated GdkFont with PangoFontDescription. * widgets/table/e-table-header-item.c: * widgets/table/e-table-header-item.h: Replace deprecated GdkFont with PangoFontDescription. Rename "fontset" property to "font-desc", and change the property type to a boxed PangoFontDescription. svn path=/trunk/; revision=33185
* Fixes bug #357970Matthew Barnes2006-12-041-1/+1
| | | | | | | | | | | 2006-09-27 Matthew Barnes <mbarnes@redhat.com> Fixes bug #357970 * text/e-text.c (e_text_unrealize): Don't call deprecated GLib / GDK functions. svn path=/trunk/; revision=33050
* ** Fixes bug #352450Matthew Barnes2006-09-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-08-23 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #352450 * misc/e-canvas-background.c: * misc/e-cursors.c: * misc/e-map.c: * misc/e-reflow.c: * misc/e-task-widget.c: * misc/gal-combo-box.c: * table/e-cell-text.c: * table/e-cell-toggle.c: * table/e-table-field-chooser-item.c: * table/e-table-field-chooser.c: * table/e-table-header-item.c: * table/e-table-header-utils.c: * table/e-table-item.c: * table/e-table.c: * table/e-tree-memory.c: * table/e-tree-sorted.c: * table/e-tree.c: * table/e-text.c: Replace deprecated GLib and GDK function calls. svn path=/trunk/; revision=32783
* ** Fixes 342313. Use GTK_CHECK_VERSION instead of GTK_2_2.Hiroyuki Ikezoe2006-07-211-4/+4
| | | | | | | ** Fixes 342313. * text/e-text.c: Use GTK_CHECK_VERSION instead of GTK_2_2. svn path=/trunk/; revision=32365
* Added cairo font rendering to ECell and EText.Srinivasa Ragavan2006-07-202-2/+22
| | | | svn path=/trunk/; revision=32359
* Revert the previous patch. Requires rework.Harish Krishnaswamy2006-07-101-67/+2
| | | | | | | | | | 2006-07-10 Harish Krishnaswamy <kharish@novell.com> * table/e-cell-text.c: (ect_unrealize), (build_layout): * text/e-text.c: (reset_layout): Revert the previous patch. Requires rework. svn path=/trunk/; revision=32272
* Added code for Resize Transparency with Cairo drawing. Added code toRajeev ramanathan2006-07-101-2/+67
| | | | | | | | | | 2006-07-10 Rajeev ramanathan <rajeevramanathan_2004@yahoo.co.in> Added code for Resize Transparency with Cairo drawing. Added code to render ECell and EText text items with antialiasing, hinting and sub-pixel ordering with cairo. svn path=/trunk/; revision=32270
* ** Fixes bug #341354. Plugged memory leak.Hiroyuki Ikezoe2006-07-071-0/+1
| | | | | | | | | | 2006-07-06 Hiroyuki Ikezoe <poincare@ikezoe.net> ** Fixes bug #341354. * text/e-text.c: (e_text_preedit_changed_cb): Plugged memory leak. svn path=/trunk/; revision=32252
* damned broken pipes! where's the plummerKjartan Maraas2006-01-301-13/+8
| | | | svn path=/trunk/; revision=31372
* ** Fixes bug #220286Srinivasa Ragavan2006-01-161-1/+27
| | | | | | | | | | | 2006-01-15 Srinivasa Ragavan <sragavan@novell.com> ** Fixes bug #220286 * text/e-text.c: (tooltip_ungrab), (_do_tooltip), (e_text_event): Added a ungrab for keyboard, so that it hides the tooltip. svn path=/trunk/; revision=31185
* Fix code style cruft from the previous commitHarish Krishnaswamy2006-01-111-1/+1
| | | | | | | | 2006-01-11 Harish Krishnaswamy <kharish@novell.com> * Fix code style cruft from the previous commit svn path=/trunk/; revision=31140
* Add the width to the pango layout.Johnny Jacob2006-01-111-2/+4
| | | | | | | | | 2006-01-11 Johnny Jacob <johnnyjacob@gmail.com> * text/e-text.c (e_text_set_property): Add the width to the pango layout. svn path=/trunk/; revision=31138
* On Win32, use bootstrap import library for libemiscwidgets, which hasn'tTor Lillqvist2005-09-281-4/+15
| | | | | | | | | | | | | 2005-09-28 Tor Lillqvist <tml@novell.com> * text/Makefile.am: On Win32, use bootstrap import library for libemiscwidgets, which hasn't been built yet when we come here. Drop several overlapping CFLAGS. EXTRA_GNOME_CFLAGS should be enough. Install in privsolib instead of privlib (no difference on Unix). Use NO_UNDEFINED. Link with all needed libraries to satisfy the -no-undefined used on Windows. svn path=/trunk/; revision=30409
* Resolve #309074Francisco Javier F. Serrador2005-08-221-1/+1
| | | | | | | | 2005-08-21 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * Resolve #309074 svn path=/trunk/; revision=30179
* Added widgets in INCLUDES.Kaushal Kumar2005-06-237-11/+11
| | | | | | | | | | | | 2005-06-23 Kaushal Kumar <kakumar@novell.com> * e-util/Makefile.am, widgets/e-timezone-dialog/Makefile.am, addressbook/gui/search/Makefile.am, plugins/groupwise-features/Makefile.am: Added widgets in INCLUDES. Updated the include paths to use misc instead of widgets/misc. svn path=/trunk/; revision=29574
* Retired GAL from Head. The relevant files have moved inside evolution.Kaushal Kumar2005-06-1718-57/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-17 Kaushal Kumar <kakumar@novell.com> * Retired GAL from Head. The relevant files have moved inside evolution. Thanks to JP Rosevear for performing the cvs surgery. The files have been moved in the following order. evolution/e-util <- gal/gal/util evolution/a11y <- gal/gal/a11y evolution/a11y/e-table <- gal/gal/a11y/e-table evolution/a11y/e-text <- gal/gal/a11y/e-text evolution/widgets/table <- gal/gal/e-table evolution/widgets/text <- gal/gal/e-text evolution/widgets/misc <- gal/gal/widgets evolution/widgets/misc/pixmaps <- gal/gal/widgets/pixmaps evolution/widgets/menus <- gal/gal/menus Following is the summary of changes done to fix the build:- - New files added to cvs repository, - a11y/e-table/Makefile.am - a11y/e-text/Makefile.am - widgets/table/Makefile.am - widgets/text/Makefile.am - widgets/misc/pixmaps/Makefile.am - iconv-detect.h - iconv-detect.c - Updated configure.in. - Updated all the relevant Makefile.am files. - Updated the include paths to replace all gal references. - Updated the marshal list to suit gal files requirements. svn path=/trunk/; revision=29522
* Port to Windows, initial commit:Tor Lillqvist2005-04-2912-47/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-29 Tor Lillqvist <tml@novell.com> Port to Windows, initial commit: * configure.in: Check for Win32, define Automake conditional OS_WIN32. Check for regexec() perhaps in separate -lregex, define REGEX_LIBS if so. Require glib-2.0 >= 2.6 (and thus also gtk+-2.0 >= 2.6) so that we can use the gstdio wrappers for full support of non-ASCII filenames on Win32. Don't use -D_REENTRANT on Win32, has ne special meaning. * gal.pc.in: Require gtk+-2.0 >= 2.6 also here for consistency. * gal-zip.in: New file, used to build zipfile format distribution of gal for Win32. * configure.in * Makefile.am: Add gal-zip(.in). * */Makefile.am * */*.c: Harmonize -I and #include conventions. (Of course, this hasn't anything to do with Windows porting as such, I just got carried away...) Use only -I$(top_srcdir). Use paths to gal headers staring with "gal", except for headers from the same directory as the .c file, which are included as such. Include all gal headers using doublequotes. Sort #includes and remove duplicates and obvious redundancies. Include config.h first without any HAVE_CONFIG_H, then system headers, then other GNOME lib headers, than gal's own headers. Just include gtk.h instead of separate gtk*.h headers. Don't include gi18n.h, include e-i18n.h to use e_gettext() consistently. * gal/Makefile.am: Use -no-undefined on Win32 so that libtool agrees to build a shared library. Because of the bidirectional dependency between libgal and libgal-a11y we can build libgal-a11y sanely as a shared library on Win32, so we don't install any separate libgal-a11y at all. So, on Win32, link the stuff that goes into libgal-a11y also into libgal. Link with REGEX_LIBS. * gal/a11y/Makefile.am: See above. Just build a dummy static libgal-a11y on Win32 (can't convince Automake not to build the library at all on one platform using Automake ifdef, apparently). Then (this is a gross hack) explicitly remove the library after installation in the install-data-local rule. * gal/e-table/Makefile.am * gal/e-table/e-table-config.c: Rename ETABLE_GLADEDIR to GAL_GLADEDIR for consistency. * gal/e-table/e-cell-date.c: No localtime_r() in Microsoft's C library, but its localtime() *is* thread-safe. * gal/e-table/e-cell-text.c * gal/e-table/e-cell-tree.c * gal/e-table/e-cell-vbox.c * gal/e-text/e-text.c * gal/widgets/e-unicode.c: Remove unnecessary inclusion of gdkx.h. * gal/e-table/e-cell-tree.c (ect_realize): Instead of the Xlib macro None (whose value is zero), use the corresponding zero-valued enums from the appropriate GDK type. * gal/e-table/e-table-config.c * gal/e-table/e-table-field-chooser.c * gal/menus/gal-define-views-dialog.c * gal/menus/gal-view-instance-save-as-dialog.c * gal/menus/gal-view-new-dialog.c * gal/widgets/e-categories-master-list-array.c * gal/widgets/e-categories-master-list-dialog.c * gal/widgets/e-categories.c: Use g_build_filename() to construct pathnames at run-time instead of compile-time. On Windows the macros GAL_GLADEDIR and GAL_IMAGESDIR expand to function calls, in order to support installing in a freely chosen location. * gal/e-table/e-table-item.c * gal/e-table/e-cell-vbox.c: Instrad of the Xlib GrabSuccess, use GDK_GRAB_SUCCESS (which has the same value). * gal/e-table/e-table-specification.c (e_table_specification_load_from_file) * gal/e-table/e-table.c (e_table_load_specification) * gal/e-table/e-tree-table-adapter.c (open_file) * gal/menus/gal-view-instance.c (load_current_view) * gal/menus/gal-view-instance.c (load_current_view): On Win32, convert filename to the locale character set before passing to xmlParseFile() which doesn't use UTF-8 filenames. Use gstdio wrappers. * gal/util/Makefile.am: Define GAL_PREFIX as $prefix. Define GAL_LOCALEDIR, GAL_GLADEDIR and GAL_IMAGESDIR also here for e-win32-reloc.c. Include e-win32-reloc.c on Win32. * gal/util/e-iconv.c (e_iconv_init): Use g_win32_getlocale() on Windows. * gal/util/e-util.c * gal/util/e-xml-utils.c: Use g_mkstemp() instead of non-portable mkstemp(). Use GLib pathname manipulation functions. Use gstdio wrappers. * gal/util/e-util-private.h: New file. Contains just Win32 bits for now that redefine the directory names from the Makefile as functions calls. * gal/util/e-win32-reloc.c: New file. Contains a minimal DllMain() and functions to support freely chosen installation location on Windows. * gal/util/e-xml-utils.c: No fsync() in the Microsoft C library. * gal/windgets/Makefile.am: Add -I$(top_srcdir)/gal for consistency with the sibling Makefile.am files. * gal/widgets/e-canvas.c: Instead of the Xlib AlreadyGrabbed, use GDK_GRAB_ALREADY_GRABBED. svn path=/trunk/; revision=29249
* bounds check the selection beginning.Theppitak Karoonboonyanan2005-03-141-4/+4
| | | | | | | | | | 2005-03-14 Theppitak Karoonboonyanan <theppitak@gmail.com> * gal/e-text/e-text.c (e_text_retrieve_surrounding_cb) (e_text_delete_surrounding_cb): bounds check the selection beginning. svn path=/trunk/; revision=29008
* Some code clean work.Harry Lu2005-02-041-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-27 Harry Lu <harry.lu@sun.com> Some code clean work. * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c: (gal_a11y_e_table_click_to_add_init): new function to register type only when a11y is enabled. * gal/a11y/e-table/gal-a11y-e-table-click-to-add.h: * gal/a11y/e-table/gal-a11y-e-table-item.c: (gal_a11y_e_table_item_init): ditto. * gal/a11y/e-table/gal-a11y-e-table.c: (gal_a11y_e_table_init): ditto. * gal/a11y/e-table/gal-a11y-e-table.h: * gal/a11y/e-table/gal-a11y-e-tree.c: (gal_a11y_e_tree_init): ditto. * gal/a11y/e-table/gal-a11y-e-tree.h: * gal/a11y/e-text/gal-a11y-e-text.c: (gal_a11y_e_text_init): ditto. * gal/a11y/e-text/gal-a11y-e-text.h: * gal/a11y/factory.c: useless file removed. * gal/a11y/init.c: useless file removed. * gal/e-text/e-text.c: (e_text_class_init): move a11y registry call to a11y code. svn path=/trunk/; revision=28702
* Don't pass in the "fill_color" property for creating the canvas item forRodney Dawes2005-01-221-1/+0
| | | | | | | | | | | | | 2005-01-21 Rodney Dawes <dobey@novell.com> * gal/e-text/e-text.c (_do_tooltip): Don't pass in the "fill_color" property for creating the canvas item for the tooltip * gal/widgets/e-reflow.c (set_empty): Don't pass in the "fill_color" property for creating the EText canvas item Fixes #9413 svn path=/trunk/; revision=28501
* Bugzilla #63731Suresh Chandrasekharan2004-08-311-2/+32
| | | | | | | | | | | | | | | | 2004-08-29 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Bugzilla #63731 * gal/e-text/e-text.c (insert_preedit_text): For multilple ETexts sharing the same GnomeCanvas im_context, prevent updating all childern in case preedit for one changed. (e_text_event): Don't disconnect the signal to a EText if it is out of focus and still having preedit. Save it and disconnect it when another EText comes into focus. svn path=/trunk/; revision=27085
* Rollback for fix #63731Suresh Chandrasekharan2004-08-262-17/+24
| | | | | | | 2004-08-25 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Rollback for fix #63731 svn path=/trunk/; revision=27028
* Bugzilla #63731Suresh Chandrasekharan2004-08-262-24/+17
| | | | | | | | | | | | | | | | | | | | | 2004-08-25 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Bugzilla #63731 * gal/e-text/e-text.h: Remove unneeded text->im_context_signals_registered. * gal/e-text/e-text.c (e_text_init): Removed text->im_context_signals_registered (e_text_event): Remove text->im_context signals handler connect/disconnect from here. (e_text_set_property): Added them here, now they will be invoked only @ text->im_context creation time, or re-set or at e_text_dispose. Also focus_out events does not affect the signals as they used to. svn path=/trunk/; revision=27024
* [ probable fix for the remaining portion of #45931 ]Chris Toshok2004-08-251-3/+8
| | | | | | | | | | | | 2004-08-23 Chris Toshok <toshok@ximian.com> [ probable fix for the remaining portion of #45931 ] * gal/e-text/e-entry.c (e_entry_show_popup): only return early if we're trying to pop up the view while the entry is unfocused. if we're trying to pop it down, carry on as normal. svn path=/trunk/; revision=27009
* nuke, unnecessary. (e_entry_start_completion): set item_chosen to FALSE.Chris Toshok2004-08-061-20/+6
| | | | | | | | | | | | 2004-08-04 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (e_entry_refresh_popup): nuke, unnecessary. (e_entry_start_completion): set item_chosen to FALSE. (added_cb): nuke, unnecessary. (full_cb): only show the popup if the user hasn't chosen an entry. (activate_cb): set item_chosen to TRUE. svn path=/trunk/; revision=26832
* hardcode the border size. it is hardcoded in e-text as well. Even usingRadek Doulik2004-06-111-5/+7
| | | | | | | | | | | | | | | 2004-06-11 Radek Doulik <rodo@ximian.com> * gal/e-text/e-entry.c (canvas_size_request): hardcode the border size. it is hardcoded in e-text as well. Even using style values in e-text will not help as style values might differ between EText and EEntry. I think it will be best to rewrite EEntry for evo 2.1 so that it derives from GtkEntry and only adds the auto completion feature Fixes part of #42864 svn path=/trunk/; revision=26309
* added castRadek Doulik2004-06-113-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-10 Radek Doulik <rodo@ximian.com> * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c (idle_do_action): added cast * gal/a11y/e-table/gal-a11y-e-cell-tree.c (gal_a11y_e_cell_tree_new): added cast * gal/a11y/e-table/gal-a11y-e-cell.c: added #include <gtk/gtkwindow.h> * gal/e-text/e-text.c (_get_position): removed unused variable * gal/e-text/e-completion.c: #if 0'ed e_completion_sort * tests/test-text.c (create_entry): removed unused variables added #include "gal/widgets/e-canvas-utils.h" added #include "gal/e-text/e-text-model.h" (create_text): removed unused variables (create_ro_text): ditto * tests/test-table-1.c (create_table): added cast * tests/test-completion.c (main): added cast * gal/a11y/e-text/gal-a11y-e-text.c (et_get_text): return NULL if check fails added #include <string.h> for strlen (et_get_text_after_offset): fixed typo defalut --> default (et_get_text_at_offset): ditto (et_get_character_extents): removed unused variables (et_set_selection): ditto (_et_command_cb): added default: label to quiet compiler * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.c (gal_a11y_e_table_click_to_add_factory_create_accessible): return NULL if check fails * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c (idle_do_action): fixed wrong cast (idle_do_action): removed unused variables (etcta_ref_child): return NULL if check fails (gal_a11y_e_table_click_to_add_new): ditto (gal_a11y_e_table_click_to_add_new): removed unused variable * gal/a11y/e-table/gal-a11y-e-table-item-factory.c (gal_a11y_e_table_item_factory_create_accessible): return NULL if fails (gal_a11y_e_table_item_factory_create_accessible): added cast (gal_a11y_e_table_item_factory_create_accessible): removed unused variable * gal/a11y/e-table/gal-a11y-e-table-item.c (eti_dispose): removed unused variable (eti_get_parent): ditto (eti_get_n_children): ditto (eti_ref_child): ditto (eti_get_index_in_parent): ditto (eti_ref_accessible_at_point): return value (NULL) (cell_destroyed): removed unused variable (cell_destroyed): ditto (table_add_row_selection): ditto added #inclued <string.h> for memset, memmove (eti_rows_inserted): removed unused variable (eti_rows_deleted): ditto (eti_header_structure_changed): ditto * gal/a11y/e-table/gal-a11y-e-cell-popup.c (gal_a11y_e_cell_popup_class_init): removed unused variable added #include "gal-a11y-e-cell-registry.h" (popup_cell_action): removed unused variable * gal/a11y/e-table/gal-a11y-e-cell-toggle.c (toggle_cell_action): removed unused variable * gal/a11y/e-table/gal-a11y-e-cell-tree.c: added #include "gal-a11y-e-cell-registry.h" (gal_a11y_e_cell_tree_new): add cast (gal_a11y_e_cell_tree_new): removed unused variable * gal/a11y/e-table/gal-a11y-e-cell-text.c: added #include <string.h> (ect_remove_selection): removed unused variable (ect_copy_text): added cast (ect_delete_text): ditto (ect_paste_text): ditto (ect_init): ditto * gal/a11y/e-table/gal-a11y-e-cell.c (eti_grab_focus): added cast (eti_grab_focus): ditto (eti_grab_focus): return TRUE (grab was successful) added #include <atk/atkstateset.h> * gal/a11y/e-table/gal-a11y-e-tree.c: added #include "gal-a11y-e-table-item.h" (gal_a11y_e_tree_new): removed unused variable * gal/e-text/e-text.c (_do_tooltip): removed unused variable (e_text_event): added cast (primary_clear_cb): removed unused variable (_get_position): ditto (_get_position): ditto #if 0'ed unused prototypes * gal/e-text/e-text-model.c (e_text_model_real_insert_length): removed unused variables * gal/e-text/e-completion.c (e_completion_sort): #if'0 ed, as it's not used anywhere * gal/widgets/e-reflow.c (items_inserted): remove unused variables * gal/widgets/e-categories.c (e_categories_get_property): remove unused variable * gal/widgets/e-categories-master-list-dialog.c (dialog_destroyed): added cast * gal/widgets/e-categories-master-list-combo.c (ecmlc_ecml_changed): remove unused variable * gal/widgets/color-palette.c: include string.h for memset prototype svn path=/trunk/; revision=26289
* process only if len > 0Radek Doulik2004-06-091-30/+33
| | | | | | | | | | 2004-06-09 Radek Doulik <rodo@ximian.com> * gal/e-text/e-text.c (capitalize): process only if len > 0 Fixes #51078 svn path=/trunk/; revision=26270
* [ fixes bug #51897 ]Chris Toshok2004-04-021-11/+19
| | | | | | | | | | | | | | 2004-04-01 Chris Toshok <toshok@ximian.com> [ fixes bug #51897 ] * gal/e-text/e-text.c (insert_preedit_text): only reset the layout attrs if there is some preedit text to insert. also, try getting text->layout's attributes before creating a new list. this will keep us from overwriting existing attributes and wiping out the underlining for objects. svn path=/trunk/; revision=25294
* it's possible to get to this function without the EText ever beingChris Toshok2004-02-031-0/+7
| | | | | | | | | | | 2004-02-03 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_command): it's possible to get to this function without the EText ever being realized. Since we create the layout in realize(), let's just create it here too. Fixes crash bug 46165 (aka "The Bug with a million dups"). svn path=/trunk/; revision=24579
* Use button->time for the mouse click event, so that the popup stays up onRodney Dawes2004-01-281-1/+1
| | | | | | | | | | | 2004-01-27 Rodney Dawes <dobey@ximian.com> * gal/e-text/e-text.c (popup_targets_received): Use button->time for the mouse click event, so that the popup stays up on button release Fixes #47548 svn path=/trunk/; revision=24483
* fix double free of the button event.Chris Toshok2004-01-281-1/+0
| | | | | | | | | 2004-01-27 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (popup_targets_received): fix double free of the button event. svn path=/trunk/; revision=24481
* free event (e_text_do_popup): copy the event so we have good dataJP Rosevear2004-01-071-1/+2
| | | | | | | | | | | 2004-01-06 JP Rosevear <jpr@ximian.com> * gal/e-text/e-text.c (popup_targets_received): free event (e_text_do_popup): copy the event so we have good data Fixes #51956 svn path=/trunk/; revision=24071
* Support for preedit in e-text widgets.Suresh Chandrasekharan2003-10-152-11/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-14 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> * Support for preedit in e-text widgets. * gal/gal/e-text/e-text.c: Added e_text_preedit_changed_cb and insert_preedit_text. * Modified the following functions. (e_text_draw) Calls insert_preedit_text also cursor pos @ the end of text->selection_start + text->preedit_len (e_text_event) Added hooks for preedit_cb (e_text_init) Inits text->preedit_len (e_text_retrieve_surrounding_cb) Removed printf (e_text_delete_surrounding_cb) Correct params for gtk_editable_delete_text to make it work. * gal/gal/e-text/e-text.h: Added preedit_len in struct _EText 2003-09-25 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> * Fix for "44222 task summary entry widget not i18ned". The following files are changed. * gal/gal/e-table/e-cell-text.c: Lots of changes for i18n selection/input support. Added these functions for input method support. (e_cell_text_preedit_changed_cb) (e_cell_text_commit_cb) (e_cell_text_retrieve_surrounding_cb) (e_cell_text_delete_surrounding_cb) (layout_with_preedit) This function inserts the preedit string with the right attribs to the layout text. (build_attr_list) Creates the PangoAttrList with bold/stikeout/underline as applicable for the current ECellText. The following functions are modified. (ect_stop_editing): disconnect signal handlers when editing stops (ect_draw): Changes for including the preedit only to the currently selected row/col. Also display the cursor at the end of preedit text. (ect_event): Connects the IM callbacks to the key press event. Disconnect when not in editing mode. Also a special flag to see when Enter key pressed in preedit mode, the text is committed only not a new row is created. This woks in conjunction with the changes made in the eti_event in e-table-item.c file and e-cell.h. (ect_height): Changes due to parameters changing for generate_layout (ect_enter_edit): Initialization of im_context for a cell text and assoociated flags. (ect_max_width): Changes due to parameters changing for generate_layout. (ect_max_width_by_row): Changes due to parameters changing for generate_layout. (ect_show_tooltip): Changes due to parameters changing for generate_layout. (e_cell_text_construct): check whether paramters are NULL. (get_position_from_xy): Changes due to parameters changing for generate_layout. (_insert): Set the selection_start as the minimum of strlen(edit->text) and selection_start. Used to correct the preedit_string length which may have added to the selection_start. (e_cell_text_view_command): When inserting, if in the preedit mode do not delete the selection. (_selection_get): Set utf8 data instead of string data. (_selection_received): Take in UTF8_ATOM inaddition to GDK_SELECTION_TYPE_STRING. (e_cell_text_view_get_selection): Make utf8 data when acting as a selection source. * gal/e-table/e-cell-text.h : Included <gtk/gtkmenu.h> * gal/e-table/e-cell.h: Added enum E_CELL_PREEDIT to ECellFlags * gal/e-table/e-table-item.c: (eti_event) Changes for not committing the edited text as a seperate row in preedit mode. * gal/e-table/e-table.c: (table_canvas_focus_event_cb) To have proper im_context focus for the ecanvas holding the e-table. svn path=/trunk/; revision=22882
* GalA11yETextFactory should inherit from AtkObjectFactory not AtkObject.Tim Wo2003-09-121-0/+8
| | | | | | | | | | | | | 2003-09-08 Tim Wo <tim.wo@sun.com> * gal/a11y/e-text/gal-a11y-e-text-factory.h: GalA11yETextFactory should inherit from AtkObjectFactory not AtkObject. (#47097). * gal/a11y/e-text/gal-a11y-e-text.c (et_class_init): Set value for "component_parent_iface". (#47097) * gal/e-text/e-text.c (e_text_class_init): Added registration code for GalA11yETextFactory. (#47097) svn path=/trunk/; revision=22551
* filter S-F10 key binding, and show popup menu. (popup_menu_placement_cb):Maxx Cao2003-08-131-4/+48
| | | | | | | | | | | 2003-08-10 Maxx Cao <maxx.cao@sun.com> * gal/e-text/e-text.c (e_text_event): filter S-F10 key binding, and show popup menu. (popup_menu_placement_cb): function added to adjust popup menu position.+ (popup_targets_received): show popup menu in different ways, according to whether it's invoked by mouse click or key binding. svn path=/trunk/; revision=22204
* add missing e_text_copy_clipboard() prototypeDan Winship2003-07-231-0/+1
| | | | | | | * gal/e-text/e-text.h: add missing e_text_copy_clipboard() prototype svn path=/trunk/; revision=21899
* [ fixes several utf8/pango related problems, including bugs #41288,Chris Toshok2003-05-142-284/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-13 Chris Toshok <toshok@ximian.com> [ fixes several utf8/pango related problems, including bugs #41288, #42596, #42604 ] * configure.in (GAL_CURRENT): bump to 3, per mkestner. (GAL_REVISION): drop to 0, per mkestner. * gal/e-text/e-text.c (reset_layout_attrs): we need to convert the start/end bounds of the object to byte indices for the attribute. (reset_layout): in the layout == NULL case don't create the layout then immediately set it again with the same text. also, we need to convert selection_start to a byte index before calling pango_layout_get_cursor_pos. (e_text_draw): remove some #ifdef 0'd code, move the calculation of our initial clip_rect below the xpos/ypos assignments so we don't duplicate the expression. Fix the selection drawing in the multiline case so that it actually works, instead of assuming that all ETexts only have 1 line *boggle*. (get_position_from_xy): this needs to return a utf8 offset. (e_text_copy_clipboard): convert sel_start/sel_end to byte indices before copying. (primary_get_cb): same. (paste_received): validate the input here, and drop the length parameter from e_text_insert. (next_word): convert from an utf8 offset on entry to this function, and return a utf8 offset when we're done. also, remove the call the g_unichar_validate. we validate at all points where text is inserted. (find_offset_into_line): new function used in the backward/forward line code. find the utf8 offset into a line (the number of utf8 characters from a prior \n or beginning of the string.) (_get_position): in general there are lots of changes here because text->selection_start/text->selection_end are utf8 offsets, not byte offsets. fix E_TEP_START_OF_LINE so that hitting Ctrl-a when you're at the beginning of a line doesn't take you to the beginning of the previous line. fix E_TEP_END_OF_LINE in an analogous fashion. for E_TEP_FORWARD_CHARACTER we just increment by 1. for E_TEP_BACKWARD_CHARACTER we just decrement by 1. for E_TEP_BACKWARD_WORD we drop the g_unichar_validate call and simplify things a bit. reimplement E_TEP_FORWARD_LINE/E_TEP_BACKWARD_LINE so they find the current offset into the line, then scan forward/backward for the next/prev line, and put us at the right offset on that line. fix E_TEP_SELECT_WORD so double clicking in the space between words doesn't select both words - if you double click on the trailing edge of the space, it selects the next word. leading edge selects the previous one. for E_TEP_SELECT_ALL use g_utf8_strlen. (e_text_insert): everything that calls this passes a \0 terminated string, so we assume it's \0 terminated (the old code did as well, with calls to strlen) and drop the length parameter. also make sure this is all utf8 happy. (capitalize): use g_utf8_offset_to_pointer instead of just adding text->text and start/end, and remove the validate call. also fix the call to e_text_model_delete and use e_text_model_insert_length instead of e_text_model_insert. (e_text_command): for E_TEP_INSERT, validate the input. for E_TEP_CAPS just use MAX instead of the neat little hack. also, fix the scrolling so that it scrolls properly in both X and Y directions (there are still some hiccups but it's much much better than previously). (e_text_commit_cb): validate the input here. * gal/e-text/e-text-model.c (struct _ETextModelPrivate): just use a GString here and get rid of MAX_LENGTH. (e_text_model_dispose): free GString. (e_text_model_real_validate_position): clean this up a bit. (e_text_model_real_get_text): return the contents of the GString. (e_text_model_real_get_text_length): use g_utf8_strlen here. (e_text_model_real_set_text): convert to GString (e_text_model_real_insert): just call e_text_model_insert_length here instead of duplicating the function. (e_text_model_real_insert_length): convert to utf8/gstring. i.e. convert @position and @length to a bytes and use g_string_insert_len. (e_text_model_real_delete): same, with g_string_erase. (e_text_model_get_text_length): use g_utf8_strlen (e_text_model_strdup_nth_object): convert the length of the object to bytes before copying. (e_text_model_get_nth_object_bounds): calculate start/end properly for u svn path=/trunk/; revision=21163
* Fix prototype. Likewise.Jeremy Katz2003-05-062-2/+2
| | | | | | | | | | 2003-05-05 Jeremy Katz <katzj@redhat.com> * gal/e-text/e-completion-callbacks.c (e_completion_callbacks_new): Fix prototype. * gal/e-text/e-completion-callbacks.h: Likewise. svn path=/trunk/; revision=21110
* Fixed typo in gal/e-text/e-text.c.Christian Neumair2003-05-061-1/+1
| | | | svn path=/trunk/; revision=21105
* return the instantiated object. [bug #42156]Mike Kestner2003-05-021-0/+2
| | | | | | | | | | | | | | | | 2003-05-01 Mike Kestner <mkestner@ximian.com> * gal/e-text/e-completion-callbacks.c (e_completion_callbacks_new): return the instantiated object. [bug #42156] 2003-05-01 Mike Kestner <mkestner@ximian.com> * e-cell-combo.c (e_cell_combo_selection_changed): new (e_cell_combo_init): connect to selection_changed on popup_list (e_cell_combo_do_popup): block selection_changed while popping up [bug #40996] svn path=/trunk/; revision=21042
* gal/e-text/e-text.[ch] : break EFont dependencyMike Kestner2003-04-092-5/+0
| | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> gal/e-text/e-text.[ch] : break EFont dependency svn path=/trunk/; revision=20763
* set handle_popup to TRUE on the EText.Chris Toshok2003-04-043-8/+34
| | | | | | | | | | | | | | | | | | | | | 2003-04-03 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (e_entry_init): set handle_popup to TRUE on the EText. * gal/e-text/e-text.c (e_text_set_property): add setter for handle_popup. (e_text_get_property): add getter for handle_popup. (e_text_event): only do our special popup handling if handle_popup is true. otherwise, pass the event along. (e_text_class_init): install the handle_popup property. (e_text_init): init handle_popup to FALSE, so we get default behavior in most cases. * gal/e-text/e-text.h: add "handle_popup" field, so the user of an EText can decide whether to handle popups themselves. svn path=/trunk/; revision=20664
* emit a keypress signal. yes, i know this might not correspond to a singleChris Toshok2003-04-031-0/+2
| | | | | | | | | 2003-04-03 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_commit_cb): emit a keypress signal. yes, i know this might not correspond to a single keypress, but.. svn path=/trunk/; revision=20659
* ifdef gtk_widget_get_clipboard since we need to build against gtk 2.0.Chris Toshok2003-04-031-3/+24
| | | | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_copy_clipboard): ifdef gtk_widget_get_clipboard since we need to build against gtk 2.0. (e_text_update_primary_selection): same. (e_text_paste): same. (e_text_do_popup): same. svn path=/trunk/; revision=20657
* only connect the signals if !im_context_signals_registered. (e_text_init):Chris Toshok2003-04-032-7/+13
| | | | | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_event): only connect the signals if !im_context_signals_registered. (e_text_init): init im_context_signals_registered = FALSE. * gal/e-text/e-text.c (struct _EText): add im_context_signals_registered. svn path=/trunk/; revision=20656
* just disconnect based on DATA, so we only need 1 call. (e_text_event):Chris Toshok2003-04-031-20/+4
| | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_dispose): just disconnect based on DATA, so we only need 1 call. (e_text_event): same. svn path=/trunk/; revision=20655
* [ either fixes #39702 or comes damn, damn close. also, fixes EText to notChris Toshok2003-04-034-461/+473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> [ either fixes #39702 or comes damn, damn close. also, fixes EText to not suck *nearly* as much. ] * gal/util/e-marshal.list: add NONE:POINTER,INT,OBJECT. * gal/e-text/e-entry.h: (struct _EEntryClass): popup -> populate_popup. * gal/e-text/e-entry.c (proxy_changed): rename, the old name was too damn long. (proxy_activate): same. (proxy_populate_popup): same, and change from popup to populate_popup. (e_entry_init): track change to cb names, and populate_popup. also, pass the ECanvas's im_context to the EText. (e_entry_class_init): POPUP -> POPULATE_POPUP. * gal/e-text/e-text.h (struct _EText): remove the old selection stuff, and add im_context/reset_im_context fields. (struct _ETextClass): popup -> populate_popup. * gal/e-text/e-text.c (e_text_dispose): remove all the GtkInvisible based selection stuff, and disconnect from/unref the im_context. (e_text_set_property): add "im_context" handling. (e_text_get_property): same. (e_text_event): connect/disconnect from the IM context's signals in the FOCUS_CHANGE handler. in the KEY_PRESS/RELEASE handler, use gtk_im_context_filter_keypress if we have an im_context. also, use e_text_do_popup now instead of just emitting the "popup" signal. (e_text_copy_clipboard): new function. (e_text_delete_selection): new function. (e_text_cut_clipboard): new function. (e_text_paste_clipboard): new function. (e_text_select_all): new function. (primary_get_cb): new function, handle requests for the primary selection when we're the owner. (primary_clear_cb): new function, unfinished. (e_text_update_primary_selection): new function. (paste_received): new function, insert pasted text. (e_text_paste): new function, (popup_menu_detach): new function, not needed really. (popup_targets_received): new function, pop up the popup once we have the selection information necessary to sensitize the c/c/p buttons. (e_text_do_popup): new function, request the selection. (e_text_reset_im_context): new function. (e_text_command): for E_TEP_SELECT, call e_text_update_primary_selection. for E_TEP_DELETE/INSERT, _delete_selection -> e_text_delete_selection. for E_TEP_COPY, call e_text_copy_clipboard. for E_TEP_PASTE/E_TEP_GET_SELECTION call e_text_paste. (e_text_class_init): change the "popup" signal to "populate_popup". Also, add the "im_context" property. (e_text_commit_cb): new function. IM context callback. (e_text_retrieve_surrounding_cb): new function. IM context callback. (e_text_delete_surrounding_cb): new function. IM context callback. unfinished. svn path=/trunk/; revision=20653
* stop drawing that annoying focus rectangle.Chris Toshok2003-04-021-1/+1
| | | | | | | | | 2003-04-01 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_draw): stop drawing that annoying focus rectangle. svn path=/trunk/; revision=20626
* [ fixes bug #39508 ] add back in some suitably pango-ized code to getChris Toshok2003-04-021-5/+59
| | | | | | | | | | | 2003-04-01 Chris Toshok <toshok@ximian.com> [ fixes bug #39508 ] * gal/e-text/e-text.c (e_text_command): add back in some suitably pango-ized code to get EText's scrolling horizontally as you move the cursor. svn path=/trunk/; revision=20625
* set the popup to insensitive when we pop it down. hack to force it to loseNot Zed2003-03-271-0/+3
| | | | | | | | | | 2003-03-26 Not Zed <NotZed@Ximian.com> * gal/e-text/e-entry.c (e_entry_show_popup): set the popup to insensitive when we pop it down. hack to force it to lose focus, fix for #39719. svn path=/trunk/; revision=20531
* Added prototype for show_pango_rectangle()Jeffrey Stedfast2003-03-101-0/+3
| | | | | | | | 2003-03-10 Jeffrey Stedfast <fejj@ximian.com> * gal/e-text/e-text.c: Added prototype for show_pango_rectangle() svn path=/trunk/; revision=20233
* fix drawing bugs, and disable the stupid looking focus rect, since I can'tChris Toshok2003-03-081-14/+14
| | | | | | | | | | | | | | 2003-03-07 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_draw): fix drawing bugs, and disable the stupid looking focus rect, since I can't find a theme that uses them. (e_text_event): force redraw in the focus-out case if the cursor is shown (so we can erase it), and also trick ourselves into drawing it immediately (by setting it to FALSE) in the focus-in case. svn path=/trunk/; revision=20223
* Don't unref the GtkInvisible - instead, destroy it.Hans Petter Jansson2003-02-251-2/+2
| | | | | | | | | 2003-02-24 Hans Petter Jansson <hpj@ximian.com> * gal/e-text/e-text.c (e_text_dispose): Don't unref the GtkInvisible - instead, destroy it. svn path=/trunk/; revision=20040
* ignore test-completion.Chris Toshok2003-02-1011-713/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-09 Chris Toshok <toshok@ximian.com> * tests/.cvsignore: ignore test-completion. * tests/test-completion.c: new program, completion test. * tests/Makefile.am (noinst_PROGRAMS): add test-completion. * gal/e-text/Makefile.am: remove e-completion-test from the build here, moving it to ../../tests. * gal/e-text/e-completion.c (e_completion_class_init): we've removed the restart, cancel, clear, and lost signals. Also, we've renamed some so it's easier to tell from the name which it is (virtual func or signal.) (e_completion_dispose): remove call to clear_search_stack, as we don't do auto-refinement anymore. (e_completion_clear): gone. (e_completion_push_search): gone. (e_completion_pop_search): gone. (e_completion_clear_search_stack): gone. (e_completion_refine_search): gone. (e_completion_unrefine_search): gone. (e_completion_begin_search): substantially clear this up, since we don't have the refinement stuff anymore. Also, the call to request_completion is a virtual function call, not a signal. (e_completion_match_count): always return matches->len here, never match_count, which is gone (with the refinement stuff) (e_completion_foreach_match): remove the hit_count stuff. (e_completion_restart): gone. (e_completion_lost_match): gone. (e_completion_end_search): remove the sorting stuff from here (and the call to restart.) the etable sorting stuff will have to take up the slack, but for now there's no reason to restart the search here. * gal/e-text/e-completion.h (struct _ECompletionClass): straighten out what's a virtual function and what's a signal, instead of using signals for both. Also, remove the auto_refine stuff, as it's not used. * gal/e-text/e-completion-view.c (e_completion_view_size_request): make the damn drop down window bigger (100 pixels, or the requisition height, whichever is bigger.) (e_completion_view_disconnect): remove handling for signals that are gone. (restart_completion_cb): gone. (cancel_completion_cb): gone. (clear_completion_cb): gone. (lost_completion_cb): gone. (e_completion_view_construct): track new names of ECompletion signals. * gal/e-text/e-completion-view.h (struct _ECompletionView): remove restart_signal_id, cancel_signal_id, clear_signal_id, and lost_signal_id. * gal/e-text/e-entry.c (get_borders): new function, ala gtkentry. (canvas_size_request): use get_borders instead of computing it here. (e_entry_init): remove duplicate assignment of emulate_label_resize. (e_entry_show_popup): remove some ifdef'ed crap. (e_entry_start_completion): don't cancel the completion before starting again. This keeps the popup from disappearing. * gal/e-text/e-completion-match.c (e_completion_match_construct): no more hit_count. * gal/e-text/e-completion-match.h (struct _ECompletionMatch): remove hit_count. * gal/e-text/e-completion-callbacks.[ch]: new class so we can use callbacks instead of subclassing. svn path=/trunk/; revision=19859
* replaced e scroll frame with gtk scrolled windowRadek Doulik2003-02-051-4/+3
| | | | svn path=/trunk/; revision=19735
* (e_text_dispose): Renamed fromEttore Perazzoli2003-01-231-11/+9
| | | | | | | | e_text_destroy; chain up to ::dispose instead of ::destroy. (e_text_dispose, e_text_class_init): Override ::dispose, not ::destroy. svn path=/trunk/; revision=19577
* reverse part of the patch from 1/15.Chris Toshok2003-01-181-1/+1
| | | | | | | | | 2003-01-17 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (show_pango_rectangle): reverse part of the patch from 1/15. svn path=/trunk/; revision=19510
* pass pango_context_get_language to pango_context_get_metrics.Chris Toshok2003-01-181-1/+2
| | | | | | | | | 2003-01-17 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (canvas_size_request): pass pango_context_get_language to pango_context_get_metrics. svn path=/trunk/; revision=19507
* apply the patch NotZed and I came up with to fix the height of theChris Toshok2003-01-161-5/+6
| | | | | | | | | | 2003-01-15 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (show_pango_rectangle): apply the patch NotZed and I came up with to fix the height of the evolution composer entries. svn path=/trunk/; revision=19486
* add call to e_table_model_pre_change here to reduce spew.Chris Toshok2003-01-161-0/+7
| | | | | | | | | | | | | | 2003-01-15 Chris Toshok <toshok@ximian.com> * gal/e-text/e-completion-view.c (begin_completion_cb): add call to e_table_model_pre_change here to reduce spew. (cancel_completion_cb): same. (completion_cb): same. (end_completion_cb): same. (clear_completion_cb): same. (lost_completion_cb): same. svn path=/trunk/; revision=19478
* use PangoFontMetrics here instead of using the ascent/descent of theChris Toshok2003-01-151-2/+11
| | | | | | | | | 2003-01-14 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (canvas_size_request): use PangoFontMetrics here instead of using the ascent/descent of the GtkStyle's font. svn path=/trunk/; revision=19468
* lots of stuff, add 2 e-text widgets, 1 readonly, the other writable (thatChris Toshok2002-12-095-530/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-08 Chris Toshok <toshok@ximian.com> * tests/test-text.c: lots of stuff, add 2 e-text widgets, 1 readonly, the other writable (that uses the uri model..) * gal/e-text/e-text.[ch]: lots of pango changes. we don't do *anything* with gdk/e fonts now. everything is pango. There are still some issues while editting but display should more or less work properly now, and without all the performance problems. * gal/e-text/e-completion-view.c (e_completion_view_expose_event): use gtk_widget_send_expose instead of gtk_widget_event so we don't get the annoying gtk warning. * gal/e-text/e-entry.c (e_entry_dispose): make sure both the gdk and gtk grabs are removed. (e_entry_class_init): fill_color_gdk is a boxed type, not pointer. * gal/e-text/e-text-model-uri.h (E_TYPE_TEXT_MODEL_URI): oops, this should be e_text_model_uri_get_type, not e_text_model_get_type. svn path=/trunk/; revision=19054
* rework this from the gal-2 branch, clahey's patch, and the stuff i'd doneChris Toshok2002-11-301-107/+107
| | | | | | | | | | 2002-11-29 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c: rework this from the gal-2 branch, clahey's patch, and the stuff i'd done since. it's working *MUCH* better now. svn path=/trunk/; revision=18957
* commit clahey's original pango work.Chris Toshok2002-11-202-916/+392
| | | | | | | | 2002-11-19 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.[ch]: commit clahey's original pango work. svn path=/trunk/; revision=18850
* fix c&p typo.Chris Toshok2002-11-173-37/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Lots of GObject work.Chris Toshok2002-11-1717-1249/+1404
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal/e-text/e-completion-test.c: Lots of GObject work. * gal/e-text/e-completion-view.[ch]: same. * gal/e-text/e-completion.[ch]: same. * gal/e-text/e-entry.[ch]: same. * gal/e-text/e-table-text-model.[ch]: same. * gal/e-text/e-text-model-uri.[ch]: same. * gal/e-text/e-text-model.[ch]: same. * gal/e-text/e-text-test.c: same. * gal/e-text/e-text.[ch]: same. svn path=/trunk/; revision=18800
* only clear choices if cv->choices != NULL. (e_completion_view_disconnect):Chris Toshok2002-11-121-3/+6
| | | | | | | | | | 2002-11-11 Chris Toshok <toshok@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_destroy): only clear choices if cv->choices != NULL. (e_completion_view_disconnect): zero out cancel_signal_id. svn path=/trunk/; revision=18718
* merging the gal-2 branch back to the trunk.Mike Kestner2002-11-0119-196/+195
| | | | | | merging the gal-2 branch back to the trunk. svn path=/trunk/; revision=18471
* take a clip_height and use it to set the maximum number of lines ifJP Rosevear2002-09-111-20/+15
| | | | | | | | | | 2002-09-10 JP Rosevear <jpr@ximian.com> * gal/e-text/e-text.c (line_splitter): take a clip_height and use it to set the maximum number of lines if necessary (split_into_lines): pass clip_height arg svn path=/trunk/; revision=18032
* Added debugging printfs. (e_text_request_paste): Fixed the order ofChristopher James Lahey2002-06-061-2/+14
| | | | | | | | | | | 2002-06-05 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c: Added debugging printfs. (e_text_request_paste): Fixed the order of setting last_type_request before calling gtk_selection_convert due to a reentrancy bug. svn path=/trunk/; revision=17119
* Reflow and redraw when the style gets set.Christopher James Lahey2002-06-042-322/+330
| | | | | | | | | 2002-06-03 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_style_set): Reflow and redraw when the style gets set. svn path=/trunk/; revision=17086
* Switch from gnome_canvas_item_grab to e_canvas_item_grab.Christopher James Lahey2002-05-101-5/+10
| | | | | | | | | | | | | | | | | | | 2002-05-09 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c: Switch from gnome_canvas_item_grab to e_canvas_item_grab. * gal/widgets/e-canvas.c, gal/widgets/e-canvas.h (e_canvas_item_grab, e_canvas_item_ungrab): Added these functions. From gal/e-table/ChangeLog: 2002-05-09 Christopher James Lahey <clahey@ximian.com> * e-table-item.c, e-table-item.h: Switched from gnome_canvas_item_grab to e_canvas_item_grab. svn path=/trunk/; revision=16738
* Make the style here match the proper widget style to emulate a label or anChristopher James Lahey2002-05-031-1/+1
| | | | | | | | | 2002-05-02 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_draw): Make the style here match the proper widget style to emulate a label or an entry. svn path=/trunk/; revision=16670
* Set the gettext-domain here.Christopher James Lahey2002-05-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-01 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-completion-view.c (simple_spec), gal/widgets/e-categories-master-list-dialog.c (SPEC), gal/widgets/e-categories.c (INITIAL_SPEC): Set the gettext-domain here. * gal/util/e-i18n.h (E_I18N_DOMAIN): #define as makes sense in the different cases. From gal/e-table/ChangeLog: 2002-05-01 Christopher James Lahey <clahey@ximian.com> * e-table-config.c, e-table-config.h, e-table-specification.c, e-table-specification.h, e-table-utils.c, e-table-utils.h, e-table.c, e-table.h: Made these pay attention to the gettext-domain in the etspec. * e-table-config.c: Set the gettext-domain in the etspec here. From gal/menus/ChangeLog: 2002-05-01 Christopher James Lahey <clahey@ximian.com> * gal-define-views-dialog.c (SPEC), gal-view-instance-save-as-dialog.c (SPEC): Set the gettext-domain here. svn path=/trunk/; revision=16658
* Ansification patch from danw.Christopher James Lahey2002-04-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2002-04-25 Christopher James Lahey <clahey@ximian.com> * gal/e-paned/e-paned.c, gal/e-text/e-entry.c, gal/util/e-bit-array.c, gal/util/e-sorter-array.c, gal/util/e-sorter.c, gal/util/e-text-event-processor.c, gal/widgets/color-group.c, gal/widgets/color-palette.c, gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas.c, gal/widgets/e-canvas.h, gal/widgets/e-categories-master-list-array.c, gal/widgets/e-categories-master-list-combo.c, gal/widgets/e-categories-master-list-dialog-model.c, gal/widgets/e-categories-master-list-dialog.c, gal/widgets/e-categories.c, gal/widgets/e-reflow-model.c, gal/widgets/e-reflow.c, gal/widgets/e-selection-model-array.c, gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h, gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-stack.c, gal/widgets/widget-color-combo.c, gal/widgets/widget-pixmap-combo.c: Ansification patch from danw. svn path=/trunk/; revision=16589
* Don't show the popup if the entry->item doesn't have focus.Ettore Perazzoli2002-04-041-0/+5
| | | | | | | * gal/e-text/e-entry.c (e_entry_show_popup): Don't show the popup if the entry->item doesn't have focus. svn path=/trunk/; revision=16345
* If tab is hit and the cursor is still in the entry, move down into theJon Trowbridge2002-03-011-11/+36
| | | | | | | | | | | 2002-02-28 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_key_press_handler): If tab is hit and the cursor is still in the entry, move down into the entry otherwise unbrowse. svn path=/trunk/; revision=15878
* Bumped the version number to 0.19.99.5.Christopher James Lahey2002-02-071-22/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-07 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.19.99.5. * gal/Makefile.am (libgal_la_LIBADD): Added menus/gal-view-instance-save-as-dialog.lo. * gal/e-text/e-text.c (next_word): Contains refactored code from the E_TEP_FORWARD_WORD case of e_text_command. (e_text_command): Implemented E_TEP_CAPS. From gal/menus/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * Makefile.am (glade_DATA): Added gal-view-instance-save-as-dialog.glade. (libgalmenus_la_SOURCES): Added gal-view-instance-save-as-dialog.c. (libgalmenusinclude_HEADERS): Added gal-view-instance-save-as-dialog.h. * gal-view-collection.c, gal-view-collection.h (gal_view_collection_append_with_title): Added this new version of the append function that sets the title and returns the new id as well. (gal_view_collection_set_nth_view): Added this function to save over another view. (gal_view_collection_get_default_view, gal_view_collection_set_default_view): Added the concept of a default view for GalViewCollections. * gal-view-etable.c, gal-view-etable.h (gal_view_etable_attach_table, gal_view_etable_attach_tree, gal_view_etable_detach): Added functions to set the state of a table or tree and then send GalView "changed" signals whenever that state changes. (gal_view_etable_set_state): New function to set the ETableState of a GalViewETable. * gal-view-instance-save-as-dialog.c, gal-view-instance-save-as-dialog.glade, gal-view-instance-save-as-dialog.h: New dialog to save the current custom view as a named view. * gal-view-instance.c, gal-view-instance.h (gal_view_instance_set_custom_view): New function to set the state of an instance to custom view and set the custom view to a particular GalView. (gal_view_instance_exists): New function to check if this particular instance has ever been opened before. Use before gal_view_instance_load. (gal_view_instance_save_as): New function to open a save as dialog. (gal_view_instance_load): Added this function which used to be part of _construct. This function can be called multiple times, and those extra times will be ignored. This is so you can set a default view before loading. (gal_view_instance_get_default_view, gal_view_instance_set_default_view): Set the default view for this instance. If unset, this falls back to the default view for the corresponding GalViewCollection. svn path=/trunk/; revision=15590
* Request a reflow and an update when the text model changes. Fixes XimianChristopher James Lahey2002-01-211-3/+4
| | | | | | | | | | | | 2002-01-20 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_text_model_changed): Request a reflow and an update when the text model changes. Fixes Ximian bug #16459. (e_text_set_arg): (ARG_TEXT) Don't set the number of lines to one here. svn path=/trunk/; revision=15411
* Added #include <libgnome/gnome-defs.h>.Christopher James Lahey2002-01-174-0/+4
| | | | | | | | | | | | | 2002-01-16 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-entry.h, gal/e-text/e-table-text-model.h, gal/e-text/e-text-model-uri.h, gal/e-text/e-text.h, gal/util/e-i18n.h, gal/widgets/e-canvas-utils.h, gal/widgets/e-gui-utils.h, gal/widgets/e-printable.h, gal/widgets/gtk-combo-stack.h: Added #include <libgnome/gnome-defs.h>. svn path=/trunk/; revision=15340
* Handle the case of a 0 length string properly here.Christopher James Lahey2002-01-151-0/+6
| | | | | | | | | 2002-01-14 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (line_splitter): Handle the case of a 0 length string properly here. svn path=/trunk/; revision=15323
* Reworked to fix bugs related to breaking text on newlines. Some fairlyJon Trowbridge2001-12-281-169/+95
| | | | | | | | | | 2001-12-27 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-text.c (split_into_lines): Reworked to fix bugs related to breaking text on newlines. Some fairly substantial code duplication was removed in the process. svn path=/trunk/; revision=15219
* Don't crash if the text string is NULL. (text_draw_with_objects): Don'tJon Trowbridge2001-12-111-1/+4
| | | | | | | | | | | 2001-12-10 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-text.c (text_width_with_objects): Don't crash if the text string is NULL. (text_draw_with_objects): Don't crash if the text string is NULL. (Fixes #16359) svn path=/trunk/; revision=14954
* Only popup entries that have focus. Fixes the lingering completion popupJon Trowbridge2001-11-091-1/+3
| | | | | | | | | 2001-11-08 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-entry.c (full_cb): Only popup entries that have focus. Fixes the lingering completion popup bug. svn path=/trunk/; revision=14626
* Calc height here if we need it to check the y position of the cursor.Christopher James Lahey2001-10-301-0/+7
| | | | | | | | | 2001-10-30 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_reflow): Calc height here if we need it to check the y position of the cursor. svn path=/trunk/; revision=14443
* Added. Makes our popup window a transient of the toplevel.Jon Trowbridge2001-10-301-0/+24
| | | | | | | | | | | | | | 2001-10-29 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-entry.c (e_entry_make_completion_window_transient): Added. Makes our popup window a transient of the toplevel. (e_entry_enable_completion_full): Try to make our popup a transient. (e_entry_realize): Also try to make our popup a transient here, in case the entry wasn't packed before we enabled completion. This is all an attempt to fix bug #13791. svn path=/trunk/; revision=14390
* destroy our completion_view_popup... we've been leaking them all of thisJon Trowbridge2001-10-301-1/+3
| | | | | | | | | | 2001-10-29 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-entry.c (e_entry_destroy): destroy our completion_view_popup... we've been leaking them all of this time. This should fix the mysterious bug #13900. svn path=/trunk/; revision=14381
* Silently drop match strings that contain invalid utf-8... not a good thingJon Trowbridge2001-10-301-18/+17
| | | | | | | | | | | 2001-10-29 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-match.c (e_completion_match_set_text): Silently drop match strings that contain invalid utf-8... not a good thing to do, but better than any of the currently available alternatives. svn path=/trunk/; revision=14364
* Set text->revert = NULL here. (e_text_cancel_editing): Only revert ifChristopher James Lahey2001-10-291-1/+4
| | | | | | | | | | 2001-10-29 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_stop_editing): Set text->revert = NULL here. (e_text_cancel_editing): Only revert if text->revert is non-null. svn path=/trunk/; revision=14334
* Bumped version number here to 0.15.99.7.Christopher James Lahey2001-10-292-4/+22
| | | | | | | | | | | | | 2001-10-29 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version number here to 0.15.99.7. * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_stop_editing): Exported this function. (e_text_cancel_editing): New function. Allows you to revert edits. svn path=/trunk/; revision=14332
* Bumped the version number to 0.15.99.6 for emulate_label_resize.Christopher James Lahey2001-10-281-13/+88
| | | | | | | | | | | | 2001-10-27 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.15.99.6 for emulate_label_resize. * gal/e-text/e-entry.c: Added "emulate_label_resize" argument to make EEntry act like a label for width resizing purposes. svn path=/trunk/; revision=14227
* Changed the license announcement at the top of these files.Christopher James Lahey2001-10-271-6/+22
| | | | | | | | | | 2001-10-26 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text-test.c, gal/util/e-i18n.h, gal/widgets/e-hsv-utils.c, gal/widgets/e-hsv-utils.h: Changed the license announcement at the top of these files. svn path=/trunk/; revision=14169
* Changed the license announcement at the top of these files.Christopher James Lahey2001-10-2721-264/+379
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-26 Christopher James Lahey <clahey@ximian.com> * gal/e-paned/e-hpaned.c, gal/e-paned/e-hpaned.h, gal/e-paned/e-paned.c, gal/e-paned/e-paned.h, gal/e-paned/e-vpaned.c, gal/e-paned/e-vpaned.h, gal/e-text/e-completion-match.c, gal/e-text/e-completion-match.h, gal/e-text/e-completion-test.c, gal/e-text/e-completion-view.c, gal/e-text/e-completion-view.h, gal/e-text/e-completion.c, gal/e-text/e-completion.h, gal/e-text/e-entry-test.c, gal/e-text/e-entry.c, gal/e-text/e-entry.h, gal/e-text/e-table-text-model.c, gal/e-text/e-table-text-model.h, gal/e-text/e-text-model-repos.c, gal/e-text/e-text-model-repos.h, gal/e-text/e-text-model-test.c, gal/e-text/e-text-model-uri.c, gal/e-text/e-text-model-uri.h, gal/e-text/e-text-model.c, gal/e-text/e-text-model.h, gal/e-text/e-text.c, gal/e-text/e-text.h, gal/util/e-bit-array.c, gal/util/e-bit-array.h, gal/util/e-cache.c, gal/util/e-cache.h, gal/util/e-iconv.c, gal/util/e-iconv.h, gal/util/e-sorter-array.c, gal/util/e-sorter-array.h, gal/util/e-sorter.c, gal/util/e-sorter.h, gal/util/e-text-event-processor-emacs-like.c, gal/util/e-text-event-processor-emacs-like.h, gal/util/e-text-event-processor-types.h, gal/util/e-text-event-processor.c, gal/util/e-text-event-processor.h, gal/util/e-util.c, gal/util/e-util.h, gal/util/e-xml-utils.c, gal/util/e-xml-utils.h, gal/widgets/color-group.c, gal/widgets/color-group.h, gal/widgets/color-palette.c, gal/widgets/color-palette.h, gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h, gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas-vbox.h, gal/widgets/e-canvas.c, gal/widgets/e-canvas.h, gal/widgets/e-categories-master-list-array.c, gal/widgets/e-categories-master-list-array.h, gal/widgets/e-categories-master-list-combo.c, gal/widgets/e-categories-master-list-combo.h, gal/widgets/e-categories-master-list-dialog-model.c, gal/widgets/e-categories-master-list-dialog-model.h, gal/widgets/e-categories-master-list-dialog.c, gal/widgets/e-categories-master-list-dialog.h, gal/widgets/e-categories-master-list.c, gal/widgets/e-categories-master-list.h, gal/widgets/e-categories.c, gal/widgets/e-categories.h, gal/widgets/e-colors.c, gal/widgets/e-colors.h, gal/widgets/e-cursors.c, gal/widgets/e-cursors.h, gal/widgets/e-font.c, gal/widgets/e-font.h, gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h, gal/widgets/e-hscrollbar.c, gal/widgets/e-hscrollbar.h, gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h, gal/widgets/e-printable.c, gal/widgets/e-printable.h, gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h, gal/widgets/e-reflow-sorted.c, gal/widgets/e-reflow-sorted.h, gal/widgets/e-reflow.c, gal/widgets/e-reflow.h, gal/widgets/e-scroll-frame.c, gal/widgets/e-scroll-frame.h, gal/widgets/e-selection-model-array.c, gal/widgets/e-selection-model-array.h, gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model-simple.h, gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h, gal/widgets/e-unicode.c, gal/widgets/e-unicode.h, gal/widgets/e-vscrollbar.c, gal/widgets/e-vscrollbar.h, gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-box.h, gal/widgets/gtk-combo-stack.c, gal/widgets/gtk-combo-stack.h, gal/widgets/gtk-combo-text.c, gal/widgets/gtk-combo-text.h, gal/widgets/test-color.c, gal/widgets/test-e-font.c, gal/widgets/test-e-font.h, gal/widgets/test-font-loading.c, gal/widgets/widget-color-combo.c, gal/widgets/widget-color-combo.h, gal/widgets/widget-pixmap-combo.c, gal/widgets/widget-pixmap-combo.h, src/e-table/e-table-sorted-variable.c, tests/test-define-views.c, tests/test-shortcut-bar.c, tests/test-table-1.c, tests/test-tree-1.c, tests/test-tree-2.c, tests/test-tree-3.c, tests/test-unicode.c: Changed the license announcement at the top of these files. svn path=/trunk/; revision=14158
* Bumped version to 0.15.99.4 for e-iconv changes.52001-10-261-1/+3
| | | | | | | | | | | | | | | | | | | 2001-10-25 <NotZed@Ximian.com> * configure.in: Bumped version to 0.15.99.4 for e-iconv changes. * gal/widgets/e-unicode.c (e_utf8_from_iconv_string_sized): " (e_utf8_to_iconv_string_sized): " (e_utf8_from_gtk_string_sized): " (e_utf8_to_gtk_string_sized): " * gal/widgets/e-font.c (e_font_to_native): s/iconv/e_iconv/ * gal/util/e-iconv.c (e_iconv): Implement a wrapper for iconv() to make sure we link with and execute the right iconv to match the right iconv_open. (BLAH!) svn path=/trunk/; revision=14111
* Use the widget's style's text_gc for drawing text if eitherChristopher James Lahey2001-10-231-13/+18
| | | | | | | | | | 2001-10-23 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_draw): Use the widget's style's text_gc for drawing text if either draw_background or draw_button is on. svn path=/trunk/; revision=13937
* Bumped version to 0.15.99.3 for EText's "draw_button" argument.Christopher James Lahey2001-10-233-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-23 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version to 0.15.99.3 for EText's "draw_button" argument. * gal/e-text/e-entry.c: Forward the "draw_button" argument to the contained EText. * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_draw): Added new "draw_button" argument. If this is turned on and the first widget that's a parent of the containing canvas with GTK_NO_WINDOW turned off above the current one is a button, EText draws a button underneath itself to match the containing button. From gal/shortcut-bar/ChangeLog: 2001-10-23 Christopher James Lahey <clahey@ximian.com> * e-shortcut-bar.c (e_shortcut_bar_add_group): Turn on "draw_button" argument to EEntry. svn path=/trunk/; revision=13934
* Accept UTF8_STRING, UTF-8, and STRING targets when getting the selection.Christopher James Lahey2001-10-222-12/+118
| | | | | | | | | | 2001-10-22 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_get_selection): Accept UTF8_STRING, UTF-8, and STRING targets when getting the selection. svn path=/trunk/; revision=13864
* Offer UTF8_STRING, UTF-8, COMPOUND_TEXT, STRING, and TEXT targets when weChristopher James Lahey2001-10-211-21/+70
| | | | | | | | | | 2001-10-21 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_get_invisible): Offer UTF8_STRING, UTF-8, COMPOUND_TEXT, STRING, and TEXT targets when we offer the selection. svn path=/trunk/; revision=13847
* Changed some of these gbooleans to be guint : 1s.Christopher James Lahey2001-10-211-4/+5
| | | | | | | | | | | | 2001-10-20 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.h: Changed some of these gbooleans to be guint : 1s. * gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Send the in event here to the new focused item instead of the old one. svn path=/trunk/; revision=13824
* Connect keys before we show the widget.Jon Trowbridge2001-10-192-5/+3
| | | | | | | | | 2001-10-18 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-entry.c (e_entry_enable_completion_full): Connect keys before we show the widget. svn path=/trunk/; revision=13756
* Use e_strdup_append_strings here instead of g_strdup_printf becauseChristopher James Lahey2001-10-122-5/+30
| | | | | | | | | | | | | | | | 2001-10-11 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-table-text-model.c (e_table_text_model_insert, e_table_text_model_insert_length, e_table_text_model_delete), gal/e-text/e-text-model.c (e_text_model_real_insert, e_text_model_real_insert_length): Use e_strdup_append_strings here instead of g_strdup_printf because printf("%.*s") is locale dependent on some systems. * gal/util/e-util.c (e_strdup_append_strings): New function to append a bunch of strings with optional lengths. svn path=/trunk/; revision=13581
* Based on patches from Dan Nguyen <dnn@austin.ibm.com>.Christopher James Lahey2001-10-101-1/+1
| | | | | | | | | | | | | 2001-10-10 Christopher James Lahey <clahey@ximian.com> Based on patches from Dan Nguyen <dnn@austin.ibm.com>. * gal/Makefile.am (libgal_la_LDFLAGS): Added $(GTK_LIBS). * gal/e-text/e-text.c (e_text_event): Changed this from a C++ comment to a C comment. svn path=/trunk/; revision=13549
* add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migrationMichael Meeks2001-10-055-31/+34
| | | | | | | | | | | | | | | 2001-10-05 Michael Meeks <michael@ximian.com> * gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from a single source base. * All C files: s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g; s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/ E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/; svn path=/trunk/; revision=13428
* Added a max length of 2047 to the standard ETextModel. Fixes Ximian bugChristopher James Lahey2001-10-021-7/+27
| | | | | | | | | 2001-10-02 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text-model.c (MAX_LENGTH): Added a max length of 2047 to the standard ETextModel. Fixes Ximian bug #3021. svn path=/trunk/; revision=13298
* Allow ctrl-p and ctrl-n to be used to move up and down in the completionJon Trowbridge2001-09-272-5/+30
| | | | | | | | | | | | | 2001-09-26 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_key_press_handler): Allow ctrl-p and ctrl-n to be used to move up and down in the completion list. (Bug #10500) * gal/e-text/e-completion-match.c (e_completion_match_set_text): Properly validate the utf8. svn path=/trunk/; revision=13159
* Made it so that if allow_newlines is FALSE, pasting into ETexts doesn'tChristopher James Lahey2001-09-262-62/+79
| | | | | | | | | | | 2001-09-26 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h (_insert): Made it so that if allow_newlines is FALSE, pasting into ETexts doesn't insert carriage returns. Fixes Ximian bug #5761 and Ximian bug #9067. svn path=/trunk/; revision=13143
* remove redundant NULL checks since g_free handles NULLs. (e_text_destroy):Larry Ewing2001-09-181-8/+5
| | | | | | | | | | | | 2001-09-17 Larry Ewing <lewing@ximian.com> * gal/e-text/e-text.c (e_text_supply_selection): remove redundant NULL checks since g_free handles NULLs. (e_text_destroy): free the selection. It does appear to be a guarantee that we get a selection-clear event before we are destroyed. svn path=/trunk/; revision=12934
* Bumped version number to 0.11.99.4.Christopher James Lahey2001-09-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-16 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version number to 0.11.99.4. * gal/e-text/e-completion-view.c (e_completion_view_construct), tests/test-table-1.c (create_table): Changed the parameters to e_table_simple_new here to adjust to changes in the interface. * gal/widgets/e-categories-master-list-array.c (ecmla_default): Fixed a memory leak here. * gal/widgets/e-categories.c (e_categories_get_save_id): Added get_save_id here so that selection would be maintained across changes. From gal/e-table/ChangeLog: 2001-09-16 Christopher James Lahey <clahey@ximian.com> * e-table-model.c, e-table-model.h (e_table_model_class_init): Rearranged order of has_save_id and get_save_id to be more consistent with ETree. * e-table-selection-model.c, e-table-selection-model.h: Turned on the code to maintain selection and cursor across changes if the model supports get_save_id. * e-table-simple.c, e-table-simple.h: Changed this interface to take all of the ETableModel functions in the _new function. * e-table-subset.c (etss_has_save_id, etss_get_save_id): Added these to properly proxy the save_id functionality. * e-tree-memory-callbacks.c, e-tree-memory-callbacks.h, e-tree-model.c, e-tree-model.h, e-tree-sorted.c: Made the save_id parameter to get_node_by_id be const char * instead of char *. * e-tree-table-adapter.c (etta_class_init): Rearranged some assignments here to be more consistent. svn path=/trunk/; revision=12869
* Unref the model after creating the ETable, since the table will hold a refDan Winship2001-09-132-1/+2
| | | | | | | | | | | * gal/e-text/e-completion-view.c (e_completion_view_construct): Unref the model after creating the ETable, since the table will hold a ref on it until we destroy it when we're destroyed. * gal/e-text/e-entry.c (e_entry_destroy): Unref the popup window rather than destroying it. svn path=/trunk/; revision=12798
* If our text shrinks, make sure that the selection doesn't spill off overJon Trowbridge2001-09-101-0/+7
| | | | | | | | | | 2001-09-09 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-text.c (e_text_text_model_changed): If our text shrinks, make sure that the selection doesn't spill off over the end of the reduced buffer. (Related to bug #8535) svn path=/trunk/; revision=12717
* Patch to fix few 64bit issuesGeorge Lebl2001-08-292-0/+2
| | | | | | | | | | | | | | | | | | | | | | Tue Aug 28 18:29:28 2001 George Lebl <jirka@5z.com> Patch to fix few 64bit issues * gal/e-table/e-table-header-item.c (ethi_draw) (ethi_start_drag) gal/widgets/e-categories.c (e_categories_value_at) (e_categories_value_to_string): Use GINT_TO_POINTER and GPOINTER_TO_INT to cast between pointers and ints to fix 64bit issues connected with that. * gal/e-table/e-table-sorting-utils.c (e_table_sorting_utils_tree_check_position) gal/util/e-sorter-array.c (e_sorter_array_append): Use size_t for size not ints to fix crashes * gal/e-text/e-completion-match.c, gal/e-text/e-completion.c: Include <string.h> svn path=/trunk/; revision=12507
* Added "hit_count" to ECompletionMatch. Used by searchJon Trowbridge2001-08-175-20/+232
| | | | | | | | | | | | | | | | | | | | | | 2001-08-16 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-match.h: Added "hit_count" to ECompletionMatch. Used by search refinement/unrefinement. * gal/e-text/e-completion.c (e_completion_refine_search): Added. Handle automatic search refinements. (e_completion_unrefine_search): Added. Handle automatic search "unrefinements", or reversions. (e_completion_begin_search): Check if the refinement or unrefinement operations can be used to handle the search. Emit "request_search" at the end of the call. (e_completion_class_init): Added a new signal "request_search". "begin_search" is now purely informational, telling views that a series of matches and an "end_search" are forthcoming. * configure.in: Increment version of 0.10.99.3. svn path=/trunk/; revision=12116
* bumped up to 0.10.99.3jacob berkman2001-08-105-86/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-09 jacob berkman <jacob@ximian.com> * configure.in: bumped up to 0.10.99.3 * gal/e-text/e-completion-view.c (e_completion_view_init): init matches array (e_completion_view_destroy): free matches array (e_completion_view_disconnect): disconnect from the clear and lost_match signals (e_completion_view_clear_choices): fixup for ptr array (e_completion_view_set_cursor_row): ditto (e_completion_view_select): ditto (e_completion_view_key_press_handler): ditto (clear_completion_cb): handle the clear signal (lost_completion_cb): remove a row from the model (table_row_count): fixup for ptr array (table_value_at): ditto (e_completion_view_construct): connect to clear and lost completion signals (e_completion_view_set_width): ptr array fixup again * gal/e-text/e-completion.c (e_completion_class_init): add new clean / lost completion signals (e_completion_init): initialize the matches array (e_completion_destroy): free the matches array (e_completion_add_match): fixup for matches being a GPtrArray (e_completion_clear_matches): ditto (e_completion_clear): new function to clear the list of matches (e_completion_foreach_match): fixup for ptrarray (e_completion_restart): ditto (e_completion_found_match): if we are at the limit return first, rather than adding and then unreffing. there very well could be some weird crashes this caused but it is kind of unlikely. (e_completion_lost_match): new function to forget about a match (e_completion_end_search): add a comment on why this is broken * gal/e-text/e-entry.c (e_entry_text_keypress): only start a delayed completion if our completion timeout is >= 0. this provides a way for the completion starting / stopping to be controlled by something other than the EEntry (ie, file-sel) svn path=/trunk/; revision=11843
* Bumped version up to 0.10.99.2.Jon Trowbridge2001-08-094-28/+89
| | | | | | | | | | | | | | | | | | | | | | 2001-08-09 Jon Trowbridge <trow@ximian.com> * configure.in: Bumped version up to 0.10.99.2. * gal/e-text/e-entry.c (e_entry_class_init): Added "completion_popup" signal. (e_entry_show_popup): Emit "completion_popup" signal if the popup has appeared or disappeared. (e_entry_enable_completion_full): Listen for "cancel_completion" signals from our model, and disable our completion if get one. (e_entry_completion_popup_is_visible): Added. Returns TRUE if the completion popup is on the screen. * gal/e-text/e-text-model.c (e_text_model_class_init): Added "cancel_completion" signal. (e_text_model_cancel_completion): Added. Emits "cancel_completion" signal. svn path=/trunk/; revision=11824
* Quintuple sigh. See below.Federico Mena Quintero2001-08-091-0/+3
| | | | | | | | | | 2001-08-09 Federico Mena Quintero <federico@ximian.com> * gal/e-text/e-entry.c (e_entry_destroy): Quintuple sigh. See below. * gal/util/e-bit-array.c (eba_destroy): Sextuple sigh. svn path=/trunk/; revision=11815
* avoid freed memory reading, when you call it likeRadek Doulik2001-08-021-2/+8
| | | | | | | | | | | 2001-08-02 Radek Doulik <rodo@ximian.com> * gal/e-text/e-completion-match.c (e_completion_match_set_text): avoid freed memory reading, when you call it like e_completion_match_set_text (match, e_completion_match_get_match_text (match), tmp); svn path=/trunk/; revision=11571
* Properly ref the font we pass in as an ARG_FONT_E. (_do_tooltip): RemovedJon Trowbridge2001-07-251-3/+2
| | | | | | | | | | | | | | | | | | 2001-07-25 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-text.c (e_text_set_arg): Properly ref the font we pass in as an ARG_FONT_E. (_do_tooltip): Removed some crack. We no longer have to manually ref the font. The ref-counting now happens inside the set_arg function, as it should. (e_text_destroy): Set text->font to NULL after unrefing it. 2001-07-25 Jon Trowbridge <trow@ximian.com> * e-cell-text.c (ect_unrealize): Set text_view->font to NULL after we unref it. svn path=/trunk/; revision=11393
* Removed some debugging spew I committed by mistake.Jon Trowbridge2001-07-211-4/+1
| | | | | | | | | 2001-07-20 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_set_width): Removed some debugging spew I committed by mistake. svn path=/trunk/; revision=11293
* Change window policy to allow the completion window to shrink when theJon Trowbridge2001-07-212-11/+9
| | | | | | | | | | | | | 2001-07-20 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-entry.c (e_entry_enable_completion_full): Change window policy to allow the completion window to shrink when the number of options decreases. * gal/e-text/e-completion-view.c (e_completion_view_construct): Removed some obsolete code. svn path=/trunk/; revision=11292
* Start editing immediately on a button_press that grabs the focus.Christopher James Lahey2001-07-151-27/+44
| | | | | | | | | | | 2001-07-15 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_event): Start editing immediately on a button_press that grabs the focus. e_canvas_item_grab_focus doesn't seem to get us the focus event until the event loop. Fixes Ximian bug #1766. svn path=/trunk/; revision=11111
* For E_TEP_END_OF_BUFFER, use the length in bytes, not the length inFederico Mena Quintero2001-07-101-1/+1
| | | | | | | | | | 2001-07-09 Federico Mena Quintero <federico@ximian.com> * gal/e-text/e-text.c (_get_position): For E_TEP_END_OF_BUFFER, use the length in bytes, not the length in characters --- this function is supposed to return byte offsets. svn path=/trunk/; revision=10941
* Destroy the tooltip if we're the owner when we're destroyed. Also, keep aChristopher James Lahey2001-07-082-1/+22
| | | | | | | | | | | | | | 2001-07-07 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_destroy): Destroy the tooltip if we're the owner when we're destroyed. Also, keep a reference to the text object in case we get a signal on the window after the text object is destroyed. * gal/widgets/e-canvas.c (e_canvas_destroy): Hide the tooltip if there is one when the canvas is destroyed. svn path=/trunk/; revision=10888
* Don't scroll to the cursor on grab, ungrab, noop, and copy commands.Christopher James Lahey2001-07-051-1/+6
| | | | | | | | | 2001-07-05 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_command): Don't scroll to the cursor on grab, ungrab, noop, and copy commands. svn path=/trunk/; revision=10808
* If lines is NULL here split into lines and just return that the point isChristopher James Lahey2001-07-031-0/+7
| | | | | | | | | | 2001-07-03 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_point): If lines is NULL here split into lines and just return that the point is outside this text object. svn path=/trunk/; revision=10730