aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-text/e-text.c17
-rw-r--r--widgets/text/e-text.c17
2 files changed, 16 insertions, 18 deletions
diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c
index 74cbf0fe8b..8bb19728c1 100644
--- a/widgets/e-text/e-text.c
+++ b/widgets/e-text/e-text.c
@@ -738,8 +738,6 @@ split_into_lines (EText *text)
if (len == 0)
lines->text = p;
lines->length = strlen(lines->text);
-
- calc_line_widths (text);
}
/* Convenience function to set the text's GC's foreground color */
@@ -1149,6 +1147,7 @@ e_text_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, int fla
}
if ( text->needs_redraw ) {
gnome_canvas_request_redraw (item->canvas, item->x1, item->y1, item->x2, item->y2);
+ text->needs_redraw = 0;
}
}
@@ -1914,10 +1913,10 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
}
if ( text->line_wrap )
- split_into_lines (text);
+ text->needs_split_into_lines = 1;
else
- calc_line_widths (text);
- recalc_bounds (text);
+ text->needs_calc_line_widths = 1;
+ gnome_canvas_item_request_update (GNOME_CANVAS_ITEM(text));
}
return_val = 0;
break;
@@ -2183,8 +2182,8 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
text->selection_end = _get_position(text, command);
}
_delete_selection(text);
- split_into_lines (text);
- recalc_bounds (text);
+ text->needs_split_into_lines = 1;
+ gnome_canvas_item_request_update (GNOME_CANVAS_ITEM(text));
if (text->timer) {
g_timer_reset(text->timer);
}
@@ -2195,8 +2194,8 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
_delete_selection(text);
}
_insert(text, command->string, command->value);
- split_into_lines (text);
- recalc_bounds (text);
+ text->needs_split_into_lines = 1;
+ gnome_canvas_item_request_update (GNOME_CANVAS_ITEM(text));
if (text->timer) {
g_timer_reset(text->timer);
}
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 74cbf0fe8b..8bb19728c1 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -738,8 +738,6 @@ split_into_lines (EText *text)
if (len == 0)
lines->text = p;
lines->length = strlen(lines->text);
-
- calc_line_widths (text);
}
/* Convenience function to set the text's GC's foreground color */
@@ -1149,6 +1147,7 @@ e_text_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, int fla
}
if ( text->needs_redraw ) {
gnome_canvas_request_redraw (item->canvas, item->x1, item->y1, item->x2, item->y2);
+ text->needs_redraw = 0;
}
}
@@ -1914,10 +1913,10 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
}
if ( text->line_wrap )
- split_into_lines (text);
+ text->needs_split_into_lines = 1;
else
- calc_line_widths (text);
- recalc_bounds (text);
+ text->needs_calc_line_widths = 1;
+ gnome_canvas_item_request_update (GNOME_CANVAS_ITEM(text));
}
return_val = 0;
break;
@@ -2183,8 +2182,8 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
text->selection_end = _get_position(text, command);
}
_delete_selection(text);
- split_into_lines (text);
- recalc_bounds (text);
+ text->needs_split_into_lines = 1;
+ gnome_canvas_item_request_update (GNOME_CANVAS_ITEM(text));
if (text->timer) {
g_timer_reset(text->timer);
}
@@ -2195,8 +2194,8 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
_delete_selection(text);
}
_insert(text, command->string, command->value);
- split_into_lines (text);
- recalc_bounds (text);
+ text->needs_split_into_lines = 1;
+ gnome_canvas_item_request_update (GNOME_CANVAS_ITEM(text));
if (text->timer) {
g_timer_reset(text->timer);
}
nome/commit/java?h=gnome-3.26&id=a20b69c216a68e3cb38e3be3f680fabddc709a73'>OPTIONS_SET/OPTIONS_UNSET are global variables, they cannot be used in ports ...mat2016-10-241-1/+1 * Update cacerts file using the one included in 8u111 release.ale2016-10-246-1/+3 * Update to 5.3 release.ale2016-10-212-9/+11 * ${RM} already has -f.mat2016-10-2113-19/+19 * java/intellij: fix pkg-plist.bsam2016-10-212-0/+3 * . Update to 8u112.glewis2016-10-212-3/+4 * Reassign makc's ports back to the pool.rakuco2016-10-205-5/+5 * . Update to 8u112.glewis2016-10-202-5/+6 * java/intellij-ultimate: update 2016.2.4 -> 2016.2.5robak2016-10-203-6/+7 * java/intellij: Update to version 2016.2.5.bsam2016-10-193-6/+5 * - Double-quote $@ to properly propagate parameters down the execution pathdanfe2016-10-175-5/+9 * New port: java/intellij-ultimatepi2016-10-159-0/+4176 * . Note that the time zone data is in the public domain (according toglewis2016-10-141-0/+2 * . Update to 2016g.glewis2016-10-143-4/+5 * Convert to USES=jpegantoine2016-10-101-1/+1 * java/eclipse: 4.5.2 -> 4.6pi2016-10-078-728/+724 * - Add LICENSEamdmi32016-09-301-4/+7 * Remove i386 from the viable platforms list.kwm2016-09-261-1/+1 * Unmark broken on powerpc64swills2016-09-151-2/+0 * java/intellij: Update to version 2016.2.4.bsam2016-09-142-5/+5 * java/jakarta-struts: Mark deprecatedfeld2016-09-111-0/+3 * java/intellij-pycharm: Update to version 2016.2.3.bsam2016-09-093-9/+4 * java/intellij-pycharm: Update to version 2016.2.2.bsam2016-09-073-9/+5 * - Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk withtijl2016-09-062-6/+4 * . Include the thread id so that jstack can provide stack traces whenglewis2016-09-043-0/+38 * java/intellij: Update to version 2016.2.3bsam2016-09-022-5/+5 * Make the FPU hack for ARM optional. Note this hack is not necessary forjkim2016-08-272-10/+11 * Update to b40.jkim2016-08-264-301/+268 * - Update to 1.55amdmi32016-08-252-4/+4 * Consistently set USE_JAVA to "yes" to reduce future confusion.jkim2016-08-251-1/+1 * Update to use Apache Ant 1.9.7.jkim2016-08-244-7/+8 * Add missing @dir entries to fix directory ownerships.olgeni2016-08-242-1/+499 * java/intellij: Update to version 2016.2.2.bsam2016-08-233-7/+5 * Remove the pkg-deinstall script forgotten during r419364bapt2016-08-232-55/+1 * . Update to 7u111.glewis2016-08-213-1767/+2054 * java/intellij-pycharm: Update to version 2016.2.1.bsam2016-08-182-4/+4 * - Fix build when CC contains "/".jkim2016-08-051-2/+2 * java/phpeclipse: Remove redundant dependency on unzipmarino2016-08-041-1/+0 * More typosbapt2016-07-312-2/+2 * Fix typobapt2016-07-311-2/+2 * Use the new @javavmbapt2016-07-315-21/+7 * Remove the deinstall script that appears to be deleting all the temporary filesbapt2016-07-313-12/+2 * . Update to 8u102.glewis2016-07-305-1607/+620 * Version 1.54 of the Bouncy Castle Crypto APIs.vsevolod2016-07-295-0/+100 * java/java-checkstyle: Update version 6.19=>7.0bofh2016-07-282-4/+4 * . Update to 8u102.glewis2016-07-243-3/+6 * . Update to 8u102.glewis2016-07-243-5/+8 * . Update to 2016fglewis2016-07-242-3/+3 * java/intellij-pycharm: Update to version 2016.2.bsam2016-07-223-71/+61 * When there is a do-install target, do not use a post-install target, domat2016-07-194-10/+3 * Remove expired port:rene2016-07-188-2047/+0 * java/intellij: update and add a commentbsam2016-07-134-41/+61 * java/openjfx8-devel: Unbreak build after Gradle updatepi2016-07-102-2/+10 * Add an explicit include of <unistd.h>, which is required onmi2016-07-032-2/+3 * Add port of JXGrabKey -- a Java library for working with X11mi2016-06-307-0/+97 * New port: java/aparapipi2016-06-269-0/+243 * With the power of USES=dos2unix, get rid of most patches and filesmat2016-06-214-23/+26 * . Regenerate patch-bsd and patch-bsd-test. This obsoletes another patchglewis2016-06-183-2232/+1574 * . Fix a double free bug. This is pulled from upstream.glewis2016-06-162-1/+53 * Unbreak arm.jkim2016-06-134-10/+63 * . Handle unsafe operations that access invalid memory more gracefully.glewis2016-06-132-0/+15 * . Use poll() rather than select() on BSD to avoid crashes during networkglewis2016-06-132-0/+86 * Handle unsafe operations that access invalid memory more gracefullyglewis2016-06-131-0/+14 * java/java-checkstyle: Update version 6.3=>6.19bofh2016-06-122-5/+10 * java/intellij: Update to version 2016.1.3.bsam2016-06-102-5/+5 * Remove expired ports:rene2016-06-024-30/+0 * java/intellij-pycharm: Update to version 2016.1.4.bsam2016-05-272-3/+4 * Remove NLS, DOCS, EXAMPLES and IPV6 from OPTIONS_DEFAULT, they are enabled by...amdmi32016-05-242-2/+2 * Convert tab after WWW: in pkg-descrs to single space as per PHBamdmi32016-05-244-4/+4 * . Update to 7u101glewis2016-05-213-2016/+1054 * - Fix trailing whitespace in pkg-messagesamdmi32016-05-192-2/+2 * - Fix trailing whitespace in pkg-descrs, categories [g-n]*amdmi32016-05-1921-38/+38 * . Update to 8u92.glewis2016-05-176-3382/+6995 * IntelliJ PyCharm is an advanced IDE developed by JetBrains andbsam2016-05-178-0/+1269 * java/intellij: Update to version 2016.1.2b.bsam2016-05-172-4/+5 * java/intellij: update to version 2016.1.2, take maintainership.bsam2016-05-173-114/+148 * java/intellij-pty4: A new version of IntelliJ IDEA (pending commit)bsam2016-05-171-3/+1 * Remove expired ports:rene2016-05-106-776/+0 * Update to b39.jkim2016-05-063-16/+30 * Drop maintainership, mark IGNORE and set EXPIRATION_DATEarved2016-05-021-1/+5 * Convert USES=gem:autoplist to USES=gem since autoplist is defaultswills2016-04-281-1/+1 * create USES=gem and update rubygem- ports to use itswills2016-04-281-2/+1 * Remove expired port:rene2016-04-246-3229/+0 * . Update to 8u92glewis2016-04-232-3/+3 * . Update to 8u92glewis2016-04-232-5/+5 * many ports: mark broken on powerpc64swills2016-04-221-0/+2 * . Update to 2016d.glewis2016-04-203-3/+5 * Do not attempt to create ${STAGEDIR}${DESKTOPDIR}: `share/applications'danfe2016-04-161-1/+0 * USE_RC_SUBR=yes has not done anything for a long time, remove it frommat2016-04-141-1/+0 * Point WWW link to the archived home page of the project due to themadpilot2016-04-141-1/+1 * - Mark BROKEN, does not build:amdmi32016-04-121-0/+2 * Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.mat2016-04-0146-125/+125 * Fixup some whitespace at the beginning of lines problems.mat2016-04-011-1/+1 * . Update to 8u77.glewis2016-03-282-3/+9 * java/wildfly100: update to 10.0.0.Finaljunovitch2016-03-274-263/+295 * . Update to 8u77glewis2016-03-272-3/+3 * . Update to 8u77.glewis2016-03-272-5/+5 * java/openjfx8-devel: create portswills2016-03-218-0/+174 * Reset MAINTAINER to ports@. Maintainer doesn't use this port any more.cy2016-03-181-1/+1 * . Update to 2016b.glewis2016-03-173-5/+6 * Update to 4.5.2.vanilla2016-03-124-20/+20 * Combine print/cups-base, print/cups-client and print/cups-image intotijl2016-03-113-3/+3 * java/intellij: 15.0.3 -> 15.0.4pi2016-02-2812-84/+167 * New port: java/jd-guipi2016-02-196-0/+67 * Update to 1.6.2.jkim2016-02-1213-4786/+216 * java/intellij: 15.0.1 -> 15.0.3pi2016-02-125-17/+67 * Update to 8u74.jkim2016-02-112-3/+3 * Update to 8u74.jkim2016-02-112-5/+5 * - Disable ccache for this port: it fails to build by not respecting the envir...amdmi32016-02-051-0/+2 * . Update to 7u95.glewis2016-02-033-882/+1923 * Remove expired ports:rene2016-02-0215-4070/+0 * . Update to 8u72.glewis2016-02-018-7856/+973 * Unbreak on head, the issue was fixed in base r294936antoine2016-01-311-1/+0 * java/dbvis: 9.1.6 -> 9.2.14pi2016-01-292-5/+5 * Mark deprecated and set expiration.jkim2016-01-272-2/+4 * . Update to 2015g.glewis2016-01-263-3/+4 * Mark forbidden. Oracle Java SE 7 has reached end-of-life status and it hasjkim2016-01-262-0/+4 * Update to 8u72.jkim2016-01-263-3/+5 * Update to 8u72.jkim2016-01-263-5/+7 * - Update to b38.jkim2016-01-262-7/+7 * Mark BROKEN on FreeBSD headantoine2016-01-231-0/+1 * . Unreak CCACHEglewis2016-01-212-0/+22 * New port: java/intellijpi2016-01-118-0/+1739 * java/wildfly(80|81|82): Deprecate three EOL versions of wildflymarino2016-01-093-0/+9 * Set CPE information.rakuco2016-01-071-0/+3 * - Partially implement getThreadUserTime() using getrusage(2). Note we canjkim2016-01-062-20/+58 * . Stub implementation of OperatingSystemImpl.glewis2016-01-022-1/+46 * - Add NO_ARCHamdmi32016-01-021-0/+5 * - prepare for devel/subversion17 removalohauer2015-12-301-5/+1 * java/wildfly80: address non-root builds and minor QA observationsjunovitch2015-12-263-13/+14 * java/wildfly81: address non-root builds and minor QA observationsjunovitch2015-12-263-13/+14 * Fix the previous commit. We do not support getThreadUserTime().jkim2015-12-231-1/+1 * Implement ThreadMXBean.getThreadCpuTime(), etc.jkim2015-12-233-0/+90 * - Reset maintainer to ports@wen2015-12-221-1/+1 * - Sort SUBDIRssunpoet2015-12-211-1/+1 * New port: java/wildfly100junovitch2015-12-188-0/+1748 * Fix build with fmake.jkim2015-12-151-1/+1 * Build compilefontconfig.jar and javazic.jar with bootstrap jar. Originallyjkim2015-12-151-2/+2 * Build with sjavac when we are self-hosting to improve build speed.jkim2015-12-151-0/+4 * Allow java/openjdk7 for bootstrapping java/openjdk8. Although we cannotjkim2015-12-151-4/+3 * Respect CC, CPP and CXX with full paths.jkim2015-12-151-1/+1 * Respect CC, CPP and CXX with full paths.jkim2015-12-151-0/+12 * . Update to 7u91glewis2015-12-142-4/+9 * Fix a bunch of false positive that are fetchablebapt2015-12-141-2/+0 * . Update to 8u66.glewis2015-12-134-2116/+4678 * Now that netbeans has been updated, mark the -devel version as ignore again.kwm2015-12-131-1/+1 * Update netbeans to 8.1.kwm2015-12-133-83/+677 * java/wildfly90: use 555 permissions instead to match original CHMODjunovitch2015-12-121-11/+11 * java/wildfly82: use 555 permissions instead to match original CHMODjunovitch2015-12-121-11/+11 * java/wildfly82: update 8.2.0 -> 8.2.1junovitch2015-12-124-95/+95 * java/wildfly90: update 9.0.1 -> 9.0.2junovitch2015-12-124-114/+115 * Restore jtreg disappeared in r396353.jkim2015-12-121-0/+2 * Work around build failures with Poudriere. We have to limit max heap sizejkim2015-12-111-0/+6 * Fix regression introduced in r372338, i.e., mis-merged fix for JDK-8031581.jkim2015-12-112-1/+24 * Add an upstream patch to fix build for some 32-bit platforms, i.e.,jkim2015-12-101-0/+28 * Upgrade to 3.0.1.20150306-5afe4d1.vanilla2015-12-092-4/+4 * Upgrade to 1.5.1.vanilla2015-12-092-3/+3 * Upgrade to 1.3.1.vanilla2015-12-092-3/+3 * - Add NO_ARCHamdmi32015-12-091-4/+3 * - Switch to options helpersamdmi32015-12-091-4/+2 * Update giflib to 5.1.1antoine2015-12-041-0/+1 * java/eclipse: 4.4.2 -> 4.5.1pi2015-12-037-299/+261 * Fix LICENSE. It always has been licensed under the LPGL.jkim2015-11-241-1/+1 * The old URL for jtreg disappeared.jkim2015-11-201-4/+3 * Update to b37.jkim2015-11-172-4/+4 * java/jrosetta:makc2015-11-062-43/+6 * Fix ports that confused the meaning of WRKDIR and WRKSRC.mat2015-11-054-17/+17 * java/sigar: Fix typo from previous commit (LATFORM => PLATFORM)marino2015-10-301-2/+2 * . Update to 8u66.glewis2015-10-242-3/+3 * . Update to 8u66.glewis2015-10-242-5/+5 * Add support for armv6hf. Tested on Raspberry Pi 2 Model B.jkim2015-10-165-31/+33 * Drop 8 support.mat2015-10-151-4/+2 * Update devel/subversion to 1.9.2.lev2015-10-151-0/+2 * Remove iconv(), iconv_open() and iconv_close() symbols from libiconv.tijl2015-10-101-1/+2 * Remove trailing whitespace from Makefiles, A-L.olgeni2015-10-082-2/+2 * java/eclipse-ecj: update to 4.4.2swills2015-10-023-15/+28 * Clean up and modernize the port. No functional change.jkim2015-09-302-66/+142 * . Add support for armv6.glewis2015-09-294-7/+148 * Typos, whitespace and capitalization fixes (G-P).olgeni2015-09-211-2/+2 * Add support for armv6sbruno2015-09-182-2/+9 * Update netbeans-devel to 8.1 beta snapshot from 201508041349.kwm2015-09-164-121/+634 * Do not build unnecessary targets to reduce build time.jkim2015-09-161-0/+7 * - Add NO_ARCHamdmi32015-09-121-2/+2 * . Move the large patches which contain the changes between updates of theglewis2015-09-09