[planner] Remove deprecated gtk_about_dialog_set_email_hook and gtk_about_dialog_set_url_hook.
- From: Luis Menina <lmenina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner] Remove deprecated gtk_about_dialog_set_email_hook and gtk_about_dialog_set_url_hook.
- Date: Tue, 5 Mar 2013 17:12:03 +0000 (UTC)
commit e87c517923d5646f4a3c33b270915f88d92bf55e
Author: Luis Menina <liberforce freeside fr>
Date: Sat Mar 2 01:39:37 2013 +0100
Remove deprecated gtk_about_dialog_set_email_hook and
gtk_about_dialog_set_url_hook.
Those symbols are deprecated as of GTK 2.24. Removing them to use the
default comportment (calling gtk_show_uri) requires a GTK version bump to
2.18.
https://bugzilla.gnome.org/show_bug.cgi?id=575129
configure.ac | 2 +-
src/planner-window.c | 32 --------------------------------
2 files changed, 1 insertions(+), 33 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 06568fd..7a786cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,7 +65,7 @@ dnl If you add a version number here, you *must* add an AC_SUBST line for
dnl it too, or it will never make it into the spec file!
GLIB_REQUIRED=2.6.0
-GTK_REQUIRED=2.14.0
+GTK_REQUIRED=2.18.0
LIBGNOMECANVAS_REQUIRED=2.10.0
LIBGLADE_REQUIRED=2.3.0
GNOME_VFS_REQUIRED=2.10.0
diff --git a/src/planner-window.c b/src/planner-window.c
index 66e0d37..3276eb5 100644
--- a/src/planner-window.c
+++ b/src/planner-window.c
@@ -192,10 +192,6 @@ static void window_connect_proxy_cb (GtkUIManager *manager,
GtkWidget *proxy,
PlannerWindow *window);
-static void handle_links (GtkAboutDialog *about G_GNUC_UNUSED,
- const gchar *link,
- gpointer data);
-
#define CONF_WINDOW_DIR "/ui"
#define CONF_WINDOW_MAXIMIZED "/ui/main_window_maximized"
#define CONF_WINDOW_WIDTH "/ui/main_window_width"
@@ -1152,28 +1148,6 @@ window_help_cb (GtkAction *action,
planner_util_show_help (NULL);
}
-static void
-handle_links (GtkAboutDialog *about,
- const gchar *link,
- gpointer data)
-{
- gchar *newlink;
-
- switch (GPOINTER_TO_INT (data)) {
- case LINK_TYPE_EMAIL:
- newlink = g_strdup_printf ("mailto:%s", link);
- break;
- case LINK_TYPE_URL:
- newlink = g_strdup (link);
- break;
- default:
- g_assert_not_reached ();
- }
-
- planner_util_show_url (NULL, newlink);
- g_free (newlink);
-}
-
static void
window_about_cb (GtkAction *action,
gpointer data)
@@ -1201,12 +1175,6 @@ window_about_cb (GtkAction *action,
pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
g_free (filename);
- gtk_about_dialog_set_email_hook ((GtkAboutDialogActivateLinkFunc) handle_links,
- GINT_TO_POINTER (LINK_TYPE_EMAIL), NULL);
-
- gtk_about_dialog_set_url_hook ((GtkAboutDialogActivateLinkFunc) handle_links,
- GINT_TO_POINTER (LINK_TYPE_URL), NULL);
-
gtk_show_about_dialog (GTK_WINDOW (window),
"version", VERSION,
"comments", _("A Project Management application for the GNOME desktop"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]