~ubuntu-branches/ubuntu/trusty/pcmanfm/trusty-proposed

« back to all changes in this revision

Viewing changes to src/ptk-ui-xml/ptk-ui-xml.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Lee
  • Date: 2008-09-26 10:19:20 UTC
  • mfrom: (4.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080926101920-cfldybkmwgwrtv9u
Tags: 0.5-3
* Correct spellings,  03_correct_spelling.dpatch (Closes:498794) 
* Code in some files are taken from other projects, added these
  informations into copyright file. (Closes:499678)
* Applied 04_defaut_terminal.dpatch to support x-terminal-emulator
  alternative. (Closes:497494) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      ptk-ui-xml.h -Lightweight parser for *.glade
 
3
 *
 
4
 *      Copyright 2008 PCMan <pcman.tw@gmail.com>
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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,
 
19
 *      MA 02110-1301, USA.
 
20
 */
 
21
 
 
22
#ifndef _PTK_UI_XML_H_
 
23
#define _PTK_UI_XML_H_
 
24
 
 
25
#include <gtk/gtk.h>
 
26
#include "ptk-xml-tree.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
typedef struct _PtkUIXml PtkUIXml;
 
31
 
 
32
GtkWidget* ptk_ui_xml_create_widget( XmlNode* tree );
 
33
GtkWidget* ptk_ui_xml_create_widget_from_file( const char* file );
 
34
 
 
35
GtkWidget* ptk_ui_xml_get_widget( GtkWidget* top_widget, const char* name );
 
36
 
 
37
PtkUIXml* ptk_ui_xml_get( GtkWidget* widget );
 
38
PtkUIXml* ptk_ui_xml_destroy( PtkUIXml*xml );
 
39
 
 
40
void ptk_ui_xml_ref( PtkUIXml* xml );
 
41
void ptk_ui_xml_unref( PtkUIXml* xml );
 
42
 
 
43
GtkWidget* ptk_ui_xml_lookup( PtkUIXml* xml,
 
44
                              const char* name );
 
45
 
 
46
 
 
47
G_END_DECLS
 
48
 
 
49
#endif