Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-02-07 21:11:11 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-02-07 21:11:11 (GMT)
commit16ebda50ec3b3ab96d9bbc3c8e8522b269ef1191 (patch)
tree9ce47e72252a664162bf858188190b26114a737e /shell
parentc27987b5463e16a8a860e643db2091bbb1ce1628 (diff)
Add debugging helpers
2005-02-07 Marco Pesenti Gritti <marco@gnome.org> * Makefile.am: * configure.ac: * doc/debugging.txt: * lib/.cvsignore: * lib/Makefile.am: * lib/ev-debug.c: (log_module), (trap_handler), (ev_debug_init), (ev_profiler_new), (ev_should_profile), (ev_profiler_dump), (ev_profiler_free), (ev_profiler_start), (ev_profiler_stop): * lib/ev-debug.h: Add debugging helpers * ps/Makefile.am: * ps/ps-document.c: (set_up_page), (start_interpreter), (stop_interpreter), (document_load), (ps_document_next_page), (ps_document_goto_page), (ps_document_set_page_size), (ps_document_widget_event), (ps_document_render): * shell/Makefile.am: * shell/ev-view.c: (expose_bin_window): * shell/main.c: (main): Add some logs
Diffstat (limited to 'shell')
-rw-r--r--shell/Makefile.am1
-rw-r--r--shell/ev-view.c4
-rw-r--r--shell/main.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index ad53afe..0d73ffe 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -52,6 +52,7 @@ evince_SOURCES= \
evince_LDADD= \
$(SHELL_LIBS) \
+ $(top_builddir)/lib/libev.la \
$(top_builddir)/pdf/xpdf/libpdfdocument.la \
$(top_builddir)/pixbuf/libpixbufdocument.la \
$(top_builddir)/ps/libgtkgs.la \
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 587b258..d4fa6a2 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -29,6 +29,7 @@
#include "ev-marshal.h"
#include "ev-view.h"
#include "ev-document-find.h"
+#include "ev-debug.h"
#define EV_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_VIEW, EvViewClass))
#define EV_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_VIEW))
@@ -408,6 +409,9 @@ expose_bin_window (GtkWidget *widget,
x_offset + 1,
y_offset + 1);
+ LOG ("Render area %d %d %d %d", event->area.x, event->area.y,
+ event->area.width, event->area.height)
+
ev_document_render (view->document,
event->area.x, event->area.y,
event->area.width, event->area.height);
diff --git a/shell/main.c b/shell/main.c
index fcda1f1..c162935 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -29,6 +29,7 @@
#include <libgnomevfs/gnome-vfs-utils.h>
#include "ev-stock-icons.h"
+#include "ev-debug.h"
static struct poptOption popt_options[] =
{
@@ -83,6 +84,7 @@ main (int argc, char *argv[])
g_set_application_name (_("Evince Document Viewer"));
+ ev_debug_init ();
ev_stock_icons_init ();
g_object_get_property (G_OBJECT (program),