2014-02-28 23:42:51 +00:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
# metacity-test - A simple script to test Metacity themes by popping up a simple
|
|
|
|
# window just to show off the window decorations.
|
|
|
|
#
|
|
|
|
# Requires Perl/Tk.
|
|
|
|
#
|
|
|
|
# --Kirsle
|
|
|
|
# http://sh.kirsle.net/
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Tk;
|
|
|
|
|
|
|
|
my $str = join (" ",@ARGV) || 'Preview';
|
|
|
|
|
|
|
|
my $mw = MainWindow->new (
|
2015-04-28 00:56:26 +00:00
|
|
|
-title => "Title",
|
2014-02-28 23:42:51 +00:00
|
|
|
);
|
|
|
|
$mw->optionAdd ('*highlightThickness',0);
|
|
|
|
|
|
|
|
$mw->Label (
|
|
|
|
-width => 25,
|
|
|
|
-textvariable => \$str,
|
|
|
|
-relief => 'flat',
|
|
|
|
-font => [
|
|
|
|
-weight => 'bold',
|
|
|
|
-size => 12,
|
|
|
|
-family => 'Arial',
|
|
|
|
],
|
2015-04-28 00:56:26 +00:00
|
|
|
)->pack (-padx => 15, -pady => 15);
|
2014-02-28 23:42:51 +00:00
|
|
|
|
|
|
|
MainLoop;
|