Re: gtkeditable editable property
| From: | Malk0 | Date: | Thu, 31 Mar 2005 23:09:19 +0000 |
| Subject: | Re: gtkeditable editable property | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5710@lists.php.net to get a copy of this message | ||
I've think of this but this doesn't sweet my needs as there's only one
menu to popup but multiple gtkeditable to manage on that single
callback. it's a generic function to add a right click menu on any
gtkeditable (in fact a method of a menu object of mine
$menueditable->connect_editable($gtkeditbale)). I don't want to
manage hundreds of flags in my apps by myself as i'll have to do this
for all editable in my apps (there's hundreds of them really). As i'm
not sure that the object was editable or not when connected to the
menueditable object, i want it to be capable of retrieving this state
by itself.
I eventually can constraint that gtkeditable to be editable when
connected to the menuedit object, and then keep a trace of a
'home-made' flag for each editable connected. But i'm sure that it
will cause some bug if an editable is connected and isn't editable at
this time. So i prefer wait for php-gtk2 and a more clean way to add
this stuff.
thanks at all for your suggestion.
On Thu, 31 Mar 2005 22:44:01 +0100, Steph <steph@zend.com> wrote:
> 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
> >
>
>
--
-- Malk0 --
venez discuter php-gtk en francais ici http://mk0phpgtk.xgarreau.org