Inheritance: Gtk.Entry
示例#1
0
        public override CellEditable StartEditing(Gdk.Event ev, Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, CellRendererState flags)
        {
            if (property == null || editorCell == null || !sensitive)
            {
                return(null);
            }

            StateType   state   = GetState(flags);
            EditSession session = editorCell.StartEditing(cell_area, state);

            if (session == null)
            {
                return(null);
            }
            Gtk.Widget propEditor = (Gtk.Widget)session.Editor;
            propEditor.Show();
            HackEntry e = new HackEntry(propEditor, session);

            e.Show();
            return(e);
        }
示例#2
0
        public override CellEditable StartEditing(Gdk.Event ev, Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, CellRendererState flags)
        {
            if (property == null || editorCell == null || !sensitive)
                return null;

            StateType state = GetState (flags);
            EditSession session = editorCell.StartEditing (cell_area, state);
            if (session == null)
                return null;
            Gtk.Widget propEditor = (Gtk.Widget) session.Editor;
            propEditor.Show ();
            HackEntry e = new HackEntry (propEditor, session);
            e.Show ();
            return e;
        }