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/

Reply via email to