[gucharmap] Remove about dialogue hooks on gtk3



commit 8463a8ccb301e30952ec17d9bfbbff14fcab2b0b
Author: Christian Persch <chpe gnome org>
Date:   Sun Sep 26 16:01:57 2010 +0200

    Remove about dialogue hooks on gtk3

 gucharmap/gucharmap-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gucharmap/gucharmap-window.c b/gucharmap/gucharmap-window.c
index 9755ad2..650fbc5 100644
--- a/gucharmap/gucharmap-window.c
+++ b/gucharmap/gucharmap-window.c
@@ -408,6 +408,7 @@ help_contents (GtkAction *action,
   g_free (url);
 }
 
+#if !GTK_CHECK_VERSION (2, 90, 8)
 static void
 about_open_url (GtkAboutDialog *about,
                 const char *link,
@@ -430,6 +431,7 @@ about_email_hook (GtkAboutDialog *about,
   open_url (GTK_WINDOW (about), uri, gtk_get_current_event_time ());
   g_free (uri);
 }
+#endif
 
 static void
 help_about (GtkAction       *action, 
@@ -476,8 +478,10 @@ help_about (GtkAction       *action,
 			       _(license[2]), "\n\n", _(license[3]), "\n\n",
 			       _(license[4]), "\n\n", NULL);
 
+#if !GTK_CHECK_VERSION (2, 90, 8)
   gtk_about_dialog_set_url_hook (about_open_url, NULL, NULL);
   gtk_about_dialog_set_email_hook (about_email_hook, NULL, NULL);
+#endif
 
   gtk_show_about_dialog (GTK_WINDOW (guw),
 			 "program-name", _("GNOME Character Map"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]