freebsd-ports/graphics/agave/files/patch-src__gcs-mainwindow-actions.cc
John Marino 5b9fd52779 graphics/agave: Upgrade version 0.4.2 => 0.4.7 and stage
PR:		192477
Submitted by:	Ports Fury
2014-08-10 08:22:55 +00:00

32 lines
738 B
C++

--- src/gcs-mainwindow-actions.cc.orig
+++ src/gcs-mainwindow-actions.cc
@@ -25,7 +25,12 @@
#include <vector>
#include <gtk/gtk.h>
+
+#include <config.h>
+#ifdef HAVE_GNOME
#include <libgnome/gnome-help.h>
+#endif // HAVE_GNOME
+
#include <gtkmm/iconfactory.h>
#include <gtkmm/stock.h>
#include <gtkmm/clipboard.h>
@@ -251,9 +256,16 @@
/* Help Menu Actions */
void MainWindow::on_action_help_contents(void)
{
+#ifdef HAVE_GNOME
gnome_help_display("agave.xml",
NULL /* link id */,
NULL /* GError */);
+#else
+ gtk_show_uri(NULL,
+ "ghelp:agave",
+ gtk_get_current_event_time (),
+ NULL);
+#endif // HAVE_GNOME
}