Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-21 16:06:08 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-21 16:06:08 (GMT)
commit8840122a22a98ecf298d69337e76e3ed1d672edf (patch)
tree56e88da85780ee07fd0655cddd8402e96f82b7f5 /lib
parente3d6245e18e0477449107df746ce6d161c17090e (diff)
Don't show the progress bar when focused and round more the progress bar.
Diffstat (limited to 'lib')
-rw-r--r--lib/src/sugar-address-entry.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/src/sugar-address-entry.c b/lib/src/sugar-address-entry.c
index 68fab0a..07f2d13 100644
--- a/lib/src/sugar-address-entry.c
+++ b/lib/src/sugar-address-entry.c
@@ -456,9 +456,10 @@ sugar_address_entry_expose(GtkWidget *widget,
0, 0, area_width, area_height);
*/
- if (address_entry->progress != 0.0 && address_entry->progress != 1.0) {
+ if (address_entry->progress != 0.0 && address_entry->progress != 1.0 &&
+ !GTK_WIDGET_HAS_FOCUS(entry)) {
int bar_width = area_width * address_entry->progress;
- float radius = 5.0;
+ float radius = area_height / 2;
cr = gdk_cairo_create(entry->text_area);
cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);