| Index: chrome/browser/gtk/sad_tab_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/gtk/sad_tab_gtk.cc (revision 32365)
|
| +++ chrome/browser/gtk/sad_tab_gtk.cc (working copy)
|
| @@ -168,8 +168,10 @@
|
| // Only readjust width for message if width of widget has changed.
|
| if (allocation->width != 0 && allocation->width != width_) {
|
| width_ = allocation->width;
|
| - // Set width for wrappable message.
|
| - gtk_widget_set_size_request(message_, width_ - (kTabHorzMargin * 2), -1);
|
| + // If necessary, set width for wrappable message.
|
| + int message_width = width_ - (kTabHorzMargin * 2);
|
| + if (message_width > -1)
|
| + gtk_widget_set_size_request(message_, message_width, -1);
|
| }
|
| }
|
|
|
|
|