--- cbrpager-0.9.16/src/global.c.debug 2008-05-22 23:10:32.000000000 +0900
+++ cbrpager-0.9.16/src/global.c 2008-05-23 14:53:51.000000000 +0900
@@ -28,6 +28,8 @@
#include <stdio.h>
#include <string.h>
+#include <ctype.h>
+
#include "support.h"
#include "interface.h"
#include "global.h"
@@ -139,9 +141,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);
@@ -166,7 +168,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 %s\n"), tmpf);
g_free(bff);
return;
}
@@ -215,7 +217,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)
@@ -230,7 +234,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.16/src/global.h.debug 2007-06-13 13:44:11.000000000 +0900
+++ cbrpager-0.9.16/src/global.h 2008-05-23 03:14:28.000000000 +0900
@@ -43,3 +43,5 @@
void set_zoom_fit(void);
void fit_page(int w, int h);
void fit_width(int w);
+
+void set_zoom_width(void);