forked from AuroraMiddleware/gtk
treeview: Don't assume search widget is a GtkEntry
Maybe it's a GtkText!
This commit is contained in:
parent
8d987be673
commit
e54ce8f328
@ -13793,7 +13793,7 @@ gtk_tree_view_search_window_hide (GtkWidget *search_window,
|
|||||||
/* send focus-in event */
|
/* send focus-in event */
|
||||||
send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), device, FALSE);
|
send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), device, FALSE);
|
||||||
gtk_widget_hide (search_window);
|
gtk_widget_hide (search_window);
|
||||||
gtk_entry_set_text (GTK_ENTRY (tree_view->priv->search_entry), "");
|
gtk_editable_set_text (GTK_EDITABLE(tree_view->priv->search_entry), "");
|
||||||
send_focus_change (GTK_WIDGET (tree_view), device, TRUE);
|
send_focus_change (GTK_WIDGET (tree_view), device, TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user