internal static void ClickDialogButton(Button button) { GtkGuiActionRunner.RunDialogAction(() => { button.Click(); }); }
internal static void SetText(Entry entry, string text) { GtkGuiActionRunner.RunGuiAction(() => { entry.Text = text; }); }
internal static bool IsSensitive(Widget widget) { bool result = false; GtkGuiActionRunner.RunGuiAction(() => { result = widget.Sensitive; }); return(result); }
internal static string GetTitle(Window window) { string result = string.Empty; GtkGuiActionRunner.RunGuiAction(() => { result = window.Title; }); return(result); }
internal static string GetText(Label label) { string result = string.Empty; GtkGuiActionRunner.RunGuiAction(() => { result = label.Text; }); return(result); }
internal static string GetText(Entry entry) { string result = string.Empty; GtkGuiActionRunner.RunGuiAction(() => { result = entry.Text; }); return(result); }
internal static int GetItemCount <T>(GtkListView <T> listView) { int result = -1; GtkGuiActionRunner.RunGuiAction(() => { if (listView.View.Model == null) { result = 0; return; } ; result = listView.View.Model.IterNChildren(); }); return(result); }
internal static T GetItemAt <T>(GtkListView <T> listView, int index) { T result = default(T); GtkGuiActionRunner.RunGuiAction(() => { TreeView tree = listView.View; TreeIter treeIter; if (!tree.Model.IterNthChild(out treeIter, index)) { return; } result = (T)tree.Model.GetValue(treeIter, 0); }); return(result); }