Logo Search packages:      
Sourcecode: ibus-xkbc version File versions  Download package

def vkb_canvas::VKBCanvas::_create_context_menu (   self ) [private]
context menu
==============
Layout ->
Geometry ->
--------------
[x] Active Label only
--------------
[x] Gradation Surface
--------------
[ ] Keys only window

Definition at line 310 of file vkb_canvas.py.

                                  :

        """
        context menu
        ==============
        Layout ->
        Geometry ->
        --------------
        [x] Active Label only
        --------------
        [x] Gradation Surface
        --------------
        [ ] Keys only window
        """
        menu = gtk.Menu()

        self._setup_menu(menu, "Layout", self._get_layout_menu())

        self._setup_menu(menu, "Geometry", self._get_geometry_menu())
        
        self._add_separator(menu)

        # label style ("Active label only" - On/Off)
        item = gtk.CheckMenuItem("Active label only")
        item.set_active(self._label_style == VKB_ACTIVE_TEXT)
        item.connect("toggled", self._set_label_style)
        item.show()
        menu.add(item)

        # suface style ("Gradation surface" - On/Off)
        item = gtk.CheckMenuItem("Gradation surface")
        item.set_active(self._surface_style == VKB_GRADIENT)
        item.connect("toggled", self._set_surface_style)
        item.show()
        menu.add(item)

        # window shape style ("Keys only" - On/Off)
        item = gtk.CheckMenuItem("Keys only window")
        item.set_active(self._window_style == VKB_KEYS_ONLY_WINDOW)
        item.connect("toggled", self._set_window_style)
        item.show()
        menu.add(item)

        # window keep below other windows
        item = gtk.CheckMenuItem("Always below other windows")
        item.set_active(self._window_keep_below == True)
        item.connect("toggled", self._set_window_keep_below)
        item.show()
        menu.add(item)

        self._add_separator(menu)

        # layout list setup ("Layout list config...")
        item = gtk.MenuItem("Layout list config...")
        item.connect("activate", self._layout_list_setup)
        item.show()
        menu.add(item)

        self._add_separator(menu)

        # Transparency menu is available only if running X11 window manager supports it.
        if self.parent.is_composited():
            self._setup_menu(menu, "Transparency", self._get_transparency_menu())
            self._add_separator(menu)

        # exit menu item
        item = gtk.MenuItem("Exit")
        item.connect("activate", self._exit)
        item.show()
        menu.add(item)

        return menu


Generated by  Doxygen 1.6.0   Back to index