summaryrefslogtreecommitdiff
path: root/src/GsWidget.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-12 15:14:16 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-12 15:14:16 +0000
commit570f2cbe4b10f587591273226a64b79d6d0f48e7 (patch)
treebb6c2e327bdd517eb1e9c3adec1e34c5a962071f /src/GsWidget.cxx
parentdbac923494a608d03f9381687b2ee2a3056b6696 (diff)
fix some warnings
fix some warnings
Diffstat (limited to 'src/GsWidget.cxx')
-rw-r--r--src/GsWidget.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index 31f9882..946e0c0 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: GsWidget.cxx,v 1.7 2004/10/12 16:41:43 hofmann Exp $"
+// "$Id: GsWidget.cxx,v 1.8 2004/10/12 17:14:16 hofmann Exp $"
//
// GsWidget routines.
//
@@ -55,7 +55,6 @@ void GsWidget::draw() {
void GsWidget::setProps() {
char data[512];
- int gs_win;
if (!offscreen) {
offscreen = fl_create_offscreen(w(), h());
@@ -68,8 +67,7 @@ void GsWidget::setProps() {
atoms[4] = XInternAtom(fl_display,"DONE" , false);
snprintf(data, 512, "%lu %d %d %d %d %d %g %g",
- 0, 0, 0, 0, paper_x, paper_y,
- xdpi, ydpi,0,0,0,0 );
+ 0, 0, 0, 0, paper_x, paper_y, xdpi, ydpi);
int xid = fl_xid(window());
@@ -171,7 +169,9 @@ int GsWidget::load(int fd) {
} else {
gs_pid = pid;
page = 0;
- }
+ }
+
+ return 0;
}
int GsWidget::reload() {
@@ -206,6 +206,8 @@ int GsWidget::next() {
XSendEvent(fl_display, gs_win, false, 0, &e);
XFlush(fl_display);
}
+
+ return 0;
}
int GsWidget::handleX11(int ev) {