diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-05 16:09:54 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-05 16:11:37 +0900 |
commit | a3877e63e4cc1ea16ee58fc276af658bdff5992b (patch) | |
tree | 3acf8f991b1791d151a6bc602b720ee96080cd46 /gladeui/glade-widget-adaptor.h | |
parent | 2e0847770eab7b1e97012a687b751692bd5dd612 (diff) | |
download | glade-a3877e63e4cc1ea16ee58fc276af658bdff5992b.tar.gz |
* gladeui/Makefile.am, gladeui/glade-signal-class.[ch], gladeui/glade-widget-adaptor.c,
gladeui/glade-signal-editor.c, plugins/gtk+/glade-accels.c:
Added glade-signal-class.[ch] as an opaque type.
Diffstat (limited to 'gladeui/glade-widget-adaptor.h')
-rw-r--r-- | gladeui/glade-widget-adaptor.h | 46 |
1 files changed, 4 insertions, 42 deletions
diff --git a/gladeui/glade-widget-adaptor.h b/gladeui/glade-widget-adaptor.h index 20589cc4..b08ec66a 100644 --- a/gladeui/glade-widget-adaptor.h +++ b/gladeui/glade-widget-adaptor.h @@ -1,9 +1,10 @@ -#ifndef __GLADE_WIDGET_ADAPTOR_H__ -#define __GLADE_WIDGET_ADAPTOR_H__ +#ifndef _GLADE_WIDGET_ADAPTOR_H_ +#define _GLADE_WIDGET_ADAPTOR_H_ #include <gladeui/glade-xml-utils.h> #include <gladeui/glade-property-class.h> #include <gladeui/glade-editor-property.h> +#include <gladeui/glade-signal-class.h> #include <gladeui/glade-catalog.h> #include <gladeui/glade-editable.h> #include <glib-object.h> @@ -139,23 +140,6 @@ typedef struct _GladeWidgetAdaptorClass GladeWidgetAdaptorClass; #define GWA_GET_OCLASS(type) ((GObjectClass*)GWA_GET_CLASS(type)) -#define GLADE_SIGNAL_CLASS(klass) ((GladeSignalClass *)(klass)) - -/** - * GSC_VERSION_CHECK: - * @klass: A #GladeSignalClass - * @major_version: The major version to check - * @minor_version: The minor version to check - * - * Evaluates to %TRUE if @klass is available in its owning library version-@major_verion.@minor_version. - * - */ -#define GSC_VERSION_CHECK(klass, major_version, minor_version) \ - ((GLADE_SIGNAL_CLASS (klass)->version_since_major == major_version) ? \ - (GLADE_SIGNAL_CLASS (klass)->version_since_minor <= minor_version) : \ - (GLADE_SIGNAL_CLASS (klass)->version_since_major <= major_version)) - - #define GLADE_VALID_CREATE_REASON(reason) (reason >= 0 && reason < GLADE_CREATE_REASONS) /** @@ -542,28 +526,6 @@ typedef GladeEditable *(* GladeCreateEditableFunc) (GladeWidgetAdaptor *adapto GladeEditorPageType type); -/* GladeSignalClass contains all the info we need for a given signal, such as - * the signal name, and maybe more in the future - */ -typedef struct _GladeSignalClass GladeSignalClass; -struct _GladeSignalClass -{ - GladeWidgetAdaptor *adaptor; /* The adaptor that originated this signal. - */ - - GSignalQuery query; - - guint16 version_since_major; /* Version in which this signal was - * introduced - */ - guint16 version_since_minor; - - const gchar *name; /* Name of the signal, eg clicked */ - const gchar *type; /* Name of the object class that this signal belongs to - * eg GtkButton */ - -}; - /* Note that everything that must be processed at the creation of * every instance is managed on the instance structure, and everywhere * that we want to take advantage of inheritance is handled in the class @@ -851,4 +813,4 @@ GladeWidgetAdaptor *glade_widget_adaptor_get_parent_adaptor (GladeWidgetAdapto G_END_DECLS -#endif /* __GLADE_WIDGET_ADAPTOR_H__ */ +#endif /* _GLADE_WIDGET_ADAPTOR_H_ */ |