]> Pileus Git - ~andy/gtk/commit
entry: trim the progress bar area if the text area is resized
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Feb 2012 10:28:36 +0000 (11:28 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Feb 2012 10:44:51 +0000 (11:44 +0100)
commit5f9c8f653daac7c7aa22fa6160771f7f899216bc
tree43db89bea9ac835204c562099fd5b23472b552bf
parent9a732c40fc07e5aa3c9b946f935527c89bf905f3
entry: trim the progress bar area if the text area is resized

When a subclass of GtkEntry (e.g. GtkSpinButton) resizes the available
text area (by overriding the get_text_area_size vfunc), we need to
ensure we don't draw a possible progressbar over the part that got
removed from the text area.
This fixes drawing a progressbar in GtkSpinButton and in its subclasses,
such as GimpSpinScale, and makes Mitch happy too!
gtk/gtkentry.c