From d58a276f9187ec36acef2df827fcd7613ee0e347 Mon Sep 17 00:00:00 2001
From: Stefano Karapetsas <stefano@karapetsas.com>
Date: Sat, 3 May 2014 20:39:51 +0200
Subject: Use MateAboutDialog from libmate-desktop

---
 configure.ac      | 3 ++-
 shell/ev-window.c | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index a47a9088..13203bbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -134,6 +134,7 @@ dnl Specify required versions of dependencies
 CAIRO_REQUIRED=1.9.10
 GLIB_REQUIRED=2.32.0
 LIBSECRET_REQUIRED=0.5
+MATEDESKTOP_REQUIRED=1.9.0
 
 case "$with_gtk" in
   2.0) GTK_API_VERSION=2.0
@@ -194,7 +195,7 @@ case "$with_platform" in
         ;;
 esac
 
-PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS])
+PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS])
 
 dnl
 dnl zlib support
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 8914d2e2..5b046ae7 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -41,6 +41,8 @@
 #include <gio/gio.h>
 #include <gtk/gtk.h>
 
+#include <libmate-desktop/mate-aboutdialog.h>
+
 #include "egg-editable-toolbar.h"
 #include "egg-toolbar-editor.h"
 #include "egg-toolbars-model.h"
@@ -4617,7 +4619,7 @@ ev_window_cmd_help_about (GtkAction *action, EvWindow *ev_window)
 
 	comments = build_comments_string (ev_window->priv->document);
 
-	gtk_show_about_dialog (
+	mate_show_about_dialog (
 		GTK_WINDOW (ev_window),
 		"name", _("Atril"),
 		"version", VERSION,
-- 
cgit v1.2.1