[gnome-boxes] properties: Don't show empty notebook pages
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties: Don't show empty notebook pages
- Date: Thu, 11 Dec 2014 13:12:32 +0000 (UTC)
commit ae71b46b6f054cc7f9e49fc61526c832b93fccd2
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Dec 11 12:59:42 2014 +0000
properties: Don't show empty notebook pages
src/properties.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/properties.vala b/src/properties.vala
index d37f6c0..16d701f 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -34,6 +34,9 @@ private class Boxes.Properties: Gtk.Notebook, Boxes.UI {
for (var i = 0; i < PropertiesPage.LAST; i++) {
var page = new PropertiesPageWidget (i, machine);
+ if (page.empty)
+ continue;
+
var label = new Gtk.Label (page.name);
insert_page (page, label, i);
set_data<PropertiesPageWidget> (@"boxes-property-$i", page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]