Commit 4427f81d authored by Daiki Ueno's avatar Daiki Ueno

Fix eek-0.90 vala binding.

Mark struct types in eek-0.90.metadata; add eek-text.h to eek-0.90.files.
parent 94904285
......@@ -9,6 +9,7 @@ include/eek-0.90/eek/eek-section.h
include/eek-0.90/eek/eek-serializable.h
include/eek-0.90/eek/eek-symbol.h
include/eek-0.90/eek/eek-symbol-matrix.h
include/eek-0.90/eek/eek-text.h
include/eek-0.90/eek/eek-theme.h
include/eek-0.90/eek/eek-types.h
include/eek-0.90/eek/eek-xml.h
......
......@@ -900,7 +900,7 @@
<return-type type="EekKeysym*"/>
<parameters>
<parameter name="xkeysym" type="guint"/>
<parameter name="modifier" type="EekModifierType"/>
<parameter name="modifier_mask" type="EekModifierType"/>
</parameters>
</constructor>
</object>
......@@ -1061,6 +1061,18 @@
<implements>
<interface name="EekSerializable"/>
</implements>
<method name="category_from_name" symbol="eek_symbol_category_from_name">
<return-type type="EekSymbolCategory"/>
<parameters>
<parameter name="name" type="gchar*"/>
</parameters>
</method>
<method name="category_get_name" symbol="eek_symbol_category_get_name">
<return-type type="gchar*"/>
<parameters>
<parameter name="category" type="EekSymbolCategory"/>
</parameters>
</method>
<method name="get_category" symbol="eek_symbol_get_category">
<return-type type="EekSymbolCategory"/>
<parameters>
......@@ -1082,7 +1094,7 @@
<method name="get_modifier_mask" symbol="eek_symbol_get_modifier_mask">
<return-type type="EekModifierType"/>
<parameters>
<parameter name="keysym" type="EekSymbol*"/>
<parameter name="symbol" type="EekSymbol*"/>
</parameters>
</method>
<method name="get_name" symbol="eek_symbol_get_name">
......@@ -1127,7 +1139,7 @@
<method name="set_modifier_mask" symbol="eek_symbol_set_modifier_mask">
<return-type type="void"/>
<parameters>
<parameter name="keysym" type="EekSymbol*"/>
<parameter name="symbol" type="EekSymbol*"/>
<parameter name="mask" type="EekModifierType"/>
</parameters>
</method>
......@@ -1144,6 +1156,24 @@
<property name="modifier-mask" type="EekModifierType" readable="1" writable="1" construct="1" construct-only="0"/>
<property name="name" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
</object>
<object name="EekText" parent="EekSymbol" type-name="EekText" get-type="eek_text_get_type">
<implements>
<interface name="EekSerializable"/>
</implements>
<method name="get_text" symbol="eek_text_get_text">
<return-type type="gchar*"/>
<parameters>
<parameter name="text" type="EekText*"/>
</parameters>
</method>
<constructor name="new" symbol="eek_text_new">
<return-type type="EekText*"/>
<parameters>
<parameter name="text" type="gchar*"/>
</parameters>
</constructor>
<property name="text" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
</object>
<object name="EekTheme" parent="GObject" type-name="EekTheme" get-type="eek_theme_get_type">
<method name="load_stylesheet" symbol="eek_theme_load_stylesheet">
<return-type type="gboolean"/>
......@@ -1235,6 +1265,7 @@
<constant name="EEK_SERIALIZABLE_H" type="int" value="1"/>
<constant name="EEK_SYMBOL_H" type="int" value="1"/>
<constant name="EEK_SYMBOL_MATRIX_H" type="int" value="1"/>
<constant name="EEK_TEXT_H" type="int" value="1"/>
<constant name="EEK_TYPES_H" type="int" value="1"/>
<constant name="EEK_XML_H" type="int" value="1"/>
<constant name="EEK_XML_LAYOUT_H" type="int" value="1"/>
......
Eek cheader_filename="eek/eek.h"
EekBounds is_value_type="1"
eek_bounds_copy hidden="1"
eek_bounds_free hidden="1"
EekPoint is_value_type="1"
eek_point_copy hidden="1"
eek_point_free hidden="1"
EekOutline is_value_type="1"
eek_outline_copy hidden="1"
eek_outline_free hidden="1"
EekColor is_value_type="1"
eek_color_copy hidden="1"
eek_color_free hidden="1"
eek_color_new hidden="1"
eek_element_get_bounds.bounds is_out="1"
eek_element_get_absolute_position.x is_out="1"
eek_element_get_absolute_position.y is_out="1"
eek_element_get_symbol_index.group is_out="1"
eek_element_get_symbol_index.level is_out="1"
......@@ -18,6 +18,11 @@
* 02110-1301 USA
*/
/**
* SECTION:eek-text
* @short_description: an #EekText represents a text symbol
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
......@@ -166,6 +171,12 @@ eek_text_new (const gchar *text)
NULL);
}
/**
* eek_text_get_text:
* @text: an #EekText
*
* Get a text value associated with @text
*/
const gchar *
eek_text_get_text (EekText *text)
{
......
......@@ -39,6 +39,12 @@ G_BEGIN_DECLS
typedef struct _EekTextClass EekTextClass;
typedef struct _EekTextPrivate EekTextPrivate;
/**
* EekText:
*
* The #EekText structure contains only private data and should only
* be accessed using the provided API.
*/
struct _EekText {
/*< private >*/
EekSymbol parent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment