/usr/include/libglade-2.0/glade/glade-build.h is in libglade2-dev 1:2.6.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | /* -*- Mode: C; c-basic-offset: 4 -*-
* libglade - a library for building interfaces from XML files at runtime
* Copyright (C) 1998-2002 James Henstridge <james@daa.com.au>
*
* glade-build.h: functions useful for adding support for new widgets.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef GLADE_BUILD_H
#define GLADE_BUILD_H
#include <glib.h>
#include <glib-object.h>
#include <gmodule.h>
#include <glade/glade-xml.h>
#include <gtk/gtk.h>
#include <glade/glade-parser.h>
G_BEGIN_DECLS
/* create a new widget of some type. Don't parse `standard' widget options */
typedef GtkWidget *(* GladeNewFunc) (GladeXML *xml,
GType widget_type,
GladeWidgetInfo *info);
/* call glade_xml_build_widget on each child node, and pack in self */
typedef void (* GladeBuildChildrenFunc) (GladeXML *xml,
GtkWidget *parent,
GladeWidgetInfo *info);
typedef GtkWidget *(* GladeFindInternalChildFunc) (GladeXML *xml,
GtkWidget *parent,
const gchar *childname);
typedef void (* GladeApplyCustomPropFunc) (GladeXML *xml,
GtkWidget *widget,
const gchar *propname,
const gchar *value);
/* register handlers for a widget */
void glade_register_widget(GType type,
GladeNewFunc new_func,
GladeBuildChildrenFunc build_children,
GladeFindInternalChildFunc find_internal_child);
/* register a custom handler for a property (that may not have an
* associated gobject property. Works in conjunction with
* glade_standard_build_widget. */
void glade_register_custom_prop(GType type,
const gchar *prop_name,
GladeApplyCustomPropFunc apply_prop);
/* set the current toplevel widget while building (use NULL to unset) */
void glade_xml_set_toplevel(GladeXML *xml, GtkWindow *window);
/* make sure that xml->priv->accel_group is a valid AccelGroup */
GtkAccelGroup *glade_xml_ensure_accel(GladeXML *xml);
void glade_xml_handle_widget_prop(GladeXML *self, GtkWidget *widget,
const gchar *prop_name,
const gchar *value_name);
void glade_xml_set_packing_property (GladeXML *self,
GtkWidget *parent, GtkWidget *child,
const char *name, const char *value);
/* this function is called to build the interface by GladeXML */
GtkWidget *glade_xml_build_widget(GladeXML *self, GladeWidgetInfo *info);
/* this function is used to get a pointer to the internal child of a
* container widget. It would generally be called by the
* build_children callback for any children with the internal_child
* name set. */
void glade_xml_handle_internal_child(GladeXML *self, GtkWidget *parent,
GladeChildInfo *child_info);
/* This function performs half of what glade_xml_build_widget does. It is
* useful when the widget has already been created. Usually it would not
* have any use at all. */
void glade_xml_set_common_params(GladeXML *self,
GtkWidget *widget,
GladeWidgetInfo *info);
gboolean glade_xml_set_value_from_string (GladeXML *xml,
GParamSpec *pspec,
const gchar *string,
GValue *value);
GtkWidget *glade_standard_build_widget(GladeXML *xml, GType widget_type,
GladeWidgetInfo *info);
/* A standard child building routine that can be used in widget builders */
void glade_standard_build_children(GladeXML *self, GtkWidget *parent,
GladeWidgetInfo *info);
/* this is a wrapper for gtk_type_enum_find_value, that just returns the
* integer value for the enum */
gint glade_enum_from_string(GType type, const char *string);
guint glade_flags_from_string(GType type, const char *string);
/* the module dynamic loading interface ... */
/* increase this when there is a binary incompatible change in the
* libglade module API */
#define GLADE_MODULE_API_VERSION 1
gchar *glade_module_check_version(gint version);
#define GLADE_MODULE_CHECK_INIT \
G_MODULE_EXPORT const gchar *g_module_check_init(GModule *gmodule); \
const gchar * \
g_module_check_init(GModule *gmodule) \
{ \
return glade_module_check_version(GLADE_MODULE_API_VERSION); \
}
/* prototype for plugin init function (should be implemented by plugin) */
G_MODULE_EXPORT void glade_module_register_widgets(void);
G_END_DECLS
#endif
|