aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-04-26 11:19:16 +0800
committerWilliam Jon McCann <jmccann@redhat.com>2012-05-08 01:35:55 +0800
commit60a504dd7ad9f4b621181994c672344fd694fbde (patch)
treeaf42c18f1cdfa7b55165db5b424fbde8a1bada70
parent495f7fc6dc01184920266f6e0c7d8a7f16fc5db4 (diff)
downloadgsoc2013-epiphany-60a504dd7ad9f4b621181994c672344fd694fbde.tar
gsoc2013-epiphany-60a504dd7ad9f4b621181994c672344fd694fbde.tar.gz
gsoc2013-epiphany-60a504dd7ad9f4b621181994c672344fd694fbde.tar.bz2
gsoc2013-epiphany-60a504dd7ad9f4b621181994c672344fd694fbde.tar.lz
gsoc2013-epiphany-60a504dd7ad9f4b621181994c672344fd694fbde.tar.xz
gsoc2013-epiphany-60a504dd7ad9f4b621181994c672344fd694fbde.tar.zst
gsoc2013-epiphany-60a504dd7ad9f4b621181994c672344fd694fbde.zip
Drop the use of GTK accel maps
https://bugzilla.gnome.org/show_bug.cgi?id=674870
-rw-r--r--lib/ephy-file-helpers.c37
-rw-r--r--lib/ephy-file-helpers.h2
-rw-r--r--src/ephy-main.c3
3 files changed, 0 insertions, 42 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index b940d4a7e..50e81f315 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -961,40 +961,3 @@ ephy_file_delete_uri (const char *uri)
}
g_object_unref (file);
}
-
-static gchar *
-get_accels_filename (void)
-{
- const char *home;
-
- home = g_get_home_dir();
- if (!home)
- return NULL;
- return g_build_filename (home, GNOME_DOT_GNOME, "accels", PACKAGE, NULL);
-}
-
-void
-ephy_file_load_accels (void)
-{
- char *filename;
-
- filename = get_accels_filename ();
- if (!filename)
- return;
-
- gtk_accel_map_load (filename);
- g_free (filename);
-}
-
-void
-ephy_file_save_accels (void)
-{
- char *filename;
-
- filename = get_accels_filename ();
- if (!filename)
- return;
-
- gtk_accel_map_save (filename);
- g_free (filename);
-}
diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h
index e5dd72990..4cd270f83 100644
--- a/lib/ephy-file-helpers.h
+++ b/lib/ephy-file-helpers.h
@@ -84,8 +84,6 @@ gboolean ephy_file_browse_to (GFile *file,
gboolean ephy_file_delete_dir_recursively (GFile *file,
GError **error);
void ephy_file_delete_uri (const char *uri);
-void ephy_file_load_accels (void);
-void ephy_file_save_accels (void);
G_END_DECLS
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 707f32532..5b3dad0dd 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -431,8 +431,6 @@ main (int argc,
exit (0);
}
- ephy_file_load_accels ();
-
/* Now create the shell */
if (private_instance)
mode = EPHY_EMBED_SHELL_MODE_PRIVATE;
@@ -489,7 +487,6 @@ main (int argc,
if (notify_is_initted ())
notify_uninit ();
- ephy_file_save_accels ();
ephy_state_save ();
ephy_embed_prefs_shutdown ();
ephy_settings_shutdown ();