aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-01-21 09:57:23 +0800
committerChris Lahey <clahey@src.gnome.org>2002-01-21 09:57:23 +0800
commit994338982fc75978670f0a42cf361b51e2f6e0cc (patch)
treebd10fd99dd8ea13df4f061fabd7f2c1ef9ab92d6 /widgets
parent7a987fd4d3a3a860a34ef061d62f1ef780e1a0b4 (diff)
downloadgsoc2013-evolution-994338982fc75978670f0a42cf361b51e2f6e0cc.tar.gz
gsoc2013-evolution-994338982fc75978670f0a42cf361b51e2f6e0cc.tar.zst
gsoc2013-evolution-994338982fc75978670f0a42cf361b51e2f6e0cc.zip
Request a reflow and an update when the text model changes. Fixes Ximian
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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-text.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index c4b5bb5cf6..4439a3e9bf 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -556,14 +556,16 @@ e_text_text_model_changed (ETextModel *model, EText *text)
text->text = e_text_model_get_text(model);
e_text_free_lines(text);
- gtk_signal_emit (GTK_OBJECT (text), e_text_signals[E_TEXT_CHANGED]);
-
/* Make sure our selection doesn't extend past the bounds of our text. */
text->selection_start = CLAMP (text->selection_start, 0, model_len);
text->selection_end = CLAMP (text->selection_end, 0, model_len);
text->needs_split_into_lines = 1;
+ text->needs_redraw = 1;
e_canvas_item_request_reflow (GNOME_CANVAS_ITEM(text));
+ gnome_canvas_item_request_update (GNOME_CANVAS_ITEM (text));
+
+ gtk_signal_emit (GTK_OBJECT (text), e_text_signals[E_TEXT_CHANGED]);
}
static void
@@ -1185,7 +1187,6 @@ e_text_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
break;
case ARG_TEXT:
- text->num_lines = 1;
e_text_model_set_text(text->model, GTK_VALUE_STRING (*arg));
break;
'/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/archivers?id=0812f0742e713f3bb4b6832ea790de6b0c050301'>devel/boost-*: update to 1.66.0jbeich2018-01-182-2/+2 * archivers/c-blosc: Update to 1.13.1dbaio2018-01-182-5/+4 * Update KDE Frameworks to 5.42.0tcberner2018-01-171-3/+3 * New port: archivers/py-zstandard: Zstandard bindings for Python, a full-featu...yuri2018-01-164-0/+40 * - fix bad line inserted by vimdinoex2018-01-151-1/+0 * - Add license informationdinoex2018-01-152-1/+61 * Add a port of libdeflate, a library for fast, whole-buffer DEFLATE-baseddanfe2018-01-144-0/+58 * Update to 1.8.1sunpoet2018-01-143-4/+15 * Return kevlo's ports to the pool, he handed in his commit bit.rene2018-01-121-1/+1 * Update PHP 7.1 from 7.1.12 to 7.1.13tz2018-01-111-1/+0 * New port: archivers/py-zstd: Python binding for Zstandard compression libraryyuri2018-01-104-0/+40 * Add a patch to fix the build with Clang 6.0.rakuco2018-01-061-0/+33 * Update to 0.18.1sunpoet2018-01-042-4/+4 * Update to 0.6.8antoine2018-01-032-4/+4 * Update to 0.18.0sunpoet2018-01-022-4/+4 * Update archivers/py-borgbackup to 1.1.4tcberner2017-12-312-5/+6 * Simplify some USES=pythonantoine2017-12-291-1/+1 * Update to 2.4.delphij2017-12-292-4/+4 * Update to 0.17.0sunpoet2017-12-282-4/+4 * New port: archivers/py-acefileantoine2017-12-274-0/+35 * - Update to 0.16.6lwhsu2017-12-273-7/+4 * Update to 0.14.0sunpoet2017-12-253-9/+9 * - Simplify Makefileamdmi32017-12-251-10/+3 * Convert to USES=autoreconf and remove unneeded -fPIC.tijl2017-12-251-5/+5 * Remove BROKEN_sparc64 statement which was originally added in r277772 bydanfe2017-12-241-3/+2 * Update to 0.13.0sunpoet2017-12-242-4/+4 * Add LZ4 optionsunpoet2017-12-241-0/+7 * Update to 1.3.3sunpoet2017-12-232-5/+5 * Add missing @ before ${FLAVOR}pawel2017-12-221-1/+1 * Update to 0.12.0sunpoet2017-12-222-5/+7 * Update to 1.60sunpoet2017-12-222-4/+4 * archivers/lua51-zlib: set LLD_UNSAFEemaste2017-12-201-0/+1 * Update KDE Frameworks to 5.41tcberner2017-12-151-3/+3 * Add missing IGNORE_WITH_PHP for various pecl-ports.tz2017-12-141-1/+1 * - Add LICENSEamdmi32017-12-121-2/+10 * archivers/brotli: Update to 1.0.2brnrd2017-12-124-18/+142 * Update to 1.0.2sunpoet2017-12-112-7/+9 * - Those ports fail to build with python3antoine2017-12-111-2/+2 * archivers/php71-phar: Unbreak if devel/re2c is installedtz2017-12-052-0/+10 * Unbreakantoine2017-12-041-1/+1 * Add LICENSE_FILEsunpoet2017-12-041-3/+4 * Change from USES=python:2 to USES=python:2.7sunpoet2017-12-041-3/+2 * Fix configure options for gnustep-maketheraven2017-12-033-3/+3 * - Add LICENSEamdmi32017-12-031-1/+4 * Convert Python ports to FLAVORS.mat2017-11-309-35/+13 * For ports that are marked BROKEN on armv6, and also fail to build onlinimon2017-11-301-0/+1 * [new port] archivers/py-xopen: Open compressed files transparentlyjwb2017-11-304-0/+29 * archivers/py-borgbackup: Update to 1.1.3dbaio2017-11-292-4/+4 * Update to 5.50sunpoet2017-11-252-6/+6 * Update to 2.076sunpoet2017-11-242-4/+4 * Update to 1.3.2.rakuco2017-11-215-44/+6 * Point to libzip.org.rakuco2017-11-212-2/+2 * Update to 0.11.1sunpoet2017-11-202-4/+4 * archivers/py-borgbackup: Update to 1.1.2swills2017-11-202-4/+4 * Add PHP 7.2 RC6tz2017-11-168-0/+102 * Update KDE Frameworks to 5.40.0tcberner2017-11-162-4/+3 * Update to 2.075sunpoet2017-11-162-4/+4 * Update to 1.0.1sunpoet2017-11-152-5/+4 * - Add LLD_UNSAFE to fix build with WITH_LLD_IS_LD [1]garga2017-11-131-6/+16 * devel/icu: update to 60.1jbeich2017-11-091-1/+1 * Update port to 4.13.0.2 and remove plugins from default options.rodrigo2017-11-092-6/+5 * Reinstate IA32_BINARY_PORT=yes knob that was removed in r249298 to allowdanfe2017-11-071-15/+2 * - Update `archivers/rar' to version 5.5.0 (and actually unbreak)danfe2017-11-062-17/+9 * Update archivers/py-borgbackup to 1.1.1tcberner2017-11-042-4/+4 * Set PKGNAMEPREFIX to lua51- and PORTNAME to zlibsunpoet2017-11-041-2/+2 * Fix whitespace issues (mixed tab/spaces, alignment) in a few ports.olgeni2017-11-012-6/+6 * Update to 5.6.32 release.ale2017-11-011-1/+0 * . Update to 3.3.2glewis2017-10-304-18/+7 * Update PHP 7.1 from 7.1.10 to 7.1.11tz2017-10-271-1/+0 * lang/php70: Update from 7.0.24 to 7.0.25tz2017-10-261-1/+0 * Update some of the KDE Frameworks 5 ports with DISTVERSION, LICENSEadridg2017-10-251-1/+5 * archivers/lua51-zlib update 1.1 to 1.2swills2017-10-243-7/+7 * archivers/py-borgbackup: Update to 1.1.0dbaio2017-10-222-5/+6 * Update file-roller to 3.26.1.kwm2017-10-215-39/+34 * - Fix buffer overflow (CVE-2015-2782)ak2017-10-197-222/+37 * - Remove archivers/zip build dependencyak2017-10-181-2/+2 * Update KDE Frameworks to 5.39tcberner2017-10-181-3/+3 * czipfile is a replacement for Python's builtin "zipfile" module, andfeld2017-10-134-0/+29 * Update WWWehaupt2017-10-121-1/+1 * Remove dead linksbapt2017-10-122-4/+1 * drop the ftp mirror which is not anonymousbapt2017-10-121-2/+1 * Update to 1.3.2sunpoet2017-10-122-4/+4 * Add LICENSEsunpoet2017-10-101-0/+3 * Add LICENSEsunpoet2017-10-101-0/+3 * Add LICENSEsunpoet2017-10-101-0/+3 * Add LICENSEsunpoet2017-10-101-1/+4 * Add LICENSEsunpoet2017-10-101-0/+3 * Add LICENSEsunpoet2017-10-101-0/+3 * Add LICENSEsunpoet2017-10-101-0/+3 * Update archivers/libunrar5 to 5.5.8jhale2017-10-082-4/+4 * p5-Archive-Peek has no LICENSE_FILEantoine2017-10-081-1/+0 * Also pass -fPIC for arm and armv6.rakuco2017-10-081-0/+2 * Pass -fPIC on armv7 as well.rakuco2017-10-081-0/+1 * - Update MASTER_SITES for my portsak2017-10-052-2/+2 * Fix RUN_DEPENDSsunpoet2017-10-051-3/+2 * Convert to utf8.mat2017-10-041-1/+1 * Set TEST_TARGET.rakuco2017-09-281-0/+1 * Bump PORTREVISION in ports depending on archivers/libzip.rakuco2017-09-283-0/+3 * Update libzip to 1.3.0.rakuco2017-09-285-41/+17 * Switch MASTER_SITES to https.rakuco2017-09-281-1/+1 * Add a patch for CVE-2017-14107.rakuco2017-09-282-0/+28 * Switch to https in WWW.rakuco2017-09-281-1/+1 * Add lazperf to the ports treegirgen2017-09-276-0/+70 * devel/boost-*: update to 1.65.1jbeich2017-09-252-2/+2 * devel/boost-*: enable C++11 featuresjbeich2017-09-252-2/+2 * devel/icu: update to 59.1jbeich2017-09-251-1/+1 * - Update to 0.4.9sbz2017-09-212-4/+4 * Update KDE Frameworks to 5.38.0tcberner2017-09-192-4/+3 * - archivers/php-snappy: Update from 0.1.8 to 0.1.9joneum2017-09-192-4/+4 * Update tbb to 2018 and bump dependent ports' revisionsmartymac2017-09-171-1/+1 * Fix license information for portgs that use "the same license as Perl".mat2017-09-1521-21/+21 * Fix license information. (for reals)mat2017-09-153-3/+3 * Update to 1.9.3sunpoet2017-09-132-4/+4 * Bump PORTREVISION for ports depending on the canonical version of GCCgerald2017-09-118-4/+8