Chromium Code Reviews

Issue 1773006: Fix the missing gtk options bug. (Closed)

Created:
10 years, 8 months ago by xiyuan
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Fix the missing gtk options bug. Native gtk options pages rely on host to call gtk_widget_show_all. Doing this after options dialog's size allocated. This is because the WrapLabelAtAllocationHack trick in ContentPageGtk needs container's size allocated when the label is being shown. BUG=<http://crosbug.com/2859> TEST=Verify fix for ChromeOS issue 2859 and in sync status message in "Peronal Stuff" tab is wrapped correctly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45808

Patch Set 1 #

Total comments: 2

Patch Set 2 : address sky's comment #

Total comments: 2

Patch Set 3 : better place to do gtk_widget_show_all #

Unified diffs Side-by-side diffs Stats (+7 lines, -0 lines)
M chrome/browser/chromeos/options/options_window_view.cc View 1 chunk +7 lines, -0 lines 0 comments

Messages

Total messages: 6 (0 generated)
xiyuan
10 years, 8 months ago (2010-04-26 23:42:24 UTC) #1
sky
http://codereview.chromium.org/1773006/diff/1/2 File chrome/browser/chromeos/options/options_window_view.cc (right): http://codereview.chromium.org/1773006/diff/1/2#newcode201 chrome/browser/chromeos/options/options_window_view.cc:201: if (width()) { Would it be better to put ...
10 years, 8 months ago (2010-04-26 23:54:58 UTC) #2
xiyuan
http://codereview.chromium.org/1773006/diff/1/2 File chrome/browser/chromeos/options/options_window_view.cc (right): http://codereview.chromium.org/1773006/diff/1/2#newcode201 chrome/browser/chromeos/options/options_window_view.cc:201: if (width()) { On 2010/04/26 23:54:58, sky wrote: > ...
10 years, 8 months ago (2010-04-27 00:09:48 UTC) #3
sky
http://codereview.chromium.org/1773006/diff/5001/6001 File chrome/browser/chromeos/options/options_window_view.cc (right): http://codereview.chromium.org/1773006/diff/5001/6001#newcode203 chrome/browser/chromeos/options/options_window_view.cc:203: initialized_ = true; This means you're setting initialiazed_ at ...
10 years, 8 months ago (2010-04-27 16:57:13 UTC) #4
xiyuan
Found that we could do the show all logic after Window show. It works and ...
10 years, 8 months ago (2010-04-27 17:08:32 UTC) #5
sky
10 years, 8 months ago (2010-04-27 17:21:42 UTC) #6
LGTM

Powered by Google App Engine