]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-list-view.c
Updated Oriya Translation
[empathy.git] / libempathy-gtk / empathy-contact-list-view.c
index fc096b2889bf297b2f0e4c8ab689434d95aac157..a4dfa0f596d52b0070f3ff5c7ac8db0c4a318fb5 100644 (file)
@@ -364,6 +364,7 @@ contact_list_view_drag_motion (GtkWidget      *widget,
        gboolean               is_row;
        gboolean               is_different = FALSE;
        gboolean               cleanup = TRUE;
+       int                    action = 0;
 
        is_row = gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget),
                                                x,
@@ -382,6 +383,13 @@ contact_list_view_drag_motion (GtkWidget      *widget,
                cleanup &= FALSE;
        }
 
+       if (context->actions == GDK_ACTION_COPY) {
+               action = context->suggested_action;
+       } else if (context->actions & GDK_ACTION_MOVE) {
+               action = GDK_ACTION_MOVE;
+       }
+       gdk_drag_status (context, action, time);
+
        if (!is_different && !cleanup) {
                return TRUE;
        }
@@ -817,16 +825,20 @@ contact_list_view_text_cell_data_func (GtkTreeViewColumn     *tree_column,
        gboolean is_group;
        gboolean is_active;
        gboolean show_status;
+       gchar *name;
 
        gtk_tree_model_get (model, iter,
                            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,
+                           EMPATHY_CONTACT_LIST_STORE_COL_NAME, &name,
                            -1);
 
        g_object_set (cell,
                      "show-status", show_status,
+                     "text", name,
                      NULL);
+       g_free (name);
 
        contact_list_view_cell_set_background (view, cell, is_group, is_active);
 }