Skip to content
Snippets Groups Projects
Commit 35c9894b authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#2284] Remove address book warnings

parent d73e1b4a
Branches
Tags
No related merge requests found
......@@ -56,17 +56,17 @@ addressbook_config_load_parameters(AddressBook_Config **settings)
}
else
{
_settings->enable = (guint) (g_hash_table_lookup (_params,
_settings->enable = (gint64) (g_hash_table_lookup (_params,
ADDRESSBOOK_ENABLE));
_settings->max_results = (guint) (g_hash_table_lookup(_params,
_settings->max_results = (gint64) (g_hash_table_lookup(_params,
ADDRESSBOOK_MAX_RESULTS));
_settings->display_contact_photo = (guint) (g_hash_table_lookup(_params,
_settings->display_contact_photo = (gint64) (g_hash_table_lookup(_params,
ADDRESSBOOK_DISPLAY_CONTACT_PHOTO));
_settings->search_phone_business = (guint) (g_hash_table_lookup(_params,
_settings->search_phone_business = (gint64) (g_hash_table_lookup(_params,
ADDRESSBOOK_DISPLAY_PHONE_BUSINESS));
_settings->search_phone_home = (guint) (g_hash_table_lookup(_params,
_settings->search_phone_home = (gint64) (g_hash_table_lookup(_params,
ADDRESSBOOK_DISPLAY_PHONE_HOME));
_settings->search_phone_mobile = (guint) (g_hash_table_lookup(_params,
_settings->search_phone_mobile = (gint64) (g_hash_table_lookup(_params,
ADDRESSBOOK_DISPLAY_PHONE_MOBILE));
}
......
......@@ -37,12 +37,14 @@ G_BEGIN_DECLS
typedef struct _AddressBook_Config
{
guint enable;
guint max_results;
guint display_contact_photo;
guint search_phone_home;
guint search_phone_business;
guint search_phone_mobile;
// gint64: a signed integer guaranteed to be 64 bits on all platforms
// To print or scan values of this type, use G_GINT64_MODIFIER and/or G_GINT64_FORMAT
gint64 enable;
gint64 max_results;
gint64 display_contact_photo;
gint64 search_phone_home;
gint64 search_phone_business;
gint64 search_phone_mobile;
} AddressBook_Config;
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment