Re: Notify signal font size has changed
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Notify signal font size has changed
- Date: Mon, 08 Sep 2014 22:20:04 +0200
On 08.09.2014 09:16, Thomas Funk wrote:
I'm developing a RAD library to create GUI applications based on Gtk2::Fixed.
First, are you aware of Glade and GtkBuilder?
Second, are you absolutely sure you want to use GtkFixed as a basis, as
opposed to, say, the box model based on GtkBox?
So I thought catching the event which signals Gtk to switch the font size would
be fine to rescale all the fixed widgets.
In principle, GtkSettings' "notify::gtk-font-name" can be used for this,
but it's not available in perl-Gtk2, only perl-Gtk3:
perl -MGtk3=-init -E'my $s = Gtk3::Settings::get_default (); say $s->get
("gtk-font-name"); $s->signal_connect ("notify::gtk-font-name", sub {
say $s->get ("gtk-font-name") }); Gtk3::main ();'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]