[gnome-mud] gtk3 porting: gtk_about_dialog_set_url_hook is deprecated
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mud] gtk3 porting: gtk_about_dialog_set_url_hook is deprecated
- Date: Mon, 2 Jan 2012 01:11:23 +0000 (UTC)
commit a5579233cefcb35e0667080ccdca48c2970cb2e5
Author: Mart Raudsepp <leio gentoo org>
Date: Mon Jan 2 02:47:54 2012 +0200
gtk3 porting: gtk_about_dialog_set_url_hook is deprecated
Just don't set it at all, as we now depend on GTK+-2.20 and since 2.18 GtkAboutDialog
opens links with gtk_show_uri by default for us.
Also delete the oldutils_activate_url helper which seems to have been meant for
wrapping gtk_show_uri in backwards compatible way, but never realized.
src/gnome-mud.c | 2 --
src/utils.c | 6 ------
src/utils.h | 1 -
3 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-mud.c b/src/gnome-mud.c
index 787869d..0303fd4 100644
--- a/src/gnome-mud.c
+++ b/src/gnome-mud.c
@@ -97,8 +97,6 @@ main (gint argc, char *argv[])
g_mkdir_with_parents(dir->str, 0755);
g_string_free(dir, TRUE);
- gtk_about_dialog_set_url_hook(utils_activate_url, NULL, NULL);
-
gtk_window_set_default_icon_name(GMUD_STOCK_ICON);
/*Setup debug logging */
diff --git a/src/utils.c b/src/utils.c
index 5ff3f92..51e41c9 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -101,12 +101,6 @@ utils_strip_ansi(const gchar *orig)
}
void
-utils_activate_url(GtkAboutDialog *about, const gchar *url, gpointer data)
-{
- // use gtk_show_uri when available.
-}
-
-void
utils_error_message(GtkWidget *parent, const gchar *title, const gchar *fmt, ...)
{
GtkWidget *dialog, *label, *icon, *hbox;
diff --git a/src/utils.h b/src/utils.h
index c6faddb..7a4234a 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -24,7 +24,6 @@
gchar *utils_remove_whitespace(const gchar *string);
gchar *utils_strip_ansi(const gchar *orig);
-void utils_activate_url(GtkAboutDialog *about, const gchar *url, gpointer data);
void utils_error_message(GtkWidget *parent, const gchar *title, const gchar *fmt, ...);
void utils_str_replace (gchar *buf, const gchar *s, const gchar *repl);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]