finally get the right behavior.

Sun Mar 10 21:04:30 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
	right behavior.
This commit is contained in:
Jonathan Blandford 2002-03-11 02:13:21 +00:00 committed by Jonathan Blandford
parent 9521c72344
commit 1e1b214a18
8 changed files with 77 additions and 40 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
right behavior.
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with

View File

@ -1,3 +1,8 @@
Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
right behavior.
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with

View File

@ -1,3 +1,8 @@
Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
right behavior.
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with

View File

@ -1,3 +1,8 @@
Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
right behavior.
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with

View File

@ -1,3 +1,8 @@
Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
right behavior.
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with

View File

@ -1,3 +1,8 @@
Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
right behavior.
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with

View File

@ -1,3 +1,8 @@
Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
right behavior.
Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with

View File

@ -1773,11 +1773,17 @@ gtk_tree_view_button_press (GtkWidget *widget,
if (column == NULL)
return FALSE;
/* decide to edit */
/* decide if we edit */
if (event->type == GDK_BUTTON_PRESS &&
!(event->state & gtk_accelerator_get_default_mod_mask ()))
!(event->state & gtk_accelerator_get_default_mod_mask ()) &&
tree_view->priv->cursor)
{
GtkTreePath *cursor = gtk_tree_row_reference_get_path (tree_view->priv->cursor);
if (cursor && !gtk_tree_path_compare (cursor, path))
{
GtkCellEditable *cell_editable = NULL;
/* FIXME: get the right flags */
guint flags = 0;
GtkTreeIter iter;
@ -1796,13 +1802,9 @@ gtk_tree_view_button_press (GtkWidget *widget,
(GdkEvent *)event,
path_string,
&background_area,
&cell_area, flags) &&
tree_view->priv->cursor)
&cell_area, flags))
{
GtkTreePath *cursor = gtk_tree_row_reference_get_path (tree_view->priv->cursor);
if (cell_editable != NULL && cursor &&
!gtk_tree_path_compare (cursor, path))
if (cell_editable != NULL)
{
gtk_tree_view_real_start_editing (tree_view,
column,
@ -1815,13 +1817,13 @@ gtk_tree_view_button_press (GtkWidget *widget,
gtk_tree_path_free (cursor);
return TRUE;
}
if (cursor)
gtk_tree_path_free (cursor);
column_handled_click = TRUE;
}
g_free (path_string);
}
if (cursor)
gtk_tree_path_free (cursor);
}
/* select */
pre_val = tree_view->priv->vadjustment->value;