Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/XPDFApp.cc
diff options
context:
space:
mode:
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>2003-03-31 21:55:40 (GMT)
committer Martin Kretzschmar <mkretzschmar@src.gnome.org>2003-03-31 21:55:40 (GMT)
commit9ac495d6543dbd65992791bb41d5f8fbf90e549c (patch)
tree86a82c37529579eb209b3abe757970e885e11e23 /pdf/xpdf/XPDFApp.cc
parent96653f29e1cfb116a8af43c3aeee5a1ad6947af8 (diff)
Import of Xpdf 2.01 for merge
Diffstat (limited to 'pdf/xpdf/XPDFApp.cc')
-rw-r--r--pdf/xpdf/XPDFApp.cc22
1 files changed, 16 insertions, 6 deletions
diff --git a/pdf/xpdf/XPDFApp.cc b/pdf/xpdf/XPDFApp.cc
index e456310..864dabb 100644
--- a/pdf/xpdf/XPDFApp.cc
+++ b/pdf/xpdf/XPDFApp.cc
@@ -306,6 +306,12 @@ void XPDFApp::remoteOpenAtDest(GString *fileName, GString *dest, GBool raise) {
XFlush(display);
}
+void XPDFApp::remoteReload(GBool raise) {
+ XChangeProperty(display, remoteXWin, remoteAtom, remoteAtom, 8,
+ PropModeReplace, raise ? (Guchar *)"L" : (Guchar *)"l", 2);
+ XFlush(display);
+}
+
void XPDFApp::remoteRaise() {
XChangeProperty(display, remoteXWin, remoteAtom, remoteAtom, 8,
PropModeReplace, (Guchar *)"r", 2);
@@ -348,12 +354,6 @@ void XPDFApp::remoteMsgCbk(Widget widget, XtPointer ptr,
return;
}
- // raise window
- if (cmd[0] == 'D' || cmd[0] == 'r'){
- XMapRaised(app->display, XtWindow(app->remoteWin));
- XFlush(app->display);
- }
-
// display file / page
if (cmd[0] == 'd' || cmd[0] == 'D') {
p = cmd + 2;
@@ -379,8 +379,18 @@ void XPDFApp::remoteMsgCbk(Widget widget, XtPointer ptr,
delete destName;
}
+ // reload
+ } else if (cmd[0] == 'l' || cmd[0] == 'L') {
+ app->remoteViewer->reloadFile();
+
// quit
} else if (cmd[0] == 'q') {
app->quit();
}
+
+ // raise window
+ if (cmd[0] == 'D' || cmd[0] == 'L' || cmd[0] == 'r'){
+ XMapRaised(app->display, XtWindow(app->remoteWin));
+ XFlush(app->display);
+ }
}