forked from AuroraMiddleware/gtk
Don't crash if model is not set. Noted by Mariano Suarez-Alvarez.
Thu Aug 26 23:58:11 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't crash if model is not set. Noted by Mariano Suarez-Alvarez.
This commit is contained in:
parent
01bc563147
commit
a15842e68e
@ -1,3 +1,8 @@
|
||||
Thu Aug 26 23:58:11 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't crash
|
||||
if model is not set. Noted by Mariano Suarez-Alvarez.
|
||||
|
||||
Thu Aug 26 22:44:12 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Provide information about how an adjustment change in a range
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Aug 26 23:58:11 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't crash
|
||||
if model is not set. Noted by Mariano Suarez-Alvarez.
|
||||
|
||||
Thu Aug 26 22:44:12 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Provide information about how an adjustment change in a range
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Aug 26 23:58:11 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't crash
|
||||
if model is not set. Noted by Mariano Suarez-Alvarez.
|
||||
|
||||
Thu Aug 26 22:44:12 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Provide information about how an adjustment change in a range
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Aug 26 23:58:11 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't crash
|
||||
if model is not set. Noted by Mariano Suarez-Alvarez.
|
||||
|
||||
Thu Aug 26 22:44:12 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Provide information about how an adjustment change in a range
|
||||
|
@ -3305,6 +3305,9 @@ gtk_combo_box_key_press (GtkWidget *widget,
|
||||
GtkTreeIter iter;
|
||||
GtkTreeIter new_iter;
|
||||
|
||||
if (combo_box->priv->model == NULL)
|
||||
return FALSE;
|
||||
|
||||
if ((event->keyval == GDK_Down || event->keyval == GDK_KP_Down) &&
|
||||
state == GDK_MOD1_MASK)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user