2008-03-28 11:02:39 +00:00
|
|
|
// Object.custom - Atk Object class customizations
|
|
|
|
//
|
|
|
|
// Author: Andres G. Aragoneses <aaragoneses@novell.com>
|
|
|
|
//
|
|
|
|
// Copyright (c) 2008 Novell, Inc.
|
|
|
|
//
|
|
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of version 2 of the Lesser GNU General
|
|
|
|
// Public License as published by the Free Software Foundation.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this program; if not, write to the
|
|
|
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
// Boston, MA 02111-1307, USA.
|
|
|
|
|
2008-04-24 17:11:11 +00:00
|
|
|
protected void EmitChildrenChanged (ChildrenChangedDetail detail, uint child_index, Atk.Object child)
|
|
|
|
{
|
2008-05-14 16:03:13 +00:00
|
|
|
GLib.Signal.Emit (this,
|
|
|
|
"children-changed::" + detail.ToString ().ToLower (),
|
2008-10-24 22:11:46 +00:00
|
|
|
child_index, child.Handle);
|
2008-04-24 17:11:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected enum ChildrenChangedDetail
|
|
|
|
{
|
|
|
|
Add,
|
|
|
|
Remove
|
|
|
|
}
|
2008-08-19 22:00:33 +00:00
|
|
|
|
|
|
|
protected void EmitVisibleDataChanged ()
|
|
|
|
{
|
|
|
|
GLib.Signal.Emit (this, "visible-data-changed");
|
|
|
|
}
|
2008-06-06 14:56:01 +00:00
|
|
|
|
2008-09-23 13:59:30 +00:00
|
|
|
public void NotifyStateChange (Atk.StateType state, bool value) {
|
|
|
|
NotifyStateChange ((ulong)state, value);
|
|
|
|
}
|
2008-09-12 19:47:38 +00:00
|
|
|
|
2009-01-29 16:11:08 +00:00
|
|
|
protected void EmitFocusEvent (bool gained)
|
|
|
|
{
|
|
|
|
GLib.Signal.Emit (this, "focus-event", gained);
|
|
|
|
}
|