xed-highlight-mode-selector.c: Fix a couple of missing casts

This commit is contained in:
JosephMcc 2020-08-29 15:50:15 -07:00 committed by Michael Webster
parent 7e6a888e1d
commit a71e7eea3a
1 changed files with 2 additions and 2 deletions

View File

@ -244,13 +244,13 @@ static void
on_entry_realized (GtkWidget *entry, on_entry_realized (GtkWidget *entry,
XedHighlightModeSelector *selector) XedHighlightModeSelector *selector)
{ {
if (gtk_widget_is_focus (selector)) if (gtk_widget_is_focus (GTK_WIDGET (selector)))
{ {
gtk_widget_grab_focus (entry); gtk_widget_grab_focus (entry);
} }
else else
{ {
gtk_widget_grab_focus (selector); gtk_widget_grab_focus (GTK_WIDGET (selector));
} }
} }