--- cbrpager-0.9.15/src/global.c.debug 2005-10-10 14:12:01.000000000 +0900
+++ cbrpager-0.9.15/src/global.c 2008-03-21 23:35:43.000000000 +0900
@@ -28,6 +28,8 @@
#include <stdio.h>
#include <string.h>
+#include <ctype.h>
+
#include "support.h"
#include "interface.h"
#include "global.h"
@@ -138,9 +140,9 @@
start_show(void)
{
GtkWidget *w;
- char *bff, *p, **names;
+ char *bff, *p = NULL, **names;
gboolean first = TRUE;
- int s, t, bffbeg;
+ int s, t, bffbeg = 0;
if (debug) printf("%s\n", pref.lastbook);
@@ -165,7 +167,7 @@
system(bff);
if (!g_file_test(tmpf, G_FILE_TEST_EXISTS)) {
- printf(_("Cannot open temporary file %s\n"), tmpfile);
+ printf(_("Cannot open temporary file\n"));
g_free(bff);
return;
}
@@ -214,7 +216,9 @@
GtkWidget *wdg;
GtkAdjustment *adj;
+#if 0
if (debug) printf("[scroll] to %.2f\n");
+#endif
wdg = lookup_widget(MainWindow, "main_scroller");
adj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(wdg));
if (debug)
@@ -229,7 +233,7 @@
void
request_page(int nr, GdkPixbuf **pxm, double *w, double *h)
{
- char *p, *bff, *esc;
+ char *p, *bff = NULL, *esc;
int len, i, idx = 0;
p = (char *)g_list_nth_data(pagelist, nr);
--- cbrpager-0.9.15/src/global.h.debug 2005-09-06 00:42:14.000000000 +0900
+++ cbrpager-0.9.15/src/global.h 2008-03-21 23:38:17.000000000 +0900
@@ -42,3 +42,5 @@
void set_zoom_fit(void);
void fit_page(int w, int h);
void fit_width(int w);
+
+void set_zoom_width(void);