+Tue Apr 13 12:24:49 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
+ variable.
+ (gtk_tree_view_button_press): If we activated the row we don't
+ want to grab focus back, as moving focus to another widget is
+ pretty common, #138458
+
2004-04-12 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
+Tue Apr 13 12:24:49 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
+ variable.
+ (gtk_tree_view_button_press): If we activated the row we don't
+ want to grab focus back, as moving focus to another widget is
+ pretty common, #138458
+
2004-04-12 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
+Tue Apr 13 12:24:49 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
+ variable.
+ (gtk_tree_view_button_press): If we activated the row we don't
+ want to grab focus back, as moving focus to another widget is
+ pretty common, #138458
+
2004-04-12 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
+Tue Apr 13 12:24:49 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
+ variable.
+ (gtk_tree_view_button_press): If we activated the row we don't
+ want to grab focus back, as moving focus to another widget is
+ pretty common, #138458
+
2004-04-12 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
+Tue Apr 13 12:24:49 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
+ variable.
+ (gtk_tree_view_button_press): If we activated the row we don't
+ want to grab focus back, as moving focus to another widget is
+ pretty common, #138458
+
2004-04-12 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
gtk_tree_view_destroy (GtkObject *object)
{
GtkTreeView *tree_view = GTK_TREE_VIEW (object);
- GtkWidget *search_dialog;
GList *list;
gtk_tree_view_stop_editing (tree_view, TRUE);
gtk_tree_path_free (path);
- if (!GTK_WIDGET_HAS_FOCUS (widget))
- gtk_widget_grab_focus (widget);
- GTK_TREE_VIEW_UNSET_FLAG (tree_view, GTK_TREE_VIEW_DRAW_KEYFOCUS);
+ /* If we activated the row we don't want to grab focus back, as moving
+ * focus to another widget is pretty common.
+ */
+ if (!row_double_click)
+ {
+ if (!GTK_WIDGET_HAS_FOCUS (widget))
+ gtk_widget_grab_focus (widget);
+ GTK_TREE_VIEW_UNSET_FLAG (tree_view, GTK_TREE_VIEW_DRAW_KEYFOCUS);
+ }
return TRUE;
}