[gnome-boxes] Move Display base class in display.vala
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Move Display base class in display.vala
- Date: Thu, 6 Oct 2011 02:42:56 +0000 (UTC)
commit 5b2e66c0bcd43e0ae46fe6b62a1c7bdee43487d2
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Thu Oct 6 02:33:40 2011 +0200
Move Display base class in display.vala
src/Makefile.am | 1 +
src/box.vala | 20 --------------------
src/display.vala | 21 +++++++++++++++++++++
3 files changed, 22 insertions(+), 20 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 64895c0..60334b4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,6 +27,7 @@ gnome_boxes_SOURCES = \
box.vala \
collection-view.vala \
collection.vala \
+ display.vala \
main.vala \
sidebar.vala \
spice-display.vala \
diff --git a/src/box.vala b/src/box.vala
index bc021c7..e61abd2 100644
--- a/src/box.vala
+++ b/src/box.vala
@@ -4,26 +4,6 @@ using Gdk;
using Gtk;
using GVir;
-private abstract class Boxes.Display: GLib.Object {
- protected HashTable<int, Gtk.Widget?> displays;
-
- public signal void show (int display_id);
- public signal void hide (int display_id);
- public signal void disconnected ();
-
- public abstract Gtk.Widget get_display (int n) throws Boxes.Error;
- public abstract void connect_it ();
- public abstract void disconnect_it ();
-
- public override void constructed () {
- displays = new HashTable<int, Gtk.Widget> (direct_hash, direct_equal);
- }
-
- ~Boxes () {
- disconnect_it ();
- }
-}
-
private class Boxes.Box: Boxes.CollectionItem {
public Boxes.App app;
public BoxActor actor;
diff --git a/src/display.vala b/src/display.vala
new file mode 100644
index 0000000..3fbcc99
--- /dev/null
+++ b/src/display.vala
@@ -0,0 +1,21 @@
+// This file is part of GNOME Boxes. License: LGPLv2
+
+private abstract class Boxes.Display: GLib.Object {
+ protected HashTable<int, Gtk.Widget?> displays;
+
+ public signal void show (int display_id);
+ public signal void hide (int display_id);
+ public signal void disconnected ();
+
+ public abstract Gtk.Widget get_display (int n) throws Boxes.Error;
+ public abstract void connect_it ();
+ public abstract void disconnect_it ();
+
+ public override void constructed () {
+ displays = new HashTable<int, Gtk.Widget> (direct_hash, direct_equal);
+ }
+
+ ~Boxes () {
+ disconnect_it ();
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]