gtk_progress_bar_set_show_text(self, show);
`}
- fun text: String import NativeString.to_s `{
- return NativeString_to_s((char *)gtk_progress_bar_get_text(self));
+ fun text: String import CString.to_s_with_copy `{
+ return CString_to_s_with_copy((char *)gtk_progress_bar_get_text(self));
`}
fun text=(value: String) import String.to_cstring `{
super GtkButton
end
+# Contains a single widget and scrollbars
+extern class GtkScrolledWindow `{ GtkScrolledWindow * `}
+ super GtkBin
+
+ new `{ return (GtkScrolledWindow *)gtk_scrolled_window_new(NULL, NULL); `}
+
+ # Set horizontal and vertical scrollbar policies
+ fun set_policy(hscrollbar_policy, vscrollbar_policy: GtkPolicyType) `{
+ gtk_scrolled_window_set_policy(self, hscrollbar_policy, vscrollbar_policy);
+ `}
+end
+
# A button to launch a color selection dialog
# See: https://developer.gnome.org/gtk3/stable/GtkColorButton.html
extern class GtkColorButton `{GtkColorButton *`}
new `{ return (GtkCheckButton *)gtk_check_button_new(); `}
- new with_label(lbl: NativeString) `{ return (GtkCheckButton *)gtk_check_button_new_with_label((gchar *)lbl); `}
+ new with_label(lbl: CString) `{ return (GtkCheckButton *)gtk_check_button_new_with_label((gchar *)lbl); `}
end