RE: How to apply a theme to a perl gtk program

2010-05-20 Thread Jeff Hallock
I use the theme selector available here: 
http://gtk-win.sourceforge.net/home/index.php/Downloads , the file you want is 
gtk2-themes-2009-09-07-ash.exe

Install this into the directory which you have installed Perl (on my system the 
path is C:\camelbox).

I ship my entire perl directory with my application – so the end user will have 
the themes installed. You can then give the user access to the C:\\gtk2_prefs.exe where they can change the look and feel of all Gtk2 apps 
on their system - OR – to force your application to load a particular theme, 
use this code early in your program,  replacing “Unity” with whatever theme you 
wish to:

my $mod   = Gtk2::RcStyle->new;
$mod->Gtk2::Rc::parse_string(
qq[
gtk-theme-name = "Unity"
style "user-font"
{
font_name="Sans 10"
}
widget_class "*" style "user-font"
]);




From: gtk-perl-list-boun...@gnome.org [mailto:gtk-perl-list-boun...@gnome.org] 
On Behalf Of Dan
Sent: Monday, April 12, 2010 5:23 AM
To: Xi Yang
Cc: gtk-perl-list@gnome.org
Subject: Re: How to apply a theme to a perl gtk program


On Mon, 12 Apr 2010 02:00:04 +, Xi Yang  wrote:
In platforms running in Gnome desktop, a perl Gtk program will have the native 
look, using the theme currently used by Gnome. However, while the script is 
running in windows, the default skin is boring. So, how to let a perl-gtk 
program use some theme other than default one?

I've had problems with this too. The best luck I've had is with Alex Shaduri's 
packages at: http://gtk-win.sourceforge.net/home/index.php/en/Home and 
ActiveState's Perl. Alex's packages have some decent themes and also a theme 
chooser.

Dan
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: How to apply a theme to a perl gtk program

2010-04-12 Thread Dan


On Mon, 12 Apr 2010 02:00:04 +, Xi Yang  wrote:  In platforms
running in Gnome desktop, a perl Gtk program will have the native look,
using the theme currently used by Gnome. However, while the script is
running in windows, the default skin is boring. So, how to let a perl-gtk
program use some theme other than default one? 

I've had problems with
this too. The best luck I've had is with Alex Shaduri's packages at:
http://gtk-win.sourceforge.net/home/index.php/en/Home and ActiveState's
Perl. Alex's packages have some decent themes and also a theme chooser.


Dan___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: How to apply a theme to a perl gtk program

2010-04-11 Thread Dov Grobgeld
Search for "Styles" in:

http://gtk2-perl.sourceforge.net/doc/yapc-2004-perl-gtk2/slides.html

Regards,
Dov

2010/4/12 Xi Yang 

>  In platforms running in Gnome desktop, a perl Gtk program will have the
> native look, using the theme currently used by Gnome. However, while the
> script is running in windows, the default skin is boring. So, how to let a
> perl-gtk program use some theme other than default one?
> --
> Hotmail: Free, trusted and rich email service. Get it 
> now.
>
> ___
> gtk-perl-list mailing list
> gtk-perl-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-perl-list
>
>
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


How to apply a theme to a perl gtk program

2010-04-11 Thread Xi Yang

In platforms running in Gnome desktop, a perl Gtk program will have the native 
look, using the theme currently used by Gnome. However, while the script is 
running in windows, the default skin is boring. So, how to let a perl-gtk 
program use some theme other than default one?  
 
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list