[epiphany] Drop the use of GTK accel maps



commit 60a504dd7ad9f4b621181994c672344fd694fbde
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Apr 25 23:19:16 2012 -0400

    Drop the use of GTK accel maps
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674870

 lib/ephy-file-helpers.c |   37 -------------------------------------
 lib/ephy-file-helpers.h |    2 --
 src/ephy-main.c         |    3 ---
 3 files changed, 0 insertions(+), 42 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index b940d4a..50e81f3 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 e5dd729..4cd270f 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 707f325..5b3dad0 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]