mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
block drag source signal handler during column resizes.
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org> * gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release): block drag source signal handler during column resizes. (gtk_clist_set_column_visibility): resize clist if needed. (gtk_clist_map): raise resize windows to make resize cursor visible again.
This commit is contained in:
parent
e65030aaed
commit
c9a2b79176
@ -1,3 +1,11 @@
|
||||
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
|
||||
block drag source signal handler during column resizes.
|
||||
(gtk_clist_set_column_visibility): resize clist if needed.
|
||||
(gtk_clist_map): raise resize windows to make resize
|
||||
cursor visible again.
|
||||
|
||||
Sun Jan 17 22:47:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.[hc]:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
|
||||
block drag source signal handler during column resizes.
|
||||
(gtk_clist_set_column_visibility): resize clist if needed.
|
||||
(gtk_clist_map): raise resize windows to make resize
|
||||
cursor visible again.
|
||||
|
||||
Sun Jan 17 22:47:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.[hc]:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
|
||||
block drag source signal handler during column resizes.
|
||||
(gtk_clist_set_column_visibility): resize clist if needed.
|
||||
(gtk_clist_map): raise resize windows to make resize
|
||||
cursor visible again.
|
||||
|
||||
Sun Jan 17 22:47:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.[hc]:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
|
||||
block drag source signal handler during column resizes.
|
||||
(gtk_clist_set_column_visibility): resize clist if needed.
|
||||
(gtk_clist_map): raise resize windows to make resize
|
||||
cursor visible again.
|
||||
|
||||
Sun Jan 17 22:47:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.[hc]:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
|
||||
block drag source signal handler during column resizes.
|
||||
(gtk_clist_set_column_visibility): resize clist if needed.
|
||||
(gtk_clist_map): raise resize windows to make resize
|
||||
cursor visible again.
|
||||
|
||||
Sun Jan 17 22:47:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.[hc]:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
|
||||
block drag source signal handler during column resizes.
|
||||
(gtk_clist_set_column_visibility): resize clist if needed.
|
||||
(gtk_clist_map): raise resize windows to make resize
|
||||
cursor visible again.
|
||||
|
||||
Sun Jan 17 22:47:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.[hc]:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Mon Jan 18 00:22:54 1999 Lars Hamann <lars@gtk.org>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
|
||||
block drag source signal handler during column resizes.
|
||||
(gtk_clist_set_column_visibility): resize clist if needed.
|
||||
(gtk_clist_map): raise resize windows to make resize
|
||||
cursor visible again.
|
||||
|
||||
Sun Jan 17 22:47:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.[hc]:
|
||||
|
@ -1651,6 +1651,8 @@ gtk_clist_set_column_visibility (GtkCList *clist,
|
||||
else
|
||||
gtk_widget_hide (clist->column[column].button);
|
||||
}
|
||||
|
||||
gtk_widget_queue_resize (GTK_WIDGET(clist));
|
||||
}
|
||||
|
||||
void
|
||||
@ -4611,10 +4613,12 @@ gtk_clist_map (GtkWidget *widget)
|
||||
!GTK_WIDGET_MAPPED (clist->column[i].button))
|
||||
gtk_widget_map (clist->column[i].button);
|
||||
|
||||
/* map resize windows AFTER column buttons (above) */
|
||||
for (i = 0; i < clist->columns; i++)
|
||||
if (clist->column[i].window && clist->column[i].button)
|
||||
{
|
||||
gdk_window_raise (clist->column[i].window);
|
||||
gdk_window_show (clist->column[i].window);
|
||||
}
|
||||
|
||||
gdk_window_show (clist->title_window);
|
||||
gdk_window_show (clist->clist_window);
|
||||
@ -4998,6 +5002,8 @@ gtk_clist_button_press (GtkWidget *widget,
|
||||
if (clist->column[i].resizeable && clist->column[i].window &&
|
||||
event->window == clist->column[i].window)
|
||||
{
|
||||
gpointer drag_data;
|
||||
|
||||
gdk_pointer_grab (clist->column[i].window, FALSE,
|
||||
GDK_POINTER_MOTION_HINT_MASK |
|
||||
GDK_BUTTON1_MOTION_MASK |
|
||||
@ -5006,6 +5012,11 @@ gtk_clist_button_press (GtkWidget *widget,
|
||||
gtk_grab_add (widget);
|
||||
GTK_CLIST_SET_FLAG (clist, CLIST_IN_DRAG);
|
||||
|
||||
/* block attached dnd signal handler */
|
||||
drag_data = gtk_object_get_data (GTK_OBJECT (clist), "gtk-site-data");
|
||||
if (drag_data)
|
||||
gtk_signal_handler_block_by_data (GTK_OBJECT (clist), drag_data);
|
||||
|
||||
if (!GTK_WIDGET_HAS_FOCUS(widget))
|
||||
gtk_widget_grab_focus (widget);
|
||||
|
||||
@ -5040,6 +5051,7 @@ gtk_clist_button_release (GtkWidget *widget,
|
||||
/* release on resize windows */
|
||||
if (GTK_CLIST_IN_DRAG(clist))
|
||||
{
|
||||
gpointer drag_data;
|
||||
gint width;
|
||||
gint x;
|
||||
gint i;
|
||||
@ -5047,6 +5059,11 @@ gtk_clist_button_release (GtkWidget *widget,
|
||||
i = clist->drag_pos;
|
||||
clist->drag_pos = -1;
|
||||
|
||||
/* unblock attached dnd signal handler */
|
||||
drag_data = gtk_object_get_data (GTK_OBJECT (clist), "gtk-site-data");
|
||||
if (drag_data)
|
||||
gtk_signal_handler_unblock_by_data (GTK_OBJECT (clist), drag_data);
|
||||
|
||||
GTK_CLIST_UNSET_FLAG (clist, CLIST_IN_DRAG);
|
||||
gtk_widget_get_pointer (widget, &x, NULL);
|
||||
gtk_grab_remove (widget);
|
||||
|
Loading…
Reference in New Issue
Block a user