You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose was to change the appearance on a text without changing the text itself, so no HTML markup allowed.
// txtvMsgstr is a GtkTextView from a GLADE .ui file
$txtViewMsgstr = $this->builder->get_object('txtvMsgstr');
$txtBufferMsgStr = $txtViewMsgstr->get_buffer();
$txtTagUnderline = $txtBuffer->create_tag('underline', 'underline', 1);
This issues the following error message: value "((PangoUnderline) -1472307712)" of type 'PangoUnderline' is invalid or out of range for property 'underline' of type 'PangoUnderline'
gtk3-demo uses in TextView/Hypertext: "underline", PANGO_UNDERLINE_SINGLE
but since there is no such or similarly named constant in PHP-GTK3, I looked up its definition in the GTK3 source code, which defines the value as 1 and used that instead.
Other unsuccessful tests, because $txtBuffer->get_tag_table()
returns an empty array:
The purpose was to change the appearance on a text without changing the text itself, so no HTML markup allowed.
This issues the following error message:
value "((PangoUnderline) -1472307712)" of type 'PangoUnderline' is invalid or out of range for property 'underline' of type 'PangoUnderline'
gtk3-demo uses in TextView/Hypertext:
"underline", PANGO_UNDERLINE_SINGLE
but since there is no such or similarly named constant in PHP-GTK3, I looked up its definition in the GTK3 source code, which defines the value as 1 and used that instead.
Other unsuccessful tests, because
$txtBuffer->get_tag_table()
returns an empty array:
The text was updated successfully, but these errors were encountered: