Commit 1fdea31e authored by Rumen Zarev's avatar Rumen Zarev Committed by Luca Bruno

poppler-glib: Make PopplerAction* be structs without type id.

Fixes bug 627070.
parent aef8d07c
......@@ -15,3 +15,10 @@ PopplerRectangle is_value_type="1"
poppler_rectangle_new hidden="1"
poppler_rectangle_copy hidden="1"
poppler_rectangle_free hidden="1"
PopplerActionAny is_value_type="1" has_type_id="0"
PopplerActionGotoDest is_value_type="1" has_type_id="0"
PopplerActionGotoRemote is_value_type="1" has_type_id="0"
PopplerActionLaunch is_value_type="1" has_type_id="0"
PopplerActionUri is_value_type="1" has_type_id="0"
PopplerActionNamed is_value_type="1" has_type_id="0"
PopplerActionMovie is_value_type="1" has_type_id="0"
......@@ -5,65 +5,16 @@ namespace Poppler {
[Compact]
[CCode (copy_function = "poppler_action_copy", type_id = "POPPLER_TYPE_ACTION", cheader_filename = "poppler.h")]
public class Action {
public weak Poppler.ActionAny any;
public weak Poppler.ActionGotoDest goto_dest;
public weak Poppler.ActionGotoRemote goto_remote;
public weak Poppler.ActionLaunch launch;
public weak Poppler.ActionMovie movie;
public weak Poppler.ActionNamed named;
public Poppler.ActionAny any;
public Poppler.ActionGotoDest goto_dest;
public Poppler.ActionGotoRemote goto_remote;
public Poppler.ActionLaunch launch;
public Poppler.ActionMovie movie;
public Poppler.ActionNamed named;
public Poppler.ActionType type;
public weak Poppler.ActionUri uri;
public Poppler.ActionUri uri;
public Poppler.Action copy ();
}
[Compact]
[CCode (cheader_filename = "poppler.h")]
public class ActionAny {
public weak string title;
public Poppler.ActionType type;
}
[Compact]
[CCode (cheader_filename = "poppler.h")]
public class ActionGotoDest {
public weak Poppler.Dest dest;
public weak string title;
public Poppler.ActionType type;
}
[Compact]
[CCode (cheader_filename = "poppler.h")]
public class ActionGotoRemote {
public weak Poppler.Dest dest;
public weak string file_name;
public weak string title;
public Poppler.ActionType type;
}
[Compact]
[CCode (cheader_filename = "poppler.h")]
public class ActionLaunch {
public weak string file_name;
public weak string @params;
public weak string title;
public Poppler.ActionType type;
}
[Compact]
[CCode (cheader_filename = "poppler.h")]
public class ActionMovie {
public weak string title;
public Poppler.ActionType type;
}
[Compact]
[CCode (cheader_filename = "poppler.h")]
public class ActionNamed {
public weak string named_dest;
public weak string title;
public Poppler.ActionType type;
}
[Compact]
[CCode (cheader_filename = "poppler.h")]
public class ActionUri {
public weak string title;
public Poppler.ActionType type;
public weak string uri;
}
[CCode (cheader_filename = "poppler.h")]
public class Annot : GLib.Object {
public Poppler.AnnotType get_annot_type ();
......@@ -370,6 +321,48 @@ namespace Poppler {
public PageTransition ();
public Poppler.PageTransition copy ();
}
[CCode (has_type_id = false, cheader_filename = "poppler.h")]
public struct ActionAny {
public Poppler.ActionType type;
public weak string title;
}
[CCode (has_type_id = false, cheader_filename = "poppler.h")]
public struct ActionGotoDest {
public Poppler.ActionType type;
public weak string title;
public weak Poppler.Dest dest;
}
[CCode (has_type_id = false, cheader_filename = "poppler.h")]
public struct ActionGotoRemote {
public Poppler.ActionType type;
public weak string title;
public weak string file_name;
public weak Poppler.Dest dest;
}
[CCode (has_type_id = false, cheader_filename = "poppler.h")]
public struct ActionLaunch {
public Poppler.ActionType type;
public weak string title;
public weak string file_name;
public weak string @params;
}
[CCode (has_type_id = false, cheader_filename = "poppler.h")]
public struct ActionMovie {
public Poppler.ActionType type;
public weak string title;
}
[CCode (has_type_id = false, cheader_filename = "poppler.h")]
public struct ActionNamed {
public Poppler.ActionType type;
public weak string title;
public weak string named_dest;
}
[CCode (has_type_id = false, cheader_filename = "poppler.h")]
public struct ActionUri {
public Poppler.ActionType type;
public weak string title;
public weak string uri;
}
[CCode (type_id = "POPPLER_TYPE_RECTANGLE", cheader_filename = "poppler.h")]
public struct Rectangle {
public double x1;
......
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