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:
authoriain holmes <iaholmes@microsoft.com>2021-06-25 15:42:20 +0300
committeriain holmes <iaholmes@microsoft.com>2021-06-25 15:42:20 +0300
commit1cdcf0f2ce12cc4394cb6d314153c34f73d1f74d (patch)
tree7e0020c583388ad12b334ad5cda6659bafd1a254
parent094fcea25b00877a5a15639040d00f86cf6c870b (diff)
[Xwt] Use string.Empty
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs4
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs4
-rw-r--r--Xwt/Xwt/KeyEventArgs.cs4
3 files changed, 6 insertions, 6 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs
index 6c59a22f..124a7128 100644
--- a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs
@@ -294,7 +294,7 @@ namespace Xwt.GtkBackend
Key k = (Key)args.Event.KeyValue;
ModifierKeys m = args.Event.State.ToXwtValue ();
- KeyEventArgs kargs = new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, "", "", args.Event);
+ KeyEventArgs kargs = new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, string.Empty, string.Empty, args.Event);
ApplicationContext.InvokeUserCode (delegate {
EventSink.OnKeyPressed (kargs);
});
@@ -308,7 +308,7 @@ namespace Xwt.GtkBackend
Key k = (Key)args.Event.KeyValue;
ModifierKeys m = args.Event.State.ToXwtValue ();
- KeyEventArgs kargs = new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, "", "", args.Event);
+ KeyEventArgs kargs = new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, string.Empty, string.Empty, args.Event);
ApplicationContext.InvokeUserCode (delegate {
EventSink.OnKeyReleased (kargs);
});
diff --git a/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs
index 917bc064..67728f84 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs
@@ -704,7 +704,7 @@ namespace Xwt.GtkBackend
if ((args.Event.State & Gdk.ModifierType.Mod1Mask) != 0)
m |= ModifierKeys.Alt;
- return new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, "", "", args.Event);
+ return new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, string.Empty, string.Empty, args.Event);
}
[GLib.ConnectBefore]
@@ -725,7 +725,7 @@ namespace Xwt.GtkBackend
Key k = (Key)args.Event.KeyValue;
ModifierKeys m = args.Event.State.ToXwtValue ();
- return new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, "", "", args.Event);
+ return new KeyEventArgs (k, (int)args.Event.KeyValue, m, false, (long)args.Event.Time, string.Empty, string.Empty, args.Event);
}
protected Gtk.IMContext IMContext { get; set; }
diff --git a/Xwt/Xwt/KeyEventArgs.cs b/Xwt/Xwt/KeyEventArgs.cs
index cac96845..452f6b89 100644
--- a/Xwt/Xwt/KeyEventArgs.cs
+++ b/Xwt/Xwt/KeyEventArgs.cs
@@ -58,7 +58,7 @@ namespace Xwt
/// <param name="modifiers">The modifier keys.</param>
/// <param name="isRepeat">the key has been pressed more then once.</param>
/// <param name="timestamp">The timestamp of the key event.</param>
- public KeyEventArgs(Key key, ModifierKeys modifiers, bool isRepeat, long timestamp) : this (key, modifiers, isRepeat, timestamp, "", "")
+ public KeyEventArgs(Key key, ModifierKeys modifiers, bool isRepeat, long timestamp) : this (key, modifiers, isRepeat, timestamp, string.Empty, string.Empty)
{
}
@@ -86,7 +86,7 @@ namespace Xwt
/// <param name="modifiers">The modifier keys.</param>
/// <param name="isRepeat">the key has been pressed more then once.</param>
/// <param name="timestamp">The timestamp of the key event.</param>
- public KeyEventArgs(Key key, int nativeKeyCode, ModifierKeys modifiers, bool isRepeat, long timestamp) : this (key, nativeKeyCode, modifiers, isRepeat, timestamp, "", "")
+ public KeyEventArgs(Key key, int nativeKeyCode, ModifierKeys modifiers, bool isRepeat, long timestamp) : this (key, nativeKeyCode, modifiers, isRepeat, timestamp, string.Empty, string.Empty)
{
}