mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Put Surface argument first in Dialog paint methods
This is the convention that most classes stick to. The likely reason why Dialog didn't stick to the convention was to be able to provide a default value for this argument, but that feature wasn't very useful since every caller already had access to the default surface.
This commit is contained in:
@@ -99,9 +99,9 @@ bool WallpaperDialog::exec()
|
||||
gmenu2x->drawTopBar(gmenu2x->s);
|
||||
gmenu2x->drawBottomBar(gmenu2x->s);
|
||||
|
||||
drawTitleIcon("icons/wallpaper.png",true);
|
||||
writeTitle(gmenu2x->tr["Wallpaper selection"]);
|
||||
writeSubTitle(gmenu2x->tr["Select a wallpaper from the list"]);
|
||||
drawTitleIcon(gmenu2x->s, "icons/wallpaper.png", true);
|
||||
writeTitle(gmenu2x->s, gmenu2x->tr["Wallpaper selection"]);
|
||||
writeSubTitle(gmenu2x->s, gmenu2x->tr["Select a wallpaper from the list"]);
|
||||
|
||||
buttonbox.paint(gmenu2x->s, 5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user