Re: [pygtk] gtk_accel_groups_activate ()

2009-01-04 Thread Yann Leboulanger
Gian Mario Tagliaretti wrote:
> On Wed, Dec 31, 2008 at 9:55 AM, Yann Le Boulanger  
> wrote:
> 
>> Any idea why this function is not implemented in pygtk?
> 
> It's in the ignore list in gtk.override, I don't know why though.
> 
> If you want to remove it from ignore, recompile pygtk and test it, if
> it works we could fix it later, I suspect there is a reason why
> someone put it in the ignore section.

I'm not very faniliar with python bindings, so I won't be able to debug
anything :/

> please open a bug report.

Done: http://bugzilla.gnome.org/show_bug.cgi?id=566493

-- 
Yann
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] gtk_accel_groups_activate ()

2008-12-31 Thread Gian Mario Tagliaretti
On Wed, Dec 31, 2008 at 9:55 AM, Yann Le Boulanger  wrote:

> Any idea why this function is not implemented in pygtk?

It's in the ignore list in gtk.override, I don't know why though.

If you want to remove it from ignore, recompile pygtk and test it, if
it works we could fix it later, I suspect there is a reason why
someone put it in the ignore section.

please open a bug report.

cheers
-- 
Gian Mario Tagliaretti
GNOME Foundation member
gia...@gnome.org
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] gtk_accel_groups_activate ()

2008-12-31 Thread Yann Le Boulanger
"Iakov Davydov"  a écrit :

> Hello.
>
> The short form of question:
> where the gtk_accel_groups_activate () gone?
> http://www.gtk.org/api/2.6/gtk/gtk-Keyboard-Accelerators.html#gtk-accel-groups-activate
>
> The complete description:
> There is a problem in Gajim I am trying to fix. There is a readonly
> gtk.TextView widget. TextView should work correctly on Control-C and
> other shortcuts. But if other key is pressed it should redirect this
> event to other widget.
>
> Currently the code looks like this:
>
> def _conv_textview_key_press_event(self, widget, event):
> if (event.state & gtk.gdk.CONTROL_MASK and
> event.keyval in (gtk.keysyms.c,
> gtk.keysyms.Insert)):
> return False
> self.parent_win.notebook.emit('key_press_event', event)
> return True
>
> The problem is that only accels can convert characters from different
> layouts (so if I use Cyrillic layout then keypress will not receive
> Control-C). So I need a way to check if that accel can be handled by
> textview widget.
>
> In gtk I can use gtk_accel_groups_activate(textview ...) and if it is
> false call emit key-press-event. What should I do in pygtk? I cannot
> find corresponding function.
>
> Thanks.

Any idea why this function is not implemented in pygtk?

-- 
Yann


This message was sent using IMP, the Internet Messaging Program.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] gtk_accel_groups_activate ()

2008-12-21 Thread Iakov Davydov
Hello.

The short form of question:
where the gtk_accel_groups_activate () gone?
http://www.gtk.org/api/2.6/gtk/gtk-Keyboard-Accelerators.html#gtk-accel-groups-activate

The complete description:
There is a problem in Gajim I am trying to fix. There is a readonly
gtk.TextView widget. TextView should work correctly on Control-C and
other shortcuts. But if other key is pressed it should redirect this
event to other widget.

Currently the code looks like this:

def _conv_textview_key_press_event(self, widget, event):
if (event.state & gtk.gdk.CONTROL_MASK and
event.keyval in (gtk.keysyms.c,
gtk.keysyms.Insert)):
return False
self.parent_win.notebook.emit('key_press_event', event)
return True

The problem is that only accels can convert characters from different
layouts (so if I use Cyrillic layout then keypress will not receive
Control-C). So I need a way to check if that accel can be handled by
textview widget.

In gtk I can use gtk_accel_groups_activate(textview ...) and if it is
false call emit key-press-event. What should I do in pygtk? I cannot
find corresponding function.

Thanks.

-- 
Best regards,
  Iakov Davydov
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/