Perform a new layout of the Thumbnails immediately

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Removed undefined function declaration

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Added event compression option

Disabling the compression of gdk events can
lead to improved performance while drawing
on the canvas at the cost of slightly elevated
CPU load. The option to disable the
compression is now available from the settings
dialog.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Manually merged memory leak fix
Fixed bug in the PDF background selection

Draw callback was not handled correctly, widget was
not expanding. Fixed now

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Fixed small bug in the UndoRedoHandler

To reproduce:

1. Open file, change it and save the change
2. Open different file

=> New file appears to be changed as well even though
   it is not

Should be fixed now...

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Manual patch of fix for bug #68

Needed to free allocated locale. Also port upwards to gtk3.
Merge branch 'master' into addpoppler
Merge branch 'addpoppler' into glib_new
Merge branch 'glib_new' into gtk3

Conflicts:
	src/control/SaveHandler.cpp

Manually fixed.
Temporarily removed event compression

We can un-comment it when gtk is new enough to support this call.