Free the path after calling gtk_tree_view_row_activated() rather than

2002-03-26  Dave Camp  <dave@ximian.com>

        * gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
        after calling gtk_tree_view_row_activated() rather than before.
This commit is contained in:
Dave Camp 2002-03-26 17:12:30 +00:00 committed by Dave Camp
parent a09137d77a
commit e62f9fb020
7 changed files with 33 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-26 Dave Camp <dave@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
after calling gtk_tree_view_row_activated() rather than before.
2002-03-25 Sven Neumann <sven@gimp.org> 2002-03-25 Sven Neumann <sven@gimp.org>
* gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's

View File

@ -1,3 +1,8 @@
2002-03-26 Dave Camp <dave@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
after calling gtk_tree_view_row_activated() rather than before.
2002-03-25 Sven Neumann <sven@gimp.org> 2002-03-25 Sven Neumann <sven@gimp.org>
* gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's

View File

@ -1,3 +1,8 @@
2002-03-26 Dave Camp <dave@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
after calling gtk_tree_view_row_activated() rather than before.
2002-03-25 Sven Neumann <sven@gimp.org> 2002-03-25 Sven Neumann <sven@gimp.org>
* gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's

View File

@ -1,3 +1,8 @@
2002-03-26 Dave Camp <dave@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
after calling gtk_tree_view_row_activated() rather than before.
2002-03-25 Sven Neumann <sven@gimp.org> 2002-03-25 Sven Neumann <sven@gimp.org>
* gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's

View File

@ -1,3 +1,8 @@
2002-03-26 Dave Camp <dave@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
after calling gtk_tree_view_row_activated() rather than before.
2002-03-25 Sven Neumann <sven@gimp.org> 2002-03-25 Sven Neumann <sven@gimp.org>
* gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's

View File

@ -1,3 +1,8 @@
2002-03-26 Dave Camp <dave@ximian.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
after calling gtk_tree_view_row_activated() rather than before.
2002-03-25 Sven Neumann <sven@gimp.org> 2002-03-25 Sven Neumann <sven@gimp.org>
* gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's

View File

@ -1905,13 +1905,15 @@ gtk_tree_view_button_press (GtkWidget *widget,
} }
GTK_TREE_VIEW_UNSET_FLAG (tree_view, GTK_TREE_VIEW_DRAW_KEYFOCUS); GTK_TREE_VIEW_UNSET_FLAG (tree_view, GTK_TREE_VIEW_DRAW_KEYFOCUS);
gtk_tree_path_free (path);
if (emit_row_activated) if (emit_row_activated)
{ {
gtk_grab_remove (widget); gtk_grab_remove (widget);
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; return TRUE;
} }