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

bug correction in dbus.c

parent 0a3c5c87
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,7 @@ sflphone_init()
{
dbus_register(getpid(), "Gtk+ Client");
sflphone_fill_account_list();
sflphone_set_default_account();
return TRUE;
}
}
......@@ -532,4 +533,12 @@ sflphone_place_call ( call_t * c )
}
}
/* Internal to action - set the DEFAULT_ACCOUNT variable */
void
sflphone_set_default_account( )
{
gchar* default_id = strdup(dbus_get_default_account());
g_print("Default Account = %s\n", default_id);
account_list_set_default(default_id);
}
......@@ -102,5 +102,5 @@ void sflphone_keypad ( guint keyval, gchar * key);
void sflphone_place_call ( call_t * c );
void sflphone_fill_account_list();
void sflphone_set_default_account();
#endif
......@@ -147,6 +147,7 @@ accounts_changed_cb (DBusGProxy *proxy,
g_print ("Accounts changed\n");
sflphone_fill_account_list();
config_window_fill_account_list();
fast_fill_account_list();
}
gboolean
......@@ -437,7 +438,7 @@ gchar *
dbus_get_default_account( )
{
GError *error = NULL;
gchar * accountID;
char * accountID;
org_sflphone_SFLphone_ConfigurationManager_get_default_account (
configurationManagerProxy,
&accountID,
......@@ -451,6 +452,8 @@ dbus_get_default_account( )
{
g_print ("DBus called get_default_account() on ConfigurationManager\n");
}
return accountID;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment