Fixed bug in XournalWidget.cpp

The eraser was not selected upon receiving events
from the eraser tip

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Removed legacy XInput code

The input code of xournal++ is still littered with strange fallbacks and
workarounds for old and buggy versions of gtk/X11. Porting to gtk-3.0 is a good
time to get rid of them.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Port of the improved drawing system to gtk3

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Clip region in the vertical space tool

If the vertical space tool moves content in such
a way that some part of it leaves the page, said
part will be invisible afterwards. Therefore it
should not be drawn in the overlay either. A simple
clipping achieves the effect.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Updated Glade Main for slightly older libGlade
Fixed type in glade ID

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Fixed memory leak

It appears that the XournalWidget has to be explicitely
destroyed.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Port of the doc target patch to the current tree

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Made the poppler clean a distclean target

Th "make clean" command should not automatically remove
all poppler objects since we practically don't ever need
to recompiler poppler. A distclean should be sufficient
in this case

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Changed the layout / scrollbar code

Instead of positioning the XournalWidget inside of a
GtkGrid it is now contained in a GtkViewport inside a
GtkScrolledWindow. This means that the viewport
takes care of computing the visible portion of the
canvas and the adjustment of the scrollbars.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Made the search bar look prettier

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Modified the page spinner

The labels and the number in the spinner are now
vertically aligned along their baseline.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Removed some dead code

Apparently these two files are not used anywhere.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Modified the code related to the sidebar

- The ScrollbarHideType does not appear to be
  set anywhere in the application, also hiding
  the scrollbar does not seem like a good idea.
- Escape key closes the search bar
- The sidebar size is implemented using the
  position of the GtkPaned instead of a size
  request of a widget
- The buttons for copying / deleting pages
  are now implemented in the glade file

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

The previews are shown even if the sidebar was
initially hidden

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>