[gnome-boxes/gnome-3-18] app-window: Assign values to ViewType enums
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-18] app-window: Assign values to ViewType enums
- Date: Mon, 21 Sep 2015 22:24:54 +0000 (UTC)
commit 5c2fda6cb9d02d73f19cce75272d35a1dcb74c07
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]