[poppler] glib/poppler-action.cc glib/poppler-action.h

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Wed Mar 19 10:33:33 PDT 2008


 glib/poppler-action.cc |    2 +-
 glib/poppler-action.h  |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6a22f0a20df38156c06e8ba10649e0828a1da102
Author: Eugen Dedu <Eugen.Dedu at pu-pm.univ-fcomte.fr>
Date:   Wed Mar 19 18:32:48 2008 +0100

    [glib] Consider no action as an action of type None instead of Unknown

diff --git a/glib/poppler-action.cc b/glib/poppler-action.cc
index e91f8ac..080eb27 100644
--- a/glib/poppler-action.cc
+++ b/glib/poppler-action.cc
@@ -390,7 +390,7 @@ _poppler_action_new (PopplerDocument *document,
 		action->any.title = g_strdup (title);
 
 	if (link == NULL) {
-		action->type = POPPLER_ACTION_UNKNOWN;
+		action->type = POPPLER_ACTION_NONE;
 		return action;
 	}
 
diff --git a/glib/poppler-action.h b/glib/poppler-action.h
index 87f216c..a89351a 100644
--- a/glib/poppler-action.h
+++ b/glib/poppler-action.h
@@ -27,6 +27,7 @@ G_BEGIN_DECLS
 typedef enum
 {
 	POPPLER_ACTION_UNKNOWN,		/* unknown action */
+	POPPLER_ACTION_NONE,            /* no action specified */
 	POPPLER_ACTION_GOTO_DEST,	/* go to destination */
 	POPPLER_ACTION_GOTO_REMOTE,	/* go to destination in new file */
 	POPPLER_ACTION_LAUNCH,		/* launch app (or open document) */


More information about the poppler mailing list