aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2009-12-20 06:01:37 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2010-01-09 06:35:29 +0800
commit0b857e6dd57294f940de2d4eb83c811065752573 (patch)
tree80489d1e4b138a7c49bc797000c3c86ce71771f4
parent23b77f1230e6843456b83db937920db8202d1a10 (diff)
downloadgsoc2013-epiphany-0b857e6dd57294f940de2d4eb83c811065752573.tar
gsoc2013-epiphany-0b857e6dd57294f940de2d4eb83c811065752573.tar.gz
gsoc2013-epiphany-0b857e6dd57294f940de2d4eb83c811065752573.tar.bz2
gsoc2013-epiphany-0b857e6dd57294f940de2d4eb83c811065752573.tar.lz
gsoc2013-epiphany-0b857e6dd57294f940de2d4eb83c811065752573.tar.xz
gsoc2013-epiphany-0b857e6dd57294f940de2d4eb83c811065752573.tar.zst
gsoc2013-epiphany-0b857e6dd57294f940de2d4eb83c811065752573.zip
Remove uneeded default handlers for about dialog
Since 2.18 url and email hooks are not necessary, GTK+ includes default handlers. Bug #509207
-rw-r--r--src/ephy-main.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index cd7f92f23..b4e55d63a 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -203,41 +203,6 @@ slowly_and_stupidly_obtain_timestamp (Display *xdisplay)
}
static void
-handle_url (GtkAboutDialog *about,
- const char *link,
- gpointer data)
-{
- ephy_shell_new_tab (ephy_shell_get_default (),
- NULL, NULL, link,
- EPHY_NEW_TAB_OPEN_PAGE);
-}
-
-static void
-handle_email (GtkAboutDialog *about,
- const char *link,
- gpointer data)
-{
- char *command, *handler;
- GAppInfo *appinfo;
-
- if (eel_gconf_get_boolean ("/desktop/gnome/url-handlers/mailto/enabled") == FALSE)
- {
- return;
- }
- /* FIXME: better use g_app_info_get_default_for_uri_scheme () when it is
- * implemented.
- */
- handler = eel_gconf_get_string ("/desktop/gnome/url-handlers/mailto/command");
- command = g_strconcat (handler, "mailto:", link, NULL);
- appinfo = g_app_info_create_from_commandline (command, NULL, 0, NULL);
- ephy_file_launch_application (appinfo, NULL,
- gtk_get_current_event_time (),
- GTK_WIDGET (about));
- g_free (handler);
- g_free (command);
-}
-
-static void
unref_proxy_reply_cb (DBusGProxy *proxy,
GError *error,
gpointer user_data)
@@ -757,10 +722,6 @@ main (int argc,
ephy_stock_icons_init ();
load_accels ();
- /* Extensions may want these, so don't initialize in window-cmds */
- gtk_about_dialog_set_url_hook (handle_url, NULL, NULL);
- gtk_about_dialog_set_email_hook (handle_email, NULL, NULL);
-
/* Work-around Flash Player crash */
g_setenv ("XLIB_SKIP_ARGB_VISUALS", "1", FALSE);