Re: GTKLabel
- From: Paolo Molaro <lupus ximian com>
- To: gtk-perl-list gnome org
- Subject: Re: GTKLabel
- Date: Tue, 13 Mar 2001 01:02:59 +0100
On 03/10/01 budman wrote:
I'm writing an applet that uses GTKLabel. It works fine, except ...
using the set_text, if the label contains the same text as the update, it zeros
out the text.
I ended up clearing the label text, then writing the new data.
That is really strange: something other than that must be happening.
Try:
use Gtk qw(-init);
$w=new Gtk::Window;
$l = new Gtk::Label('a');
$w->add($l);
$w->show_all;
Gtk->timeout_add(1000, sub{
$l->set_text($l->get)
});
Gtk->main;
It works fine here.
Maybe it's a bug in the expose of the GtkFixed container when it's
embedded in the panel?
I originally used a vbox, but then chose a fixed widget so I can place
a pixmap on the bkgnd.
Wrong way to do it.
Is there a way to place a xpm pixmap as a background image? (like the
tiles on the panel)
I was reading about the style widget - can I assign a pixmap background
using style, and vbox?
Check Gtk/samples/gtkrctest.pl in the cvs sources.
Or you can use $widget->window->set_back_pixmap($pixmap, $parent_rel);
lupus
--
-----------------------------------------------------------------
lupus debian org debian/rules
lupus ximian com Monkeys do it better
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]