2003-02-21 Mike Kestner <mkestner@speakeasy.net>

* api/*-api.xml : remove stray enum get_type methods.
	* parser/gapi2xml.pl : ignore get_type methods on enums.

svn path=/trunk/gtk-sharp/; revision=11796
This commit is contained in:
Mike Kestner 2003-02-21 05:54:32 +00:00
parent 90913930a7
commit d743db9340
7 changed files with 11 additions and 205 deletions

View file

@ -1,3 +1,8 @@
2003-02-21 Mike Kestner <mkestner@speakeasy.net>
* api/*-api.xml : remove stray enum get_type methods.
* parser/gapi2xml.pl : ignore get_type methods on enums.
2003-02-20 Mike Kestner <mkestner@speakeasy.net>
* api/gtk-api.xml : hide the Arrow::Set method.

View file

@ -787,37 +787,6 @@
<parameter type="gint" name="end_offset"/>
</parameters>
</method>
<method name="AttributeForName" cname="atk_text_attribute_for_name" shared="true">
<return-type type="AtkTextAttribute"/>
<parameters>
<parameter type="const-gchar*" name="name"/>
</parameters>
</method>
<method name="AttributeGetName" cname="atk_text_attribute_get_name" shared="true">
<return-type type="const-gchar*"/>
<parameters>
<parameter type="AtkTextAttribute" name="attr"/>
</parameters>
</method>
<method name="AttributeGetType" cname="atk_text_attribute_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="AttributeGetValue" cname="atk_text_attribute_get_value" shared="true">
<return-type type="const-gchar*"/>
<parameters>
<parameter type="AtkTextAttribute" name="attr"/>
<parameter type="gint" name="index"/>
</parameters>
</method>
<method name="AttributeRegister" cname="atk_text_attribute_register" shared="true">
<return-type type="AtkTextAttribute"/>
<parameters>
<parameter type="const-gchar*" name="name"/>
</parameters>
</method>
<method name="BoundaryGetType" cname="atk_text_boundary_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="GetCaretOffset" cname="atk_text_get_caret_offset">
<return-type type="gint"/>
</method>
@ -1237,27 +1206,6 @@
<parameter type="AtkRelationType" name="relationship"/>
</parameters>
</constructor>
<method name="TypeForName" cname="atk_relation_type_for_name" shared="true">
<return-type type="AtkRelationType"/>
<parameters>
<parameter type="const-gchar*" name="name"/>
</parameters>
</method>
<method name="TypeGetName" cname="atk_relation_type_get_name" shared="true">
<return-type type="const-gchar*"/>
<parameters>
<parameter type="AtkRelationType" name="type"/>
</parameters>
</method>
<method name="TypeGetType" cname="atk_relation_type_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="TypeRegister" cname="atk_relation_type_register" shared="true">
<return-type type="AtkRelationType"/>
<parameters>
<parameter type="const-gchar*" name="name"/>
</parameters>
</method>
</object>
<object name="RelationSet" cname="AtkRelationSet" parent="GObject">
<field cname="relations" type="GPtrArray*"/>

View file

@ -1120,9 +1120,6 @@
<parameter type="GdkColormap*" name="colormap"/>
</parameters>
</method>
<method name="TypeGetType" cname="gdk_image_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="Keymap" cname="GdkKeymap" parent="GObject">
<signal name="DirectionChanged" cname="direction_changed" when="LAST">
@ -1300,9 +1297,6 @@
<method name="GetType" cname="gdk_visual_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="TypeGetType" cname="gdk_visual_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="Window" cname="GdkWindow" parent="GdkDrawable">
<method name="AddFilter" cname="gdk_window_add_filter">
@ -1319,9 +1313,6 @@
<parameter type="gint*" name="win_y"/>
</parameters>
</method>
<method name="AttributesTypeGetType" cname="gdk_window_attributes_type_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="BeginMoveDrag" cname="gdk_window_begin_move_drag">
<return-type type="void"/>
<parameters>
@ -1353,9 +1344,6 @@
<parameter type="guint32" name="timestamp"/>
</parameters>
</method>
<method name="ClassGetType" cname="gdk_window_class_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Clear" cname="gdk_window_clear">
<return-type type="void"/>
</method>
@ -1394,9 +1382,6 @@
<method name="Destroy" cname="gdk_window_destroy">
<return-type type="void"/>
</method>
<method name="EdgeGetType" cname="gdk_window_edge_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="EndPaint" cname="gdk_window_end_paint">
<return-type type="void"/>
</method>
@ -1507,9 +1492,6 @@
<method name="Hide" cname="gdk_window_hide">
<return-type type="void"/>
</method>
<method name="HintsGetType" cname="gdk_window_hints_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Iconify" cname="gdk_window_iconify">
<return-type type="void"/>
</method>
@ -1781,21 +1763,12 @@
<method name="ShowUnraised" cname="gdk_window_show_unraised">
<return-type type="void"/>
</method>
<method name="StateGetType" cname="gdk_window_state_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Stick" cname="gdk_window_stick">
<return-type type="void"/>
</method>
<method name="ThawUpdates" cname="gdk_window_thaw_updates">
<return-type type="void"/>
</method>
<method name="TypeGetType" cname="gdk_window_type_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="TypeHintGetType" cname="gdk_window_type_hint_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Unmaximize" cname="gdk_window_unmaximize">
<return-type type="void"/>
</method>
@ -1886,9 +1859,6 @@
<method name="Ref" cname="gdk_cursor_ref">
<return-type type="GdkCursor*"/>
</method>
<method name="TypeGetType" cname="gdk_cursor_type_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Unref" cname="gdk_cursor_unref">
<return-type type="void"/>
</method>
@ -2089,9 +2059,6 @@
<field cname="line_style" type="GdkLineStyle"/>
<field cname="cap_style" type="GdkCapStyle"/>
<field cname="join_style" type="GdkJoinStyle"/>
<method name="MaskGetType" cname="gdk_gc_values_mask_get_type" shared="true">
<return-type type="GType"/>
</method>
</struct>
<struct name="Geometry" cname="GdkGeometry">
<field cname="min_width" type="gint"/>
@ -2426,9 +2393,6 @@
<parameter type="guchar" name="b"/>
</parameters>
</method>
<method name="AlphaModeGetType" cname="gdk_pixbuf_alpha_mode_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Composite" cname="gdk_pixbuf_composite">
<return-type type="void"/>
<parameters>
@ -2493,12 +2457,6 @@
<parameter type="int" name="dest_y"/>
</parameters>
</method>
<method name="ErrorGetType" cname="gdk_pixbuf_error_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="ErrorQuark" cname="gdk_pixbuf_error_quark" shared="true">
<return-type type="GQuark"/>
</method>
<method name="Fill" cname="gdk_pixbuf_fill">
<return-type type="void"/>
<parameters>

View file

@ -200,9 +200,6 @@
<field cname="type" type="GnomeTriggerType"/>
<field cname="function" type="GnomeTriggerActionFunction"/>
<field cname="level" type="gchar*"/>
<method name="TypeGetType" cname="gnome_trigger_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</struct>
<struct name="TriggerList" cname="GnomeTriggerList">
<field cname="nodename" type="char*"/>
@ -1862,9 +1859,6 @@
<method name="Disconnect" cname="gnome_client_disconnect">
<return-type type="void"/>
</method>
<method name="FlagsGetType" cname="gnome_client_flags_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Flush" cname="gnome_client_flush">
<return-type type="void"/>
</method>
@ -2026,9 +2020,6 @@
<parameter type="const-gchar*" name="id"/>
</parameters>
</method>
<method name="StateGetType" cname="gnome_client_state_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="ColorPicker" cname="GnomeColorPicker" parent="GtkButton">
<field cname="_priv" type="GnomeColorPickerPrivate*"/>
@ -2161,9 +2152,6 @@
<parameter type="GnomeDateEditFlags" name="flags"/>
</parameters>
</method>
<method name="FlagsGetType" cname="gnome_date_edit_flags_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="GetFlags" cname="gnome_date_edit_get_flags">
<return-type type="int"/>
</method>
@ -2752,9 +2740,6 @@
<method name="GetType" cname="gnome_font_picker_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="ModeGetType" cname="gnome_font_picker_mode_get_type" shared="true">
<return-type type="GType"/>
</method>
<constructor cname="gnome_font_picker_new"/>
<method name="SetFontName" cname="gnome_font_picker_set_font_name">
<return-type type="gboolean"/>
@ -3075,9 +3060,6 @@
<parameter type="const-char*" name="text"/>
</parameters>
</method>
<method name="ModeGetType" cname="gnome_icon_list_mode_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Moveto" cname="gnome_icon_list_moveto">
<return-type type="void"/>
<parameters>
@ -3492,12 +3474,6 @@
<field cname="accelerator_key" type="guint"/>
<field cname="ac_mods" type="GdkModifierType"/>
<field cname="widget" type="GtkWidget*"/>
<method name="ConfigurableTypesGetType" cname="gnome_ui_info_configurable_types_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="TypeGetType" cname="gnome_ui_info_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</struct>
<object name="Stock" cname="GnomeStock">
<static-string cname="GNOME_STOCK_ABOUT" name="About" value="gnome-stock-about"/>

View file

@ -997,9 +997,6 @@
<parameter type="gint*" name="new_order"/>
</parameters>
</signal>
<method name="FlagsGetType" cname="gtk_tree_model_flags_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Foreach" cname="gtk_tree_model_foreach">
<return-type type="void"/>
<parameters>
@ -1450,9 +1447,6 @@
<parameter type="GtkShadowType" name="shadow_type"/>
</parameters>
</method>
<method name="TypeGetType" cname="gtk_arrow_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="AspectFrame" cname="GtkAspectFrame" parent="GtkFrame">
<field cname="xalign" type="gfloat"/>
@ -1732,9 +1726,6 @@
<parameter type="GtkButtonBoxStyle" name="layout_style"/>
</parameters>
</method>
<method name="StyleGetType" cname="gtk_button_box_style_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="Calendar" cname="GtkCalendar" parent="GtkWidget">
<field cname="header_style" type="GtkStyle*"/>
@ -1831,9 +1822,6 @@
<parameter type="GtkCalendarDisplayOptions" name="flags"/>
</parameters>
</method>
<method name="DisplayOptionsGetType" cname="gtk_calendar_display_options_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Freeze" cname="gtk_calendar_freeze">
<return-type type="void"/>
</method>
@ -1931,9 +1919,6 @@
<method name="GetType" cname="gtk_cell_renderer_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="ModeGetType" cname="gtk_cell_renderer_mode_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Render" cname="gtk_cell_renderer_render">
<return-type type="void"/>
<parameters>
@ -1963,9 +1948,6 @@
<parameter type="GtkCellRendererState" name="flags"/>
</parameters>
</method>
<method name="StateGetType" cname="gtk_cell_renderer_state_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="CellRendererPixbuf" cname="GtkCellRendererPixbuf" parent="GtkCellRenderer">
<field cname="pixbuf" type="GdkPixbuf*"/>
@ -2616,9 +2598,6 @@
<parameter type="gfloat" array="true" name="vector"/>
</parameters>
</method>
<method name="TypeGetType" cname="gtk_curve_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="Dialog" cname="GtkDialog" parent="GtkWindow">
<field cname="vbox" type="GtkWidget*"/>
@ -2659,9 +2638,6 @@
<parameter ellipsis="true"/>
</parameters>
</method>
<method name="FlagsGetType" cname="gtk_dialog_flags_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="GetHasSeparator" cname="gtk_dialog_get_has_separator">
<return-type type="gboolean"/>
</method>
@ -3532,9 +3508,6 @@
<parameter type="GtkIconSize" name="size"/>
</parameters>
</method>
<method name="TypeGetType" cname="gtk_image_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="ImageMenuItem" cname="GtkImageMenuItem" parent="GtkMenuItem">
<field cname="image" type="GtkWidget*"/>
@ -4346,9 +4319,6 @@
<method name="Detach" cname="gtk_menu_detach">
<return-type type="void"/>
</method>
<method name="DirectionTypeGetType" cname="gtk_menu_direction_type_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="GetAccelGroup" cname="gtk_menu_get_accel_group">
<return-type type="GtkAccelGroup*"/>
</method>
@ -4948,9 +4918,6 @@
<parameter type="GtkPositionType" name="pos"/>
</parameters>
</method>
<method name="TabGetType" cname="gtk_notebook_tab_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="Object" cname="GtkObject" parent="GObject">
<field cname="flags" type="guint32"/>
@ -4964,9 +4931,6 @@
<method name="Destroy" cname="gtk_object_destroy">
<return-type type="void"/>
</method>
<method name="FlagsGetType" cname="gtk_object_flags_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="GetType" cname="gtk_object_get_type" shared="true">
<return-type type="GtkType"/>
</method>
@ -5216,9 +5180,6 @@
<return-type type="GtkType"/>
</method>
<constructor cname="gtk_progress_bar_new"/>
<method name="OrientationGetType" cname="gtk_progress_bar_orientation_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Pulse" cname="gtk_progress_bar_pulse">
<return-type type="void"/>
</method>
@ -5246,9 +5207,6 @@
<parameter type="const-gchar*" name="text"/>
</parameters>
</method>
<method name="StyleGetType" cname="gtk_progress_bar_style_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="RadioButton" cname="GtkRadioButton" parent="GtkCheckButton">
<field cname="group" type="GSList*"/>
@ -5746,9 +5704,6 @@
<method name="GetType" cname="gtk_size_group_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="ModeGetType" cname="gtk_size_group_mode_get_type" shared="true">
<return-type type="GType"/>
</method>
<constructor cname="gtk_size_group_new">
<parameters>
<parameter type="GtkSizeGroupMode" name="mode"/>
@ -5990,9 +5945,6 @@
<method name="Update" cname="gtk_spin_button_update">
<return-type type="void"/>
</method>
<method name="UpdatePolicyGetType" cname="gtk_spin_button_update_policy_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="Statusbar" cname="GtkStatusbar" parent="GtkHBox">
<field cname="frame" type="GtkWidget*"/>
@ -7639,12 +7591,6 @@
<parameter type="gboolean" name="enable"/>
</parameters>
</method>
<method name="SpaceStyleGetType" cname="gtk_toolbar_space_style_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="StyleGetType" cname="gtk_toolbar_style_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="UnsetIconSize" cname="gtk_toolbar_unset_icon_size">
<return-type type="void"/>
</method>
@ -8127,9 +8073,6 @@
<parameter type="GtkTreePath*" name="path"/>
</parameters>
</method>
<method name="DropPositionGetType" cname="gtk_tree_view_drop_position_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="EnableModelDragDest" cname="gtk_tree_view_enable_model_drag_dest">
<return-type type="void"/>
<parameters>
@ -8750,9 +8693,6 @@
<parameter type="GtkWidget*" name="widget"/>
</parameters>
</method>
<method name="SizingGetType" cname="gtk_tree_view_column_sizing_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="VBox" cname="GtkVBox" parent="GtkBox">
<method name="GetType" cname="gtk_vbox_get_type" shared="true">
@ -9398,9 +9338,6 @@
<parameter type="GdkEvent*" name="event"/>
</parameters>
</method>
<method name="FlagsGetType" cname="gtk_widget_flags_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="FreezeChildNotify" cname="gtk_widget_freeze_child_notify">
<return-type type="void"/>
</method>
@ -9499,9 +9436,6 @@
<method name="GrabFocus" cname="gtk_widget_grab_focus">
<return-type type="void"/>
</method>
<method name="HelpTypeGetType" cname="gtk_widget_help_type_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Hide" cname="gtk_widget_hide">
<return-type type="void"/>
</method>
@ -10115,9 +10049,6 @@
<parameter type="const-gchar*" name="geometry"/>
</parameters>
</method>
<method name="PositionGetType" cname="gtk_window_position_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Present" cname="gtk_window_present">
<return-type type="void"/>
</method>
@ -10286,9 +10217,6 @@
<method name="Stick" cname="gtk_window_stick">
<return-type type="void"/>
</method>
<method name="TypeGetType" cname="gtk_window_type_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Unmaximize" cname="gtk_window_unmaximize">
<return-type type="void"/>
</method>
@ -11411,19 +11339,12 @@
<field cname="info" type="GtkTextTagInfo*"/>
<field cname="inNodeCounts" type="gboolean"/>
</struct>
<struct name="TextWindow" cname="GtkTextWindow" opaque="true">
<method name="TypeGetType" cname="gtk_text_window_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</struct>
<struct name="TextWindow" cname="GtkTextWindow" opaque="true"/>
<struct name="ToolbarChild" cname="GtkToolbarChild">
<field cname="type" type="GtkToolbarChildType"/>
<field cname="widget" type="GtkWidget*"/>
<field cname="icon" type="GtkWidget*"/>
<field cname="label" type="GtkWidget*"/>
<method name="TypeGetType" cname="gtk_toolbar_child_type_get_type" shared="true">
<return-type type="GType"/>
</method>
</struct>
<struct name="TooltipsData" cname="GtkTooltipsData">
<field cname="tooltips" type="GtkTooltips*"/>

View file

@ -217,9 +217,6 @@
<method name="GetType" cname="pango_font_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="MaskGetType" cname="pango_font_mask_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="Fontset" cname="PangoFontset" parent="GObject">
<method name="GetFont" cname="pango_fontset_get_font">
@ -728,9 +725,6 @@
<parameter type="int" name="index"/>
</parameters>
</method>
<method name="LevelGetType" cname="pango_coverage_level_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Max" cname="pango_coverage_max">
<return-type type="void"/>
<parameters>

View file

@ -4,7 +4,7 @@
#
# Author: Mike Kestner <mkestner@speakeasy.net>
#
# <c> 2001 Mike Kestner
# <c> 2001-2003 Mike Kestner
##############################################################
$debug=1;
@ -155,9 +155,11 @@ while ($line = <STDIN>) {
##############################################################
# Produce the enum definitions.
##############################################################
%enums = ();
foreach $cname (sort(keys(%edefs))) {
$ecnt++;
$enums{lc($cname)} = $cname;
$enum_elem = addNameElem($ns_elem, 'enum', $cname, $ns);
$def = $edefs{$cname};
if ($def =~ /=\s*1\s*<<\s*\d+/) {
@ -464,6 +466,8 @@ sub addFuncElems
$obj_el = $elem_table{$key};
$inst = $key;
last;
} elsif (exists ($enums{$key})) {
last;
}
}
next if (!$obj_el);