~bcurtiswx/ubuntu/precise/empathy/3.4.2.3-0ubuntu1

« back to all changes in this revision

Viewing changes to src/empathy-import-widget.c

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-04-05 12:33:53 UTC
  • mfrom: (1.1.91)
  • Revision ID: package-import@ubuntu.com-20120405123353-cixnoewww4k1v32c
Tags: 3.4.0.1-0ubuntu1
* New upstream release:
 - Initial Empathy Accounts Dialog does not allow to click 
   "Connect" (LP: #972382)
 - Empathy should notify when someone mention me at IRC (LP: #877698)
 - empathy-accounts segfault (settings are null for liststore iter)
 - Call window inline toolbar borders are not crisp 
 - Call window preview drop placeholder should not be red 
 - gst_element_get_name: return value should be freed 
 - Pidgin importer treeview should expand vertically. 
 - Empathy need porting to logger stable call1 support 
 - Video preview is always behind the incoming video 
 - Right-click on GOA account let you disable it 
 - "Enable" account menu item doesn't connect the account 
 - nautilus-sendto menu entry "Instant Message (Empathy)" lacks icon 
* debian/control
  - bump build depend on libclutter-1.0-dev >= 1.10.0
* debian/patches/99_add_missing_av_files.patch
  - Add AudioVideo files that are missing from the release tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
typedef struct {
63
63
  GtkWidget *vbox;
64
64
  GtkWidget *treeview;
 
65
  GtkWidget *scrolledwindow;
65
66
 
66
67
  GList *accounts;
67
68
  EmpathyImportApplication app_id;
91
92
  return FALSE;
92
93
}
93
94
 
 
95
#define MAX_TREEVIEW_HEIGHT 300
 
96
 
94
97
static void
95
 
account_manager_prepared_cb (GObject *source_object,
96
 
    GAsyncResult *result,
97
 
    gpointer user_data)
 
98
import_widget_add_accounts_to_model (EmpathyImportWidget *self)
98
99
{
99
 
  TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object);
100
 
  EmpathyImportWidget *self = user_data;
 
100
  TpAccountManager *manager;
101
101
  GtkTreeModel *model;
102
 
  GtkTreeIter iter;
103
102
  GList *l;
104
103
  EmpathyImportWidgetPriv *priv = GET_PRIV (self);
105
 
  GError *error = NULL;
 
104
  gint min, natural;
106
105
 
107
 
  if (!tp_proxy_prepare_finish (manager, result, &error))
108
 
    {
109
 
      DEBUG ("Failed to prepare account manager: %s", error->message);
110
 
      g_error_free (error);
111
 
      return;
112
 
    }
 
106
  manager = tp_account_manager_dup ();
113
107
 
114
108
  model = gtk_tree_view_get_model (GTK_TREE_VIEW (priv->treeview));
115
109
 
138
132
 
139
133
      g_list_free (accounts);
140
134
 
141
 
      gtk_list_store_append (GTK_LIST_STORE (model), &iter);
142
 
 
143
 
      gtk_list_store_set (GTK_LIST_STORE (model), &iter,
 
135
      gtk_list_store_insert_with_values (GTK_LIST_STORE (model), NULL, -1,
144
136
          COL_IMPORT, import,
145
137
          COL_PROTOCOL, data->protocol,
146
138
          COL_NAME, g_value_get_string (value),
147
139
          COL_SOURCE, data->source,
148
140
          COL_ACCOUNT_DATA, data,
149
141
          -1);
 
142
 
150
143
    }
151
 
}
152
 
 
153
 
static void
154
 
import_widget_add_accounts_to_model (EmpathyImportWidget *self)
155
 
{
156
 
  TpAccountManager *manager;
157
 
 
158
 
  manager = tp_account_manager_dup ();
159
 
 
160
 
  tp_proxy_prepare_async (manager, NULL,
161
 
      account_manager_prepared_cb, self);
 
144
 
 
145
  /* Display as much rows as possible */
 
146
  gtk_widget_get_preferred_height (priv->treeview, &min, &natural);
 
147
  gtk_widget_set_size_request (priv->scrolledwindow, -1,
 
148
      MIN (natural, MAX_TREEVIEW_HEIGHT));
162
149
 
163
150
  g_object_unref (manager);
164
151
}
453
440
  gui = empathy_builder_get_file (filename,
454
441
      "widget_vbox", &priv->vbox,
455
442
      "treeview", &priv->treeview,
 
443
      "scrolledwindow", &priv->scrolledwindow,
456
444
      NULL);
457
445
 
458
446
  g_free (filename);