Commit 55ce9234 authored by Jon K Hellan's avatar Jon K Hellan Committed by Jon Kåre Hellan

Do nothing if no selection.

2000-05-18  Jon K Hellan  <hellan@acm.org>

	* gtk-combo-text.c (cb_list_mapped): Do nothing if no selection.
parent 6dd47f83
2000-05-18 Jon K Hellan <hellan@acm.org>
* gtk-combo-text.c (cb_list_mapped): Do nothing if no selection.
2000-05-18 Jon K Hellan <hellan@acm.org>
* gtk-combo-text.c (cb_list_mapped): New callback function. Sets
......
......@@ -161,14 +161,8 @@ cb_list_mapped (GtkWidget *widget, gpointer user_data)
{
GtkList *list = GTK_LIST (widget);
if (g_list_length (list->children) == 0)
return;
if (g_list_length (list->selection) == 0)
/* FIXME: Should we block signal? */
gtk_list_select_item (list, 0);
gtk_widget_grab_focus (GTK_WIDGET ((list->selection->data)));
if (g_list_length (list->selection) > 0)
gtk_widget_grab_focus (GTK_WIDGET ((list->selection->data)));
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment