Commit ce46c83a authored by Jonathan Blandford's avatar Jonathan Blandford

Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>

	* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
	a little.  More needs to be done tomorrow.
parent 56f78b5b
Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
a little. More needs to be done tomorrow.
Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
......
Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
a little. More needs to be done tomorrow.
Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
......
Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
a little. More needs to be done tomorrow.
Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
......
Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
a little. More needs to be done tomorrow.
Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
......
Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
a little. More needs to be done tomorrow.
Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
......
Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
a little. More needs to be done tomorrow.
Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
......
Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
a little. More needs to be done tomorrow.
Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
......
......@@ -1657,7 +1657,20 @@ gtk_tree_view_button_press (GtkWidget *widget,
tree_view->priv->press_start_y = event->y;
}
gtk_tree_view_real_set_cursor (tree_view, path, TRUE);
if (tree_view->priv->in_free_motion)
{
gtk_tree_view_real_set_cursor (tree_view, path, FALSE);
gtk_tree_view_real_toggle_cursor_row (tree_view);
}
else if (tree_view->priv->in_extended_selection)
{
gtk_tree_view_real_set_cursor (tree_view, path, FALSE);
gtk_tree_view_real_select_cursor_row (tree_view);
}
else
{
gtk_tree_view_real_set_cursor (tree_view, path, TRUE);
}
if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
{
......@@ -1670,8 +1683,8 @@ gtk_tree_view_button_press (GtkWidget *widget,
gtk_tree_view_real_collapse_row (GTK_TREE_VIEW (widget), path,
tree, node);
}
gtk_tree_view_row_activated (tree_view, path, column);
gtk_tree_view_row_activated (tree_view, path, column);
}
gtk_tree_path_free (path);
return TRUE;
......
......@@ -69,6 +69,8 @@ main (int argc, char *argv[])
// gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model), 0, GTK_TREE_SORT_ASCENDING);
g_print ("start model\n");
tree_view = gtk_tree_view_new_with_model (model);
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)),
GTK_TREE_SELECTION_MULTI);
for (j = 0; j < 2; j++)
for (i = 0; data[i].word_1 != NULL; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment