if (!view->document)
return FALSE;
- if (!GTK_WIDGET_HAS_FOCUS (widget)) {
+ if (!gtk_widget_has_focus (widget)) {
gtk_widget_grab_focus (widget);
}
if (!view->document)
return FALSE;
- if (!GTK_WIDGET_HAS_FOCUS (widget)) {
+ if (!gtk_widget_has_focus (widget)) {
/* Forward key events to current focused window child */
if (view->window_child_focus) {
GdkEventKey *new_event;
gint x, y;
GList *children, *l;
- if (! GTK_WIDGET_REALIZED (view))
+ if (!gtk_widget_get_realized (GTK_WIDGET (view)))
return;
if (view->hadjustment) {