st-entry: don't assume a cursor func has been set
That won't be the case when called from tests. https://bugzilla.gnome.org/show_bug.cgi?id=783484
This commit is contained in:
parent
d5cac6559d
commit
a256a35779
@ -739,7 +739,8 @@ static void
|
|||||||
st_entry_set_cursor (StEntry *entry,
|
st_entry_set_cursor (StEntry *entry,
|
||||||
gboolean use_ibeam)
|
gboolean use_ibeam)
|
||||||
{
|
{
|
||||||
cursor_func (entry, use_ibeam, cursor_func_data);
|
if (cursor_func)
|
||||||
|
cursor_func (entry, use_ibeam, cursor_func_data);
|
||||||
|
|
||||||
((StEntryPrivate *)ST_ENTRY_PRIV (entry))->has_ibeam = use_ibeam;
|
((StEntryPrivate *)ST_ENTRY_PRIV (entry))->has_ibeam = use_ibeam;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user