aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-password-info.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/ephy-password-info.c b/src/ephy-password-info.c
index 09591d505..0487110b2 100644
--- a/src/ephy-password-info.c
+++ b/src/ephy-password-info.c
@@ -17,12 +17,10 @@
*
*/
#include "config.h"
-
#include "ephy-password-info.h"
#include <gnome-keyring-memory.h>
-
static EphyPasswordInfo*
password_info_copy (EphyPasswordInfo *info)
{
@@ -40,19 +38,8 @@ password_info_free (EphyPasswordInfo *info)
g_slice_free (EphyPasswordInfo, info);
}
-GType
-ephy_password_info_get_type (void)
-{
- static volatile gsize type_volatile = 0;
- if (g_once_init_enter (&type_volatile)) {
- GType type = g_boxed_type_register_static(
- g_intern_static_string ("EphyTypePasswordInfo"),
- (GBoxedCopyFunc) password_info_copy,
- (GBoxedFreeFunc) password_info_free);
- g_once_init_leave (&type_volatile, type);
- }
- return type_volatile;
-}
+G_DEFINE_BOXED_TYPE (EphyPasswordInfo, ephy_password_info,
+ password_info_copy, password_info_free)
EphyPasswordInfo
*ephy_password_info_new (guint32 key_id)