Mercurial > pidgin.yaz
comparison pidgin/gtkstatusbox.c @ 18196:a4dee68e040f
Let non-delete keys operate.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 19 Jun 2007 18:31:46 +0000 |
parents | 09eb621782bc |
children | 9cb31b7c2dd6 |
comparison
equal
deleted
inserted
replaced
18194:9c17cdcfc799 | 18196:a4dee68e040f |
---|---|
1622 GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(box->tree_view)); | 1622 GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(box->tree_view)); |
1623 GtkTreeIter iter; | 1623 GtkTreeIter iter; |
1624 GtkTreePath *path; | 1624 GtkTreePath *path; |
1625 | 1625 |
1626 if (gtk_tree_selection_get_selected(sel, NULL, &iter)) { | 1626 if (gtk_tree_selection_get_selected(sel, NULL, &iter)) { |
1627 gboolean ret = TRUE; | |
1627 path = gtk_tree_model_get_path(GTK_TREE_MODEL(box->dropdown_store), &iter); | 1628 path = gtk_tree_model_get_path(GTK_TREE_MODEL(box->dropdown_store), &iter); |
1628 if (event->keyval == GDK_Return) { | 1629 if (event->keyval == GDK_Return) { |
1629 treeview_activate_current_selection(box, path); | 1630 treeview_activate_current_selection(box, path); |
1630 } else if (event->keyval == GDK_Delete) { | 1631 } else if (event->keyval == GDK_Delete) { |
1631 tree_view_delete_current_selection(box, path); | 1632 tree_view_delete_current_selection(box, path); |
1632 } | 1633 } else |
1634 ret = FALSE; | |
1633 | 1635 |
1634 gtk_tree_path_free (path); | 1636 gtk_tree_path_free (path); |
1635 return TRUE; | 1637 return ret; |
1636 } | 1638 } |
1637 } | 1639 } |
1638 } | 1640 } |
1639 return FALSE; | 1641 return FALSE; |
1640 } | 1642 } |