Method

GtkLabelget_selection_bounds

Declaration [src]

gboolean
gtk_label_get_selection_bounds (
  GtkLabel* label,
  gint* start,
  gint* end
)

Description [src]

Gets the selected range of characters in the label, returning TRUE if there’s a selection.

Parameters

start

Type: gint*

Return location for start of selection, as a character offset.

The argument will be set by the function.
end

Type: gint*

Return location for end of selection, as a character offset.

The argument will be set by the function.

Return value

Type: gboolean

TRUE if selection is non-empty.