aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-09 22:43:39 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-09 22:43:39 +0800
commit14f210e058d32fd6b656f9f6184316f448b3eacb (patch)
tree3f5ac7c65fa45495fa40d56139176f0457f08e15 /widgets
parent4ac82c14c897e907e2df607920f5fe9a7b113eb5 (diff)
downloadgsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar.gz
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar.zst
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.zip
Don't draw quite as large a "flat_box". If draw_borders is TRUE, cause the
2000-07-09 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text/e-text.c: Don't draw quite as large a "flat_box". If draw_borders is TRUE, cause the cursor to change even if not editing. svn path=/trunk/; revision=4017
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-text/e-text.c16
-rw-r--r--widgets/text/e-text.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c
index 6d7e08dad2..e2a592ba25 100644
--- a/widgets/e-text/e-text.c
+++ b/widgets/e-text/e-text.c
@@ -1689,15 +1689,15 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
gdouble thisx = 0, thisy = 0;
gdouble thiswidth, thisheight;
GtkWidget *widget = GTK_WIDGET(item->canvas);
- gtk_paint_flat_box (widget->style, drawable,
- GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
- NULL, widget, "entry_bg",
- 0, 0, -1, -1);
gtk_object_get(GTK_OBJECT(text),
"width", &thiswidth,
"height", &thisheight,
NULL);
+ gtk_paint_flat_box (widget->style, drawable,
+ GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
+ NULL, widget, "entry_bg",
+ 0, 0, thiswidth, thisheight);
if (text->editing) {
thisx += 1;
thisy += 1;
@@ -2554,7 +2554,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
if(!text->editing) {
text->editing = TRUE;
if ( text->pointer_in ) {
- if ( text->default_cursor_shown ) {
+ if ( text->default_cursor_shown && (!text->draw_borders)) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->i_cursor);
text->default_cursor_shown = FALSE;
}
@@ -2572,7 +2572,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
} else {
text->editing = FALSE;
- if ( ! text->default_cursor_shown ) {
+ if ( (!text->default_cursor_shown) && (!text->draw_borders) ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->default_cursor);
text->default_cursor_shown = TRUE;
}
@@ -2717,7 +2717,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
text->pointer_in = TRUE;
- if (text->editing) {
+ if (text->editing || text->draw_borders) {
if ( text->default_cursor_shown ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->i_cursor);
text->default_cursor_shown = FALSE;
@@ -2735,7 +2735,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
text->pointer_in = FALSE;
- if (text->editing) {
+ if (text->editing || text->draw_borders) {
if ( ! text->default_cursor_shown ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->default_cursor);
text->default_cursor_shown = TRUE;
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 6d7e08dad2..e2a592ba25 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1689,15 +1689,15 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
gdouble thisx = 0, thisy = 0;
gdouble thiswidth, thisheight;
GtkWidget *widget = GTK_WIDGET(item->canvas);
- gtk_paint_flat_box (widget->style, drawable,
- GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
- NULL, widget, "entry_bg",
- 0, 0, -1, -1);
gtk_object_get(GTK_OBJECT(text),
"width", &thiswidth,
"height", &thisheight,
NULL);
+ gtk_paint_flat_box (widget->style, drawable,
+ GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
+ NULL, widget, "entry_bg",
+ 0, 0, thiswidth, thisheight);
if (text->editing) {
thisx += 1;
thisy += 1;
@@ -2554,7 +2554,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
if(!text->editing) {
text->editing = TRUE;
if ( text->pointer_in ) {
- if ( text->default_cursor_shown ) {
+ if ( text->default_cursor_shown && (!text->draw_borders)) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->i_cursor);
text->default_cursor_shown = FALSE;
}
@@ -2572,7 +2572,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
} else {
text->editing = FALSE;
- if ( ! text->default_cursor_shown ) {
+ if ( (!text->default_cursor_shown) && (!text->draw_borders) ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->default_cursor);
text->default_cursor_shown = TRUE;
}
@@ -2717,7 +2717,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
text->pointer_in = TRUE;
- if (text->editing) {
+ if (text->editing || text->draw_borders) {
if ( text->default_cursor_shown ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->i_cursor);
text->default_cursor_shown = FALSE;
@@ -2735,7 +2735,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
text->pointer_in = FALSE;
- if (text->editing) {
+ if (text->editing || text->draw_borders) {
if ( ! text->default_cursor_shown ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->default_cursor);
text->default_cursor_shown = TRUE;
lass='insertions'>+16 * Mark BROKEN: does not fetcherwin2008-02-031-0/+2 * Fix pkg-plist, use USE_RC_SUBR instead.vanilla2008-02-013-41/+46 * Add avis 1.2.0, elvin Publish/Subscribe Message Bus server based on thevanilla2008-01-299-0/+160 * The Spring Framework is the leading full stack Java/JEE applicationmiwi2008-01-234-0/+131 * - Update to 1.1.0.007007 (from 004323)nivit2008-01-234-10/+12 * PyDev is a plugin that enables users to use Eclipse for Python and Jythonnivit2008-01-235-0/+60 * . Make CUPS a build depends only and depend on the header file searchedglewis2008-01-211-2/+2 * - Mark BROKEN: unfetchablepav2008-01-211-0/+2 * - Update to 1.0.9.araujo2008-01-202-6/+5 * - Update to 1.0.12.araujo2008-01-202-5/+5 * . Force eclipse to use one of the jdk* ports rather than the diablo-jdk15glewis2008-01-172-1/+15 * . Make eclipse-devel.desktop point to eclipse-devel as it should ratherglewis2008-01-174-9/+19 * RDT is an open source Ruby IDE for the Eclipse platform.miwi2008-01-144-0/+84 * . Install the PKCS#11 JAR and build and install the PKCS#11 native library.glewis2008-01-143-1/+54 * . Update to 1.6.0_04/6u4.glewis2008-01-143-76/+121 * . Update to 1.5.0_14.glewis2008-01-132-5/+5 * . Update to 1.4.2_16.glewis2008-01-133-7/+12 * . Update to tzupdater 1.3.3.glewis2008-01-132-7/+7 * . Update to tzupdater 1.3.3.glewis2008-01-132-7/+7 * . Implement OpenFileDescriptorCount for BSD. This requires fdescfs.glewis2008-01-131-3/+55 * . Update to tzupdater 1.3.3.glewis2008-01-132-6/+7 * . Update to tzupdater 1.3.3.glewis2008-01-136-14/+42 * - Update to 1.0.8a.araujo2008-01-022-5/+4 * - Update to 1.0.10.araujo2008-01-022-5/+4 * . Implement or fix more of the OS specific statistics gathering functions.glewis2008-01-022-1/+122 * o Switch to a static PLIST instead of a install time generated timelioux2007-12-252-4/+508 * New port eclipse-hibernatetools "x-mas" :) version 3.2.0 beta9a:lioux2007-12-255-0/+388 * o Update to 1.5.1_101607lioux2007-12-243-19/+57 * Aptana Studio is an IDE, designed for web developers and providesnivit2007-12-227-0/+127 * Commonclipse is an eclipse plugin for jakarta commons-lang users.miwi2007-12-215-0/+49 * upgrade to 4.4ijliao2007-12-202-7/+6 * Fix path for grep and gconftool-2 in startup script.olgeni2007-12-204-0/+118 * Upgrade to version 6.0.olgeni2007-12-196-26/+22 * Update to 4.1 release.ale2007-12-192-4/+4 * - Register conflicts against sablevm-classpathpav2007-12-161-0/+2 * - Update to 1.13pav2007-12-1611-2915/+5705 * - update to 5.5.1nemoliu2007-12-142-9/+6 * - Update to 4.2.2rafan2007-12-132-5/+5 * Remove obsolete JDK versions 1.1 and 1.2, and the ports depending on them.linimon2007-12-1246-6565/+0 * Update to 1.3.0.20071108lioux2007-12-122-11/+63 * Drop maintainershiplioux2007-12-121-1/+1 * Fix DESCRlioux2007-12-121-14/+2 * Update to 1.38 release.ale2007-12-122-4/+4 * Broken: leaves egg file behind on deinstall.linimon2007-11-251-0/+2 * . Update to patchset 3, based on 1.6.0_03 (aka 6u3).glewis2007-11-162-18/+16 * . Update to tzupdater 1.3.0 to fix the default build (the previous versionglewis2007-11-1610-28/+30 * . Chase the eclipse-emf upgrade.glewis2007-11-075-5/+5 * - Update to 6.0.6miwi2007-11-052-4/+4 * Change Java dependency to the lowest non-deprecated version.brueffer2007-11-021-1/+1 * Does not work with Java 1.6. the JVMPI interface used by this port haslinimon2007-10-291-1/+1 * . Update to patchset 2 (based on 1.6.0_02 aka 6u2)glewis2007-10-2916-942/+48 * Update to 3.1 release.ale2007-10-283-31/+19 * Remove 1.1 and 1.2 as supported Java versions. They are going away.linimon2007-10-281-1/+1 * - Only support emacs22 (cedet only does that as far as I can see)pav2007-10-281-14/+3 * Adding a port of the Sun Java Runtime Environment 1.6 for Linux.jkim2007-10-277-0/+944 * Adding a port of the Sun Java Runtime Environment 1.5 for Linux.jkim2007-10-277-0/+864 * . The build now works with JDK 1.5, so update JAVA_VERSION accordingly.glewis2007-10-251-1/+1 * . Update to 3.3.1.glewis2007-10-2467-3813/+1002 * . Remove unused PORTTITLE variable.glewis2007-10-243-3/+0 * . Update to patchset 7, based on 1.5.0 Update 13.glewis2007-10-245-97/+14 * . Explicitly pull in X dependencies instead of depending on the open-motifglewis2007-10-212-0/+2 * . Temporarily alter the download location until the patchset for u13glewis2007-10-181-1/+1 * Migration from bison 1.x to 2.xade2007-10-171-2/+2 * ShellEd is a superb shell script editor for Eclipse. The great benefit ofmiwi2007-10-174-0/+53 * . Update to 2.2.4.glewis2007-10-172-5/+5 * . Fix MASTER_SITES so that it will correctly cycle through the Eclipseglewis2007-10-171-2/+2 * . Builds and runs on amd64 as well.glewis2007-10-131-1/+1 * . Enlist eclipse-devel to get some wider spread of the Eclipse 3.3 portglewis2007-10-13135-750/+8250 * Update to 4.0.1 release.ale2007-10-122-4/+4 * Remove expired leaf ports:vd2007-10-124-60/+0 * . Explicitly pull in X dependencies instead of depending on the open-motifglewis2007-10-111-0/+1 * - Update maintainer mail adressmiwi2007-10-111-2/+2 * - Unbreakmiwi2007-10-092-8/+4 * . Don't quote NO_CDROM or RESTRICTED to make portlint a little happier.glewis2007-10-071-2/+2 * - Remove pr-patchmiwi2007-10-061-84/+0 * Development using the properties file is performed by Java by the settingmiwi2007-10-065-0/+138 * . Update to 1.6.0_03 aka 6u3.glewis2007-10-063-4/+1504 * . Update to 1.5.0_13.glewis2007-10-053-4/+5 * . Don't quote NO_CDROM or RESTRICTED to make portlint a little happier.glewis2007-10-051-2/+2 * Fix build on i386 with WITHOUT_WEB option.jkim2007-10-052-0/+28 * Mark as broken with gcc4.2. Note: this looks like abadonware.linimon2007-10-041-1/+7 * Remove always-false/true conditions based on OSVERSION 500000edwin2007-10-045-10/+4 * Remove support for OSVERSION < 5edwin2007-10-041-2/+2 * . Update to 2.2.3.glewis2007-10-032-6/+5 * Mark the port DEPRECATED and schedule its removal after one monthhq2007-10-021-0/+3 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-301-2/+2 * Update to 4.0 release.ale2007-09-292-4/+4 * Mark as broken: fails to fetch.linimon2007-09-281-0/+4 * - Update to 0.6.13miwi2007-09-282-13/+12 * Implementaion of the OMG OCL for EMF-based models.miwi2007-09-244-0/+46 * - Update to 4.2.1.GArafan2007-09-233-7/+7 * Update to 3.10.1 release:ale2007-09-208-109/+43 * . Default UseThreadPriorities to false on BSD. This can be toggled byglewis2007-09-203-18/+59 * 2007-08-22 java/jdk11-doc: Obsolete version of jdkmiwi2007-09-197-102/+0 * . Fix build problems with cpu.h being picked up from /usr/local/include.glewis2007-09-101-0/+24 * . Fix build failures by setting LC_ALL="C" in MAKE_ENV.glewis2007-09-091-0/+1 * Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.linimon2007-09-081-5/+1 * . Update to tzupdater 1.2.2.glewis2007-09-082-6/+6 * . Update to tzupdater 1.2.2.glewis2007-09-082-5/+6 * . Update to tzupdater 1.2.2.glewis2007-09-072-6/+6 * . Update to tzupdater 1.2.2.glewis2007-09-076-40/+14 * Remove expired port: Modern versions of jdk support generics nativelyvs2007-09-044-275/+0 * . Mark this as BROKEN for gcc 4.2. The HotSpot C++ code needs some workglewis2007-09-021-0/+4 * . Fix another problem with exec() by using the same static initialisationglewis2007-09-022-1/+16 * . Sync the BSD specific code with the changes between 1.5 and 1.6 andglewis2007-08-282-1/+32 * . Correctly respect WITHOUT_WEB. This should fix the default amd64 buildglewis2007-08-231-8/+9 * . Add USE_XORG configuration. I'm guessing that prior to the modularglewis2007-08-211-0/+1 * . Make sure ${PREFIX}/share/applications exists before installing filesglewis2007-08-211-0/+1 * . New port which installs the Java SE 6 documentation as provided by Sun.glewis2007-08-204-0/+55 * Correct dependencies to fix package build.nobutaka2007-08-191-5/+14 * . Add unzip to BUILD_DEPENDS.glewis2007-08-181-0/+1 * Add browser plugin support for amd64. It is turned off by default as it isjkim2007-08-172-1/+707 * Unbreak build on -CURRENT.jkim2007-08-173-0/+51 * Mark IGNORE if NOPORTDOCS is defined since this port cosist only of docs.itetcu2007-08-141-0/+4 * Update to the latest version and unbreak.itetcu2007-08-142-12/+10 * . Split the JRL agreement out into a separate script that is only runglewis2007-08-143-195/+195 * . Split the JRL agreement out into a separate script that is only runglewis2007-08-133-195/+195 * - Set LANG environment variable to C for non-US locale users.jkim2007-08-101-0/+3 * . Complete default the bootstrap to Diablo.glewis2007-08-071-3/+1 * . Default bootstrapping to Diablo JDK. It runs at least as well as theglewis2007-08-071-4/+2 * . Fix the 'shebang' line in jcontrol. [1]glewis2007-08-072-2/+12 * . Make BUILD_DEPENDS against the Diablo JDK, not the Linux JDK. [2]glewis2007-08-075-13/+97 * - Update to 3.9miwi2007-08-062-7/+5 * . Add jdk16 subdir.glewis2007-08-061-0/+1 * . A native port for JDK 1.6.0 (aka 6.0) Update 1.glewis2007-08-0656-951/+588 * . Add linux-sun-jdk16.glewis2007-08-061-0/+1 * . New port of Sun's JDK 1.6.x (aka 6.x) for Linux.glewis2007-08-065-75/+482 * - Remove the DESTDIR modifications from individual ports as we have a new,gabor2007-08-042-2/+2 * - Update to 3.2.2nemoliu2007-08-038-132/+33 * . Require at least JDK 1.3.glewis2007-08-011-3/+1 * . Better fix. Just use 'short' variables and be done with it. Theglewis2007-07-312-6/+28 * . Include a different header file for 'fastInt'. The definition in Hint.hglewis2007-07-312-0/+26 * Add browser plugin support for amd64. It is turned off by default as it isjkim2007-07-304-2/+1166 * . Unbreak by providing a working MASTER_SITE.glewis2007-07-301-3/+1 * - Update to 3.2.8pav2007-07-3010-55/+117 * - Update to 4.2.0.GA2pav2007-07-309-53/+92 * - Update to 6.0.2pav2007-07-29