Re: A perl/Gtk Newbie



by the way,

On Thu, 2004-03-11 at 10:11, Dan Lyke wrote:
use Gtk2::Pango;

this imports the exportable constants in the module, so

    'b' => [weight => Gtk2::Pango::PANGO_WEIGHT_BOLD],
    'small' => [scale => Gtk2::Pango::PANGO_SCALE_SMALL],
    'large' => [scale => Gtk2::Pango::PANGO_SCALE_LARGE],
    'h1' => [scale => Gtk2::Pango::PANGO_SCALE_XX_LARGE],
    'h2' => [scale => Gtk2::Pango::PANGO_SCALE_X_LARGE],

could/should be reduced to 

    'b' => [weight => PANGO_WEIGHT_BOLD],
    'small' => [scale => PANGO_SCALE_SMALL],
    'large' => [scale => PANGO_SCALE_LARGE],
    'h1' => [scale => PANGO_SCALE_XX_LARGE],
    'h2' => [scale => PANGO_SCALE_X_LARGE],


-- 
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]