[poppler]
poppler/glib: poppler-action.cc, 1.2, 1.3 poppler-action.h, 1.2, 1.3
Marco Pesenti Gritti
marco at freedesktop.org
Mon Sep 26 03:42:40 PDT 2005
Update of /cvs/poppler/poppler/glib
In directory gabe:/tmp/cvs-serv9880/glib
Modified Files:
poppler-action.cc poppler-action.h
Log Message:
2005-09-26 Marco Pesenti Gritti <mpg at redhat.com>
* glib/poppler-action.cc:
* glib/poppler-action.h:
Implement launch action
Index: poppler-action.cc
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-action.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- poppler-action.cc 19 Apr 2005 19:48:49 -0000 1.2
+++ poppler-action.cc 26 Sep 2005 10:42:38 -0000 1.3
@@ -209,9 +209,14 @@
static void
build_launch (PopplerAction *action,
- LinkAction *link)
+ LinkLaunch *link)
{
- /* FIXME: Write */
+ if (link->getFileName()) {
+ action->launch.file_name = link->getFileName()->getCString ();
+ }
+ if (link->getParams()) {
+ action->launch.file_name = link->getParams()->getCString ();
+ }
}
static void
@@ -264,7 +269,7 @@
break;
case actionLaunch:
action->type = POPPLER_ACTION_LAUNCH;
- build_launch (action, link);
+ build_launch (action, dynamic_cast <LinkLaunch *> (link));
break;
case actionURI:
action->type = POPPLER_ACTION_URI;
Index: poppler-action.h
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-action.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- poppler-action.h 16 Apr 2005 18:57:44 -0000 1.2
+++ poppler-action.h 26 Sep 2005 10:42:38 -0000 1.3
@@ -105,6 +105,7 @@
gchar *title;
gchar *file_name;
+ gchar *params;
};
struct _PopplerActionUri
More information about the poppler
mailing list