Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <teromario@yahoo.com>2018-03-22 18:50:52 +0300
committerGitHub <noreply@github.com>2018-03-22 18:50:52 +0300
commit73321bb4746165dc57d64e0b3e36dbd3307f33c6 (patch)
treee33b28a75d49d33df47bdb823fd8f6f8e75c3c33 /Xwt.Gtk/Xwt.GtkBackend/AccessibleBackend.cs
parentf9e64476f2e1757c4ff7206ea1b7a9cf150b9477 (diff)
Remove warning in gtk accessibility code
Found via https://github.com/mono/monodevelop/issues/4237 ``` "/home/pi/sources/monodevelop/main/Main.sln" (default target) (1) -> "/home/pi/sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj" (default target) (5) -> "/home/pi/sources/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.Gtk.csproj" (default target) (9:2) -> Xwt.GtkBackend/AccessibleBackend.cs(138,17): error CS0219: Warning as Error: The variable `val' is assigned but its value is never used [/home/pi/sources/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.Gtk.csproj] ```
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/AccessibleBackend.cs')
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/AccessibleBackend.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/AccessibleBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/AccessibleBackend.cs
index 39bc82db..17eb53c6 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/AccessibleBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/AccessibleBackend.cs
@@ -135,7 +135,6 @@ namespace Xwt.GtkBackend
}
set {
if (widget.Accessible is AtkValue) {
- GLib.Value val = GLib.Value.Empty;
(widget.Accessible as AtkValue)?.SetCurrentValue (new GLib.Value (value));
} else if (widget.Accessible is AtkEditableText) {
var atkText = (widget.Accessible as AtkEditableText);