diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2007-10-29 03:09:17 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-10-29 03:09:17 +0800 |
commit | 2c032925a59bf26386bd0f98dbd1f3dc9457f149 (patch) | |
tree | 8d40d32f6a0ab5135f06831900c89bdc1f4498ff /libempathy-gtk/empathy-contact-list-view.c | |
parent | 3a050b0c01d0f84cc65ffcfe07f9619248c398a6 (diff) | |
download | gsoc2013-empathy-2c032925a59bf26386bd0f98dbd1f3dc9457f149.tar gsoc2013-empathy-2c032925a59bf26386bd0f98dbd1f3dc9457f149.tar.gz gsoc2013-empathy-2c032925a59bf26386bd0f98dbd1f3dc9457f149.tar.bz2 gsoc2013-empathy-2c032925a59bf26386bd0f98dbd1f3dc9457f149.tar.lz gsoc2013-empathy-2c032925a59bf26386bd0f98dbd1f3dc9457f149.tar.xz gsoc2013-empathy-2c032925a59bf26386bd0f98dbd1f3dc9457f149.tar.zst gsoc2013-empathy-2c032925a59bf26386bd0f98dbd1f3dc9457f149.zip |
Rename COL_XXX to EMPATHY_CONTACT_LIST_STORE_COL_XXX since it's in public
2007-10-28 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-contact-list-view.c:
* libempathy-gtk/empathy-contact-list-store.c:
* libempathy-gtk/empathy-contact-list-store.h:
* doc/libempathy-gtk/libempathy-gtk.types:
* doc/libempathy-gtk/tmpl/empathy-contact-list-store.sgml: Rename
COL_XXX to EMPATHY_CONTACT_LIST_STORE_COL_XXX since it's in public API.
Fixes bug #470804.
svn path=/trunk/; revision=405
Diffstat (limited to 'libempathy-gtk/empathy-contact-list-view.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-list-view.c | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 8151b0569..73afd299a 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -500,7 +500,9 @@ empathy_contact_list_view_get_selected (EmpathyContactListView *view) return NULL; } - gtk_tree_model_get (model, &iter, COL_CONTACT, &contact, -1); + gtk_tree_model_get (model, &iter, + EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact, + -1); return contact; } @@ -525,8 +527,8 @@ empathy_contact_list_view_get_selected_group (EmpathyContactListView *view) } gtk_tree_model_get (model, &iter, - COL_IS_GROUP, &is_group, - COL_NAME, &name, + EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, + EMPATHY_CONTACT_LIST_STORE_COL_NAME, &name, -1); if (!is_group) { @@ -631,11 +633,11 @@ contact_list_view_setup (EmpathyContactListView *view) view, NULL); gtk_tree_view_column_add_attribute (col, cell, - "name", COL_NAME); + "name", EMPATHY_CONTACT_LIST_STORE_COL_NAME); gtk_tree_view_column_add_attribute (col, cell, - "status", COL_STATUS); + "status", EMPATHY_CONTACT_LIST_STORE_COL_STATUS); gtk_tree_view_column_add_attribute (col, cell, - "is_group", COL_IS_GROUP); + "is_group", EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP); #ifdef HAVE_VOIP /* Voip Capability Icon */ @@ -719,8 +721,8 @@ contact_list_view_row_has_child_toggled_cb (GtkTreeModel *model, gchar *name = NULL; gtk_tree_model_get (model, iter, - COL_IS_GROUP, &is_group, - COL_NAME, &name, + EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, + EMPATHY_CONTACT_LIST_STORE_COL_NAME, &name, -1); if (!is_group || G_STR_EMPTY (name)) { @@ -1072,9 +1074,9 @@ contact_list_view_pixbuf_cell_data_func (GtkTreeViewColumn *tree_column, gboolean is_active; gtk_tree_model_get (model, iter, - COL_IS_GROUP, &is_group, - COL_IS_ACTIVE, &is_active, - COL_ICON_STATUS, &icon_name, + EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, + EMPATHY_CONTACT_LIST_STORE_COL_IS_ACTIVE, &is_active, + EMPATHY_CONTACT_LIST_STORE_COL_ICON_STATUS, &icon_name, -1); g_object_set (cell, @@ -1100,9 +1102,9 @@ contact_list_view_voip_cell_data_func (GtkTreeViewColumn *tree_column, gboolean can_voip; gtk_tree_model_get (model, iter, - COL_IS_GROUP, &is_group, - COL_IS_ACTIVE, &is_active, - COL_CAN_VOIP, &can_voip, + EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, + EMPATHY_CONTACT_LIST_STORE_COL_IS_ACTIVE, &is_active, + EMPATHY_CONTACT_LIST_STORE_COL_CAN_VOIP, &can_voip, -1); g_object_set (cell, @@ -1127,10 +1129,10 @@ contact_list_view_avatar_cell_data_func (GtkTreeViewColumn *tree_column, gboolean is_active; gtk_tree_model_get (model, iter, - COL_PIXBUF_AVATAR, &pixbuf, - COL_PIXBUF_AVATAR_VISIBLE, &show_avatar, - COL_IS_GROUP, &is_group, - COL_IS_ACTIVE, &is_active, + EMPATHY_CONTACT_LIST_STORE_COL_PIXBUF_AVATAR, &pixbuf, + EMPATHY_CONTACT_LIST_STORE_COL_PIXBUF_AVATAR_VISIBLE, &show_avatar, + EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, + EMPATHY_CONTACT_LIST_STORE_COL_IS_ACTIVE, &is_active, -1); g_object_set (cell, @@ -1157,9 +1159,9 @@ contact_list_view_text_cell_data_func (GtkTreeViewColumn *tree_column, gboolean show_status; gtk_tree_model_get (model, iter, - COL_IS_GROUP, &is_group, - COL_IS_ACTIVE, &is_active, - COL_STATUS_VISIBLE, &show_status, + EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, + EMPATHY_CONTACT_LIST_STORE_COL_IS_ACTIVE, &is_active, + EMPATHY_CONTACT_LIST_STORE_COL_STATUS_VISIBLE, &show_status, -1); g_object_set (cell, @@ -1180,8 +1182,8 @@ contact_list_view_expander_cell_data_func (GtkTreeViewColumn *column, gboolean is_active; gtk_tree_model_get (model, iter, - COL_IS_GROUP, &is_group, - COL_IS_ACTIVE, &is_active, + EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, + EMPATHY_CONTACT_LIST_STORE_COL_IS_ACTIVE, &is_active, -1); if (gtk_tree_model_iter_has_child (model, iter)) { @@ -1271,7 +1273,9 @@ contact_list_view_button_press_event_cb (EmpathyContactListView *view, gtk_tree_model_get_iter (model, &iter, path); gtk_tree_path_free (path); - gtk_tree_model_get (model, &iter, COL_CONTACT, &contact, -1); + gtk_tree_model_get (model, &iter, + EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact, + -1); if (contact) { menu = empathy_contact_list_view_get_contact_menu (view, contact); @@ -1311,7 +1315,9 @@ contact_list_view_row_activated_cb (EmpathyContactListView *view, model = gtk_tree_view_get_model (GTK_TREE_VIEW (view)); gtk_tree_model_get_iter (model, &iter, path); - gtk_tree_model_get (model, &iter, COL_CONTACT, &contact, -1); + gtk_tree_model_get (model, &iter, + EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact, + -1); if (contact) { contact_list_view_action_activated (view, contact); @@ -1339,7 +1345,9 @@ contact_list_view_voip_activated_cb (EmpathyCellRendererActivatable *cell, return; } - gtk_tree_model_get (model, &iter, COL_CONTACT, &contact, -1); + gtk_tree_model_get (model, &iter, + EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact, + -1); if (contact) { contact_list_view_voip_activated (view, contact); @@ -1362,7 +1370,7 @@ contact_list_view_row_expand_or_collapse_cb (EmpathyContactListView *view, model = gtk_tree_view_get_model (GTK_TREE_VIEW (view)); gtk_tree_model_get (model, iter, - COL_NAME, &name, + EMPATHY_CONTACT_LIST_STORE_COL_NAME, &name, -1); expanded = GPOINTER_TO_INT (user_data); |