Merge lp://qastaging/~mc-return/compiz/compiz.merge-fix1166195-fix1166196-fix116245-resizeinfo-fixes into lp://qastaging/compiz/0.9.10
Proposed by
MC Return
Status: | Merged |
---|---|
Approved by: | Sam Spilsbury |
Approved revision: | 3647 |
Merged at revision: | 3651 |
Proposed branch: | lp://qastaging/~mc-return/compiz/compiz.merge-fix1166195-fix1166196-fix116245-resizeinfo-fixes |
Merge into: | lp://qastaging/compiz/0.9.10 |
Diff against target: |
384 lines (+90/-74) 3 files modified
plugins/resizeinfo/resizeinfo.xml.in (+19/-7) plugins/resizeinfo/src/resizeinfo.cpp (+66/-62) plugins/resizeinfo/src/resizeinfo.h (+5/-5) |
To merge this branch: | bzr merge lp://qastaging/~mc-return/compiz/compiz.merge-fix1166195-fix1166196-fix116245-resizeinfo-fixes |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Sam Spilsbury | Approve | ||
Review via email:
|
Commit message
*Resizeinfo, xml changes:
Added option for bold/normal font, default is still bold.
Added option to change the font size (10-14), default is still 12
pixel.
Enhanced and corrected a few tooltips.
*Resizeinfo, code changes:
Choose between PANGO_WEIGHT_BOLD and PANGO_WEIGHT_
Use individual font size specified by the user in CCSM.
Fixed computation of wrong damageRegion, it was additionally adding
the window size, making it way too large.
Removed useless declaration of int width and height.
Declaration and assignment of local variables in one line, if possible.
Minor indentation fixes.
To post a comment you must log in.
Hi,
Please see my previous comments on the usage of the boy-scout rule.
These were the only changes that were actually substantial:
77 -const unsigned short RESIZE_POPUP_WIDTH = 85;
78 -const unsigned short RESIZE_POPUP_HEIGHT = 50;
79 +const unsigned short RESIZE_POPUP_WIDTH = 100;
80 +const unsigned short RESIZE_POPUP_HEIGHT = 33;
149 pango_font_ description_ set_family (font,"Sans"); description_ set_absolute_ size (font, 12 * PANGO_SCALE); description_ set_absolute_ size (font, sizeinfoFontSiz e () * description_ set_style (font, PANGO_STYLE_ NORMAL) ; description_ set_weight (font, PANGO_WEIGHT_BOLD); esizeinfoFontBo ld ()) description_ set_weight (font, PANGO_WEIGHT_BOLD); description_ set_weight (font, PANGO_WEIGHT_ NORMAL) ;
150 - pango_font_
151 + pango_font_
152 + is->optionGetRe
153 + PANGO_SCALE);
154 pango_font_
155 - pango_font_
156 -
157 +
158 + if (is->optionGetR
159 + pango_font_
160 + else
161 + pango_font_
As for those changes, they seem fine to me. I haven't got time to look at the formatting things just yet though.
162 +