From 8840122a22a98ecf298d69337e76e3ed1d672edf Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 21 Mar 2007 16:06:08 +0000 Subject: Don't show the progress bar when focused and round more the progress bar. --- (limited to 'lib') 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); -- cgit v0.9.1