2
* ptk-ui-xml.h -Lightweight parser for *.glade
4
* Copyright 2008 PCMan <pcman.tw@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
#ifndef _PTK_UI_XML_H_
23
#define _PTK_UI_XML_H_
26
#include "ptk-xml-tree.h"
30
typedef struct _PtkUIXml PtkUIXml;
32
GtkWidget* ptk_ui_xml_create_widget( XmlNode* tree );
33
GtkWidget* ptk_ui_xml_create_widget_from_file( const char* file );
35
GtkWidget* ptk_ui_xml_get_widget( GtkWidget* top_widget, const char* name );
37
PtkUIXml* ptk_ui_xml_get( GtkWidget* widget );
38
PtkUIXml* ptk_ui_xml_destroy( PtkUIXml*xml );
40
void ptk_ui_xml_ref( PtkUIXml* xml );
41
void ptk_ui_xml_unref( PtkUIXml* xml );
43
GtkWidget* ptk_ui_xml_lookup( PtkUIXml* xml,