[gnome-boxes] app-window: Assign values to ViewType enums
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app-window: Assign values to ViewType enums
- Date: Mon, 21 Sep 2015 17:57:09 +0000 (UTC)
commit 94f5c6798aad913e34766007479749b92c4dbf3d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 21 18:47:58 2015 +0100
app-window: Assign values to ViewType enums
In a following patch, we'll need to save this in gsettings so we should
make the integer values explicit.
src/app-window.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 740708b..d2d20fc 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -7,8 +7,8 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
public const uint TRANSITION_DURATION = 400; // milliseconds
public enum ViewType {
- ICON,
- LIST,
+ ICON = 1,
+ LIST = 2,
}
public UIState previous_ui_state { get; protected set; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]