Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 159458: Gtk: Implement font selection options. (Closed)

Created:
11 years, 4 months ago by mattm
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Gtk: Implement font selection options. BUG=11507 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21786

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix nits, free PangoFontDescription, fix buttons after choosing a font #

Patch Set 3 : move the NotifyPrefChanged call into SetFontsFromButton #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -4 lines) Patch
M chrome/browser/gtk/options/fonts_languages_window_gtk.cc View 5 chunks +8 lines, -4 lines 0 comments Download
A chrome/browser/gtk/options/fonts_page_gtk.h View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/gtk/options/fonts_page_gtk.cc View 1 2 1 chunk +157 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mattm
11 years, 4 months ago (2009-07-28 00:27:12 UTC) #1
tony
LGTM, just some nits. http://codereview.chromium.org/159458/diff/1/3 File chrome/browser/gtk/options/fonts_page_gtk.cc (right): http://codereview.chromium.org/159458/diff/1/3#newcode17 Line 17: std::string r; Nit: Can ...
11 years, 4 months ago (2009-07-28 00:46:42 UTC) #2
mattm
nits addressed, also made a few more changes: free the PangeFontDescription Fix the size of ...
11 years, 4 months ago (2009-07-28 01:03:12 UTC) #3
tony
11 years, 4 months ago (2009-07-28 01:07:22 UTC) #4
LGTM

I think you ran into http://code.google.com/p/chromium/issues/detail?id=6749
about the pref observer not firing.  Maybe move the NotifyPrefChanged call into
SetFontsFromButton?

On 2009/07/28 01:03:12, mattm wrote:
> nits addressed, also made a few more changes:
> 
> free the PangeFontDescription
> 
> Fix the size of the buttons after selecting a font.  Since the sans and serif
> both share the same value but there were two prefs for it, sometimes(depending
> which changed?) the pref observer callback would already cause this to happen
> for those..  but this does it reliably and for the fixed width too.
> 
> 
> On 2009/07/28 00:46:42, tony wrote:
> > LGTM, just some nits.
> > 
> > http://codereview.chromium.org/159458/diff/1/3
> > File chrome/browser/gtk/options/fonts_page_gtk.cc (right):
> > 
> > http://codereview.chromium.org/159458/diff/1/3#newcode17
> > Line 17: std::string r;
> > Nit: Can you use a longer variable name, e.g., label or text or something?
> > 
> > http://codereview.chromium.org/159458/diff/1/4
> > File chrome/browser/gtk/options/fonts_page_gtk.h (right):
> > 
> > http://codereview.chromium.org/159458/diff/1/4#newcode4
> > Line 4: 
> > Can you add a sentence or two describing what's on this page?
> > 
> > http://codereview.chromium.org/159458/diff/1/4#newcode5
> > Line 5: #ifndef CHROME_BROWSER_GTK_OPTIONS_FONTS_PAGE_GTK_H__
> > Nit: Only one trailing _.

Powered by Google App Engine
This is Rietveld 408576698