Commit 69189c92 authored by Evan Nemerson's avatar Evan Nemerson
Browse files

gtk+-3.0: mark ResizeMode.IMMEDIATE as deprecated

Fixes bug 679771.
parent 25366323
......@@ -7282,6 +7282,7 @@ namespace Gtk {
public enum ResizeMode {
PARENT,
QUEUE,
[Deprecated]
IMMEDIATE
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_RESPONSE_")]
......
......@@ -626,6 +626,7 @@ gtk_recent_filter_add_custom.data hidden="1"
gtk_recent_filter_add_custom.data_destroy hidden="1"
GtkRequisition is_value_type="1"
gtk_requisition_new hidden="1"
GTK_RESIZE_IMMEDIATE deprecated="1"
gtk_rc_get_style_by_paths nullable="1"
gtk_rc_get_style_by_paths.widget_path nullable="1"
gtk_rc_get_style_by_paths.class_path nullable="1"
......
......@@ -1430,6 +1430,8 @@ public class Vala.GIdlParser : CodeVisitor {
en.set_attribute_string ("CCode", "cprefix", common_prefix);
foreach (weak IdlNode value2 in en_node.values) {
EnumValue ev = new EnumValue (value2.name.substring (common_prefix.length), null);
var val_attributes = get_attributes (value2.name);
bool is_hidden = false;
if (val_attributes != null) {
......@@ -1437,12 +1439,19 @@ public class Vala.GIdlParser : CodeVisitor {
var nv = attr.split ("=", 2);
if (nv[0] == "hidden" && eval(nv[1]) == "1") {
is_hidden = true;
} else if (nv[0] == "deprecated") {
if (eval (nv[1]) == "1") {
ev.set_attribute ("Deprecated", true);
}
} else if (nv[0] == "replacement") {
ev.set_attribute_string ("Deprecated", "replacement", eval (nv[1]));
} else if (nv[0] == "deprecated_since") {
ev.set_attribute_string ("Deprecated", "since", eval (nv[1]));
}
}
}
if (!is_hidden) {
var ev = new EnumValue (value2.name.substring (common_prefix.length), null);
en.add_value (ev);
}
}
......
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