forked from AuroraMiddleware/gtk
Don't start a drag if we loose the grab.
2004-10-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_grab_notify): Don't start a drag if we loose the grab.
This commit is contained in:
parent
356c249aab
commit
0caefdebc0
@ -1,5 +1,8 @@
|
||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_grab_notify): Don't start a
|
||||
drag if we loose the grab.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||
which would otherwise occur if the editing is stopped for the second
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_grab_notify): Don't start a
|
||||
drag if we loose the grab.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||
which would otherwise occur if the editing is stopped for the second
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_grab_notify): Don't start a
|
||||
drag if we loose the grab.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||
which would otherwise occur if the editing is stopped for the second
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_grab_notify): Don't start a
|
||||
drag if we loose the grab.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||
which would otherwise occur if the editing is stopped for the second
|
||||
|
@ -190,6 +190,8 @@ static gint gtk_tree_view_focus (GtkWidget *widget,
|
||||
static void gtk_tree_view_grab_focus (GtkWidget *widget);
|
||||
static void gtk_tree_view_style_set (GtkWidget *widget,
|
||||
GtkStyle *previous_style);
|
||||
static void gtk_tree_view_grab_notify (GtkWidget *widget,
|
||||
gboolean was_grabbed);
|
||||
|
||||
/* container signals */
|
||||
static void gtk_tree_view_remove (GtkContainer *container,
|
||||
@ -531,6 +533,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
widget_class->focus = gtk_tree_view_focus;
|
||||
widget_class->grab_focus = gtk_tree_view_grab_focus;
|
||||
widget_class->style_set = gtk_tree_view_style_set;
|
||||
widget_class->grab_notify = gtk_tree_view_grab_notify;
|
||||
|
||||
/* GtkContainer signals */
|
||||
container_class->remove = gtk_tree_view_remove;
|
||||
@ -12998,4 +13001,13 @@ gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view,
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gtk_tree_view_grab_notify (GtkWidget *widget,
|
||||
gboolean was_grabbed)
|
||||
{
|
||||
GtkTreeView *tree_view = GTK_TREE_VIEW (widget);
|
||||
|
||||
if (!was_grabbed)
|
||||
tree_view->priv->pressed_button = -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user