compare path with cursor path and not with the selected iter in the

Mon Mar 11 01:25:14 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
        cursor path and not with the selected iter in the 'decide to edit'
        check
This commit is contained in:
Kristian Rietveld 2002-03-11 00:28:47 +00:00 committed by Kristian Rietveld
parent 886abba650
commit 9521c72344
8 changed files with 51 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
cursor path and not with the selected iter in the 'decide to edit'
check
Fri Mar 8 14:45:00 2002 Owen Taylor <otaylor@redhat.com>
* ======== Released GTK+-2.0 ========

View File

@ -1,3 +1,9 @@
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
cursor path and not with the selected iter in the 'decide to edit'
check
Fri Mar 8 14:45:00 2002 Owen Taylor <otaylor@redhat.com>
* ======== Released GTK+-2.0 ========

View File

@ -1,3 +1,9 @@
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
cursor path and not with the selected iter in the 'decide to edit'
check
Fri Mar 8 14:45:00 2002 Owen Taylor <otaylor@redhat.com>
* ======== Released GTK+-2.0 ========

View File

@ -1,3 +1,9 @@
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
cursor path and not with the selected iter in the 'decide to edit'
check
Fri Mar 8 14:45:00 2002 Owen Taylor <otaylor@redhat.com>
* ======== Released GTK+-2.0 ========

View File

@ -1,3 +1,9 @@
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
cursor path and not with the selected iter in the 'decide to edit'
check
Fri Mar 8 14:45:00 2002 Owen Taylor <otaylor@redhat.com>
* ======== Released GTK+-2.0 ========

View File

@ -1,3 +1,9 @@
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
cursor path and not with the selected iter in the 'decide to edit'
check
Fri Mar 8 14:45:00 2002 Owen Taylor <otaylor@redhat.com>
* ======== Released GTK+-2.0 ========

View File

@ -1,3 +1,9 @@
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
cursor path and not with the selected iter in the 'decide to edit'
check
Fri Mar 8 14:45:00 2002 Owen Taylor <otaylor@redhat.com>
* ======== Released GTK+-2.0 ========

View File

@ -1796,10 +1796,13 @@ gtk_tree_view_button_press (GtkWidget *widget,
(GdkEvent *)event,
path_string,
&background_area,
&cell_area, flags))
&cell_area, flags) &&
tree_view->priv->cursor)
{
if (cell_editable != NULL &&
gtk_tree_selection_iter_is_selected (gtk_tree_view_get_selection (tree_view), &iter))
GtkTreePath *cursor = gtk_tree_row_reference_get_path (tree_view->priv->cursor);
if (cell_editable != NULL && cursor &&
!gtk_tree_path_compare (cursor, path))
{
gtk_tree_view_real_start_editing (tree_view,
column,
@ -1809,8 +1812,11 @@ gtk_tree_view_button_press (GtkWidget *widget,
(GdkEvent *)event,
flags);
gtk_tree_path_free (path);
gtk_tree_path_free (cursor);
return TRUE;
}
if (cursor)
gtk_tree_path_free (cursor);
column_handled_click = TRUE;
}
g_free (path_string);