summaryrefslogtreecommitdiffstats
path: root/views/controls/button/native_button_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/button/native_button_gtk.h')
-rw-r--r--views/controls/button/native_button_gtk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/controls/button/native_button_gtk.h b/views/controls/button/native_button_gtk.h
index 6c3f600..1d0dfc1 100644
--- a/views/controls/button/native_button_gtk.h
+++ b/views/controls/button/native_button_gtk.h
@@ -44,6 +44,12 @@ class NativeButtonGtk : public NativeControlGtk, public NativeButtonWrapper {
// The NativeButton we are bound to.
NativeButton* native_button_;
+ // The preferred size from the last size_request. We save this until we are
+ // notified that data may have caused the preferred size to change because
+ // otherwise it seems every time we call gtk_widget_size_request the size
+ // returned is a little larger (?!).
+ gfx::Size preferred_size_;
+
DISALLOW_COPY_AND_ASSIGN(NativeButtonGtk);
};