care for the posssibility that someone destroys the entry on the

Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
        someone destroys the entry on the ::activate signal.
This commit is contained in:
Tim Janik 1998-07-17 03:56:13 +00:00 committed by Tim Janik
parent ca17982ed2
commit ca7b223bf0
8 changed files with 41 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation

View File

@ -1,3 +1,8 @@
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation

View File

@ -1,3 +1,8 @@
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation

View File

@ -1,3 +1,8 @@
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation

View File

@ -1,3 +1,8 @@
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation

View File

@ -1,3 +1,8 @@
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation

View File

@ -1,3 +1,8 @@
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation

View File

@ -1131,7 +1131,12 @@ gtk_entry_key_press (GtkWidget *widget,
break;
}
if (return_val && (editable->current_pos != initial_pos))
/* since we emit signals from within the above code,
* the widget might already be destroyed or at least
* unrealized.
*/
if (GTK_WIDGET_REALIZED (editable) &&
return_val && (editable->current_pos != initial_pos))
{
if (extend_selection)
{