Commit 566e64a6 authored by Matthias Clasen's avatar Matthias Clasen

Fix the cmp implementation for variant values

This was causing g_param_value_defaults to return 1
for GVariant values even when the value is clearly
different from the default.

This was showing up as gtk-builder-tool stripping
non-default values for GtkActionable::action-target
from ui files.
parent 2d67f91e
Pipeline #10345 failed with stages
in 6 minutes and 59 seconds
......@@ -1155,7 +1155,7 @@ param_variant_values_cmp (GParamSpec *pspec,
GVariant *v1 = value1->data[0].v_pointer;
GVariant *v2 = value2->data[0].v_pointer;
return v1 < v2 ? -1 : v2 > v1;
return v1 < v2 ? -1 : v1 > v2;
}
/* --- type initialization --- */
......
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