about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-09-05 10:11:06 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-09-05 10:11:06 +0200
commitd7ef196c26d3aff394da21122a8c4d08066aef7c (patch)
tree33a50d79d2918172b9afeb2ba8b7623cb1fd606d /pkgs/applications/graphics
parent2b928b477519afdef86f14a32770fd35fff86ae5 (diff)
parenta9e60689f48a97e0067c6a8312895e4ee7e66620 (diff)
Merge remote-tracking branch 'upstream/master' into HEAD
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/xournal/default.nix8
-rw-r--r--pkgs/applications/graphics/xournal/gdk-quartz-backend.patch90
2 files changed, 2 insertions, 96 deletions
diff --git a/pkgs/applications/graphics/xournal/default.nix b/pkgs/applications/graphics/xournal/default.nix
index 38573989266d8..cfad449fb0283 100644
--- a/pkgs/applications/graphics/xournal/default.nix
+++ b/pkgs/applications/graphics/xournal/default.nix
@@ -9,11 +9,11 @@ let
 in
 
 stdenv.mkDerivation rec {
-  version = "0.4.8";
+  version = "0.4.8.2016";
   name = "xournal-" + version;
   src = fetchurl {
     url = "mirror://sourceforge/xournal/${name}.tar.gz";
-    sha256 = "0c7gjcqhygiyp0ypaipdaxgkbivg6q45vhsj8v5jsi9nh6iqff13";
+    sha256 = "09i88v3wacmx7f96dmq0l3afpyv95lh6jrx16xzm0jd1szdrhn5j";
   };
 
   buildInputs = [
@@ -26,10 +26,6 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ autoconf automake libtool pkgconfig ];
 
-  patches = stdenv.lib.optionals isGdkQuartzBackend [
-    ./gdk-quartz-backend.patch
-  ];
-
   NIX_LDFLAGS = [ "-lz" ]
     ++ stdenv.lib.optionals (!isGdkQuartzBackend) [ "-lX11" ];
 
diff --git a/pkgs/applications/graphics/xournal/gdk-quartz-backend.patch b/pkgs/applications/graphics/xournal/gdk-quartz-backend.patch
deleted file mode 100644
index d1a42443a88b9..0000000000000
--- a/pkgs/applications/graphics/xournal/gdk-quartz-backend.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-diff -rup xournal-0.4.8-orig/src/Makefile.am xournal-0.4.8/src/Makefile.am
---- xournal-0.4.8-orig/src/Makefile.am	2012-07-04 23:12:47.000000000 +0200
-+++ xournal-0.4.8/src/Makefile.am	2016-12-25 03:04:00.000000000 +0100
-@@ -31,6 +31,5 @@ if WIN32
-   xournal_LDFLAGS = -mwindows
-   xournal_LDADD = win32/xournal.res ttsubset/libttsubset.a @PACKAGE_LIBS@ $(INTLLIBS) -lz
- else
--  xournal_LDADD = ttsubset/libttsubset.a @PACKAGE_LIBS@ $(INTLLIBS) -lX11 -lz -lm
-+  xournal_LDADD = ttsubset/libttsubset.a @PACKAGE_LIBS@ $(INTLLIBS) -lz -lm
- endif
--
-diff -rup xournal-0.4.8-orig/src/xo-file.c xournal-0.4.8/src/xo-file.c
---- xournal-0.4.8-orig/src/xo-file.c	2014-06-28 21:52:25.000000000 +0200
-+++ xournal-0.4.8/src/xo-file.c	2016-12-25 03:07:19.000000000 +0100
-@@ -31,11 +31,6 @@
- #include <glib/gstdio.h>
- #include <poppler/glib/poppler.h>
- 
--#ifndef WIN32
-- #include <gdk/gdkx.h>
-- #include <X11/Xlib.h>
--#endif
--
- #include "xournal.h"
- #include "xo-interface.h"
- #include "xo-support.h"
-@@ -1275,50 +1270,8 @@ GList *attempt_load_gv_bg(char *filename
- 
- struct Background *attempt_screenshot_bg(void)
- {
--#ifndef WIN32
--  struct Background *bg;
--  GdkPixbuf *pix;
--  XEvent x_event;
--  GdkWindow *window;
--  GdkColormap *cmap;
--  int x,y,w,h;
--  Window x_root, x_win;
--
--  x_root = gdk_x11_get_default_root_xwindow();
--  
--  if (!XGrabButton(GDK_DISPLAY(), AnyButton, AnyModifier, x_root, 
--      False, ButtonReleaseMask, GrabModeAsync, GrabModeSync, None, None))
--    return NULL;
--
--  XWindowEvent (GDK_DISPLAY(), x_root, ButtonReleaseMask, &x_event);
--  XUngrabButton(GDK_DISPLAY(), AnyButton, AnyModifier, x_root);
--
--  x_win = x_event.xbutton.subwindow;
--  if (x_win == None) x_win = x_root;
--
--  window = gdk_window_foreign_new_for_display(gdk_display_get_default(), x_win);
--    
--  gdk_window_get_geometry(window, &x, &y, &w, &h, NULL);
--  cmap = gdk_drawable_get_colormap(window);
--  if (cmap == NULL) cmap = gdk_colormap_get_system();
--  
--  pix = gdk_pixbuf_get_from_drawable(NULL, window,
--     cmap, 0, 0, 0, 0, w, h);
--    
--  if (pix == NULL) return NULL;
--  
--  bg = g_new(struct Background, 1);
--  bg->type = BG_PIXMAP;
--  bg->canvas_item = NULL;
--  bg->pixbuf = pix;
--  bg->pixbuf_scale = DEFAULT_ZOOM;
--  bg->filename = new_refstring(NULL);
--  bg->file_domain = DOMAIN_ATTACH;
--  return bg;
--#else
-   // not implemented under WIN32
-   return FALSE;
--#endif
- }
- 
- /************** pdf annotation ***************/
-diff -rup xournal-0.4.8-orig/src/xo-misc.c xournal-0.4.8/src/xo-misc.c
---- xournal-0.4.8-orig/src/xo-misc.c	2014-06-28 15:17:44.000000000 +0200
-+++ xournal-0.4.8/src/xo-misc.c	2016-12-25 03:05:50.000000000 +0100
-@@ -2288,9 +2288,7 @@ void hide_unimplemented(void)
-   }  
-   
-   /* screenshot feature doesn't work yet in Win32 */
--#ifdef WIN32
-   gtk_widget_hide(GET_COMPONENT("journalScreenshot"));
--#endif
- }  
- 
- // toggle fullscreen mode