From: Denis Pershin Date: Tue, 18 Aug 1998 19:54:06 +0000 (+0000) Subject: Second try X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4540e33bb6bf41cc0c951d0345dd093179d9af05 Second try git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/treectrl.h b/include/wx/gtk/treectrl.h index d5fc08a88f..ff47d7c803 100644 --- a/include/wx/gtk/treectrl.h +++ b/include/wx/gtk/treectrl.h @@ -1,13 +1,12 @@ -/* - * Author: Robert Roebling - * - * Copyright: (C) 1997,1998 Robert Roebling - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the wxWindows Licence, which - * you have received with this library (see Licence.htm). - * - */ +///////////////////////////////////////////////////////////////////////////// +// Name: treectrl.h +// Purpose: +// Author: Denis Pershin +// Created: 08/08/98 +// Id: $Id$ +// Copyright: (c) 1998 Denis Pershin and Julian Smart +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// #ifndef __GTKTREECTRL_H__ #define __GTKTREECTRL_H__ @@ -183,8 +182,12 @@ private: return m_childlist.Number(); } - guit expand_handler; - guit collapse_handler; + guint expand_handler; + guint collapse_handler; + +// It is a quick hack to make TreeCtrl working... I do not know why +// but signals is GTK does not disconnected... + bool ignore; DECLARE_DYNAMIC_CLASS(wxTreeItem) }; @@ -212,7 +215,7 @@ public: int GetCount() const; - long InsertItem( long parent, const wxString& label, long data = 0, + long InsertItem( long parent, const wxString& label, int image = -1, int selImage = -1, long insertAfter = wxTREE_INSERT_LAST ); diff --git a/include/wx/gtk1/treectrl.h b/include/wx/gtk1/treectrl.h index d5fc08a88f..ff47d7c803 100644 --- a/include/wx/gtk1/treectrl.h +++ b/include/wx/gtk1/treectrl.h @@ -1,13 +1,12 @@ -/* - * Author: Robert Roebling - * - * Copyright: (C) 1997,1998 Robert Roebling - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the wxWindows Licence, which - * you have received with this library (see Licence.htm). - * - */ +///////////////////////////////////////////////////////////////////////////// +// Name: treectrl.h +// Purpose: +// Author: Denis Pershin +// Created: 08/08/98 +// Id: $Id$ +// Copyright: (c) 1998 Denis Pershin and Julian Smart +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// #ifndef __GTKTREECTRL_H__ #define __GTKTREECTRL_H__ @@ -183,8 +182,12 @@ private: return m_childlist.Number(); } - guit expand_handler; - guit collapse_handler; + guint expand_handler; + guint collapse_handler; + +// It is a quick hack to make TreeCtrl working... I do not know why +// but signals is GTK does not disconnected... + bool ignore; DECLARE_DYNAMIC_CLASS(wxTreeItem) }; @@ -212,7 +215,7 @@ public: int GetCount() const; - long InsertItem( long parent, const wxString& label, long data = 0, + long InsertItem( long parent, const wxString& label, int image = -1, int selImage = -1, long insertAfter = wxTREE_INSERT_LAST );