[dia] [gtk-deprecated] no more gtk_about_dialog_set_url_hook()



commit 3defbcb5a562e529cd02efa88aa873964cff5057
Author: Hans Breuer <hans breuer org>
Date:   Sun Mar 27 12:13:37 2011 +0200

    [gtk-deprecated] no more gtk_about_dialog_set_url_hook()
    
    Disabling the local code effectively breaks this feature for me,
    but this should be fixed on the Gtk+ level (or maybe gio).

 app/commands.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/commands.c b/app/commands.c
index 7d93401..14de9d9 100644
--- a/app/commands.c
+++ b/app/commands.c
@@ -840,7 +840,11 @@ help_about_callback (GtkAction *action)
   gchar *filename = g_build_filename (dirname, "dia-splash.png", NULL);
   GdkPixbuf *logo = gdk_pixbuf_new_from_file(filename, NULL);
 
+#if GTK_CHECK_VERSION(2,24,0)
+  /* rely on gtk_show_uri doing the right thing internally */
+#else
   gtk_about_dialog_set_url_hook ((GtkAboutDialogActivateLinkFunc)activate_url, NULL, NULL);
+#endif
   gtk_show_about_dialog (NULL,
 	"logo", logo,
         "name", "Dia",



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