Merge branch 'sjoerd-mc5' into mc5
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Sat, 1 Aug 2009 08:32:39 +0000 (10:32 +0200)
committerCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Sat, 1 Aug 2009 08:32:39 +0000 (10:32 +0200)
Conflicts:
libempathy-gtk/empathy-account-widget.c
libempathy-gtk/empathy-protocol-chooser.c

1  2 
libempathy-gtk/Makefile.am
libempathy-gtk/empathy-account-widget-irc.c
libempathy-gtk/empathy-contact-dialogs.c
libempathy-gtk/empathy-protocol-chooser.c
libempathy/empathy-account-manager.c
libempathy/empathy-account-settings.c
libempathy/empathy-account.c
po/POTFILES.in

Simple merge
@@@ -422,13 -422,16 +422,13 @@@ empathy_account_widget_irc_build (Empat
  {
    EmpathyAccountWidgetIrc *settings;
    gchar *dir, *user_file_with_path, *global_file_with_path;
 -  GtkBuilder *gui;
 -  GtkWidget *widget;
    GtkListStore *store;
    GtkCellRenderer *renderer;
 -  gchar *filename;
  
    settings = g_slice_new0 (EmpathyAccountWidgetIrc);
 -  settings->settings = g_object_ref (account_settings);
 +  settings->self = self;
  
-   dir = g_build_filename (g_get_home_dir (), ".gnome2", PACKAGE_NAME, NULL);
+   dir = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL);
    g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
    user_file_with_path = g_build_filename (dir, IRC_NETWORKS_FILENAME, NULL);
    g_free (dir);
@@@ -334,13 -334,11 +334,15 @@@ can_add_contact_to_account (EmpathyAcco
        gboolean               result;
  
        connection = empathy_account_get_connection (account);
+       if (connection == NULL)
+               return FALSE;
  
 +      if (connection == NULL) {
 +              return FALSE;
 +      }
 +
        contact_manager = empathy_contact_manager_dup_singleton ();
-       result = empathy_contact_manager_can_add (contact_manager, connection);
+       result = empathy_contact_manager_get_flags_for_connection (contact_manager, connection) & EMPATHY_CONTACT_LIST_CAN_ADD;
        g_object_unref (contact_manager);
  
        return result;
@@@ -164,19 -132,14 +164,19 @@@ protocol_choosers_add_cm (EmpathyProtoc
      {
        const TpConnectionManagerProtocol *proto = *iter;
        gchar *icon_name;
 -      gchar *display_name;
 +      const gchar *display_name;
 +      gchar *display_name_set;
  
-       icon_name = g_strdup_printf ("im-%s", proto->name);
+       icon_name = empathy_protocol_icon_name (proto->name);
 +      display_name = protocol_chooser_proto_name_to_display_name (proto->name);
 +
 +      if (display_name == NULL)
 +        display_name = proto->name;
  
        if (!tp_strdiff (cm->name, "haze"))
 -        display_name = g_strdup_printf ("%s (Haze)", proto->name);
 +        display_name_set = g_strdup_printf ("%s (Haze)", display_name);
        else
 -        display_name = g_strdup (proto->name);
 +        display_name_set = g_strdup (display_name);
  
        gtk_list_store_insert_with_values (priv->store, NULL, 0,
            COL_ICON, icon_name,
@@@ -914,17 -847,17 +912,20 @@@ empathy_account_manager_created_cb (TpA
  
  void
  empathy_account_manager_create_account_async (EmpathyAccountManager *manager,
-   const gchar *connection_manager,
-   const gchar *protocol, const gchar *display_name,
-   GHashTable *parameters, GHashTable *properties,
-   GAsyncReadyCallback callback, gpointer user_data)
+     const gchar *connection_manager,
+     const gchar *protocol,
+     const gchar *display_name,
+     GHashTable *parameters,
+     GHashTable *properties,
+     GAsyncReadyCallback callback,
+     gpointer user_data)
  {
    EmpathyAccountManagerPriv *priv = GET_PRIV (manager);
 -  GSimpleAsyncResult *result = g_simple_async_result_new (G_OBJECT (manager),
 -      callback, user_data, empathy_account_manager_create_account_finish);
 +  GSimpleAsyncResult *res;
 +
 +  res = g_simple_async_result_new
 +    (G_OBJECT (manager), callback, user_data,
 +     empathy_account_manager_create_account_finish);
  
    tp_cli_account_manager_call_create_account (priv->tp_manager,
        -1,
Simple merge
Simple merge
diff --cc po/POTFILES.in
Simple merge