Re: gtkeditable editable property
| From: | Steph | Date: | Thu, 31 Mar 2005 21:44:01 +0000 |
| Subject: | Re: gtkeditable editable property | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5708@lists.php.net to get a copy of this message | ||
OK, so you set a flag in PHP, $editable = 'false', at the start of your
script. The default behaviour is 'false' and you need to set it to
'set_editable' to change that, so just set $editable = true; at the same
time. Pass that home-made flag to your callback function, or globalise it.
I don't see a need to wait for GTK 2 for that...
----- Original Message -----
From: "Malk0" <malk0.phpgtk@gmail.com>
To: "Steph" <steph@zend.com>
Cc: "[PHP-GTK]" <php-gtk-general@lists.php.net>
Sent: Thursday, March 31, 2005 10:34 PM
Subject: Re: [PHP-GTK] gtkeditable editable property
> i'm not sure to understand what you're trying to point me on.
> What i need is to know if a gtkeditable is set editable or not in a
> callback function.
> this function popup a menu on a right click for cut/copy/paste and
> stuff like that.
> What i want to achieve is to set the cut or paste menuitem
> insensitive. At this time they still sensitive and so users doesn't
> always understand why selecting thoose menuentry has no effect. It's
> not an important thing at all just enhancement so they just will wait
> until phpGTK2
> thanks for your time
> best regards
>
> malko
>
>
> On Thu, 31 Mar 2005 21:05:03 +0100, Steph <steph@zend.com> wrote:
> > It's a long-running script - so use PHP?
> >
> > ----- Original Message -----
> > From: "Malk0" <malk0.phpgtk@gmail.com>
> > To: "Steph" <steph@zend.com>
> > Sent: Thursday, March 31, 2005 8:57 PM
> > Subject: Re: [PHP-GTK] gtkeditable editable property
> >
> > > that's exactly what i supposed :-/
> > > is there any other way (flag or so) that can be test to retrieve the
> > > state of this setting?
> > >
> > >
> > > On Thu, 31 Mar 2005 18:21:56 +0100, Steph <steph@zend.com> wrote:
> > > > The property is not exposed, so yes, assuming it exists in GTK+, it
is
> > > > 'missing'. But development's focusing on PHP-GTK 2 now, and
> > > > afaicr
> > > > GtkEditable isn't even there in GTK 2... so the chances aren't good
> > that
> > > > it'll be 'fixed'.
> > > >
> > > > ----- Original Message -----
> > > > From: "Malk0" <malk0.phpgtk@gmail.com>
> > > > To: "Steph" <steph@zend.com>
> > > > Sent: Thursday, March 31, 2005 5:44 PM
> > > > Subject: Re: [PHP-GTK] gtkeditable editable property
> > > >
> > > > > no error message when using the set_editable method setting TRUE
or
> > > > > FALSE is not a problem and it work as i can expect.
> > > > > But when trying to get $gtkeditable->editable i never retrieve
> > > > > anything it still empty.
> > > > > That's why i think it's missing.
> > > > > regards,
> > > > > malko
> > > > >
> > > > > On Thu, 31 Mar 2005 17:23:13 +0100, Steph <steph@zend.com> wrote:
> > > > > > ? You won't get an error-message through setting
set_editable(true)
> > if
> > > > it
> > > > > > isn't...
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Malk0" <malk0.phpgtk@gmail.com>
> > > > > > To: "[PHP-GTK]" <php-gtk-general@lists.php.net>
> > > > > > Sent: Thursday, March 31, 2005 5:13 PM
> > > > > > Subject: [PHP-GTK] gtkeditable editable property
> > > > > >
> > > > > > > hi all,
> > > > > > > I was looking to the php-gtk manual after the editable
property of
> > the
> > > > > > > gtkeditable widget, and there's no mention about it.
Effectively
> > this
> > > > > > > properties don't seem to be present in php-GTK.
> > > > > > > Is one of you have a method to know if a gtkeditable has been
set
> > > > > > > editable or not?
> > > > > > > thanks in advance
> > > > > > > --
> > > > > > >
> > > > > > > -- Malk0 --
> > > > > > > venez discuter php-gtk en francais ici
> > http://mk0phpgtk.xgarreau.org
> > > > > > >
> > > > > > > --
> > > > > > > PHP-GTK General Mailing List (http://gtk.php.net/)
> > > > > > > To unsubscribe, visit:
> > > > > > > http://www.php.net/unsub.php
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>