Commit e9753049 authored by Marco Pesenti Gritti's avatar Marco Pesenti Gritti

2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>

        * glib/poppler-action.cc:
        * glib/poppler-action.h:

        Implement launch action
parent ab18b2cb
2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>
* glib/poppler-action.cc:
* glib/poppler-action.h:
Implement launch action
2005-09-20 Albert Astals Cid <aacid@kde.org>
* poppler/GlobalParams.[cc|h]: Merge from xpdf 3.01
* poppler/Link.cc: Merge from xpdf 3.01
......
......@@ -209,9 +209,14 @@ build_goto_remote (PopplerAction *action,
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 @@ _poppler_action_new (PopplerDocument *document,
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;
......
......@@ -105,6 +105,7 @@ struct _PopplerActionLaunch
gchar *title;
gchar *file_name;
gchar *params;
};
struct _PopplerActionUri
......
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