[epiphany] Remove uneeded default handlers for about dialog
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] Remove uneeded default handlers for about dialog
- Date: Fri, 8 Jan 2010 22:40:23 +0000 (UTC)
commit 0b857e6dd57294f940de2d4eb83c811065752573
Author: Diego Escalante Urrelo <diegoe gnome org>
Date: Sat Dec 19 17:01:37 2009 -0500
Remove uneeded default handlers for about dialog
Since 2.18 url and email hooks are not necessary, GTK+ includes default
handlers.
Bug #509207
src/ephy-main.c | 39 ---------------------------------------
1 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/src/ephy-main.c b/src/ephy-main.c
index cd7f92f..b4e55d6 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]