[gnome-boxes] display: No need to explicitly enable inputs
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] display: No need to explicitly enable inputs
- Date: Thu, 28 Apr 2016 13:53:00 +0000 (UTC)
commit 183a3cbfc869aa1add26972ab76a7f08332936b8
Author: Pavel Grunt <pgrunt redhat com>
Date: Thu Apr 28 09:25:40 2016 +0200
display: No need to explicitly enable inputs
Spice.Display has inputs enabled by default and inputs on Vnc.Display are
bound to VncDisplay.read_only.
https://bugzilla.gnome.org/show_bug.cgi?id=763772
src/display.vala | 1 -
src/machine.vala | 2 --
src/spice-display.vala | 4 ----
src/vnc-display.vala | 4 ----
4 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/display.vala b/src/display.vala
index e8e3851..076f469 100644
--- a/src/display.vala
+++ b/src/display.vala
@@ -24,7 +24,6 @@ private abstract class Boxes.Display: GLib.Object, Boxes.IPropertiesProvider {
public abstract Gtk.Widget get_display (int n);
public abstract Gdk.Pixbuf? get_pixbuf (int n) throws Boxes.Error;
- public abstract void set_enable_inputs (Gtk.Widget widget, bool enable);
public abstract void set_enable_audio (bool enable);
public virtual bool should_keep_alive () {
diff --git a/src/machine.vala b/src/machine.vala
index c538971..61f664f 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -154,7 +154,6 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
case Boxes.UIState.DISPLAY:
var widget = display.get_display (0);
widget_remove (widget);
- display.set_enable_inputs (widget, true);
window.display_page.show_display (display, widget);
widget.grab_focus ();
@@ -163,7 +162,6 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
case Boxes.UIState.PROPERTIES:
var widget = display.get_display (0);
widget_remove (widget);
- display.set_enable_inputs (widget, true);
window.display_page.replace_display (display, widget);
break;
}
diff --git a/src/spice-display.vala b/src/spice-display.vala
index 218737f..b687ca3 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -192,10 +192,6 @@ private class Boxes.SpiceDisplay: Boxes.Display {
session.enable_audio = enable;
}
- public override void set_enable_inputs (Gtk.Widget widget, bool enable) {
- (widget as Spice.Display).disable_inputs = !enable;
- }
-
public override Gdk.Pixbuf? get_pixbuf (int n) {
var display = get_display (n) as Spice.Display;
diff --git a/src/vnc-display.vala b/src/vnc-display.vala
index c6037e6..7cbf4df 100644
--- a/src/vnc-display.vala
+++ b/src/vnc-display.vala
@@ -106,10 +106,6 @@ private class Boxes.VncDisplay: Boxes.Display {
public override void set_enable_audio (bool enable) {
}
- public override void set_enable_inputs (Gtk.Widget widget, bool enable) {
- (widget as Vnc.Display).read_only = !enable;
- }
-
public override Gdk.Pixbuf? get_pixbuf (int n) throws Boxes.Error {
return display.get_pixbuf ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]