mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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:
parent
886abba650
commit
9521c72344
@ -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 ========
|
||||
|
@ -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 ========
|
||||
|
@ -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 ========
|
||||
|
@ -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 ========
|
||||
|
@ -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 ========
|
||||
|
@ -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 ========
|
||||
|
@ -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 ========
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user