[gnome-boxes] Rename MiniGraph to ResourceGraph



commit fc079b4254090cc5e2debc0b603dbfe9096cd4cd
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Feb 24 14:14:46 2015 +0000

    Rename MiniGraph to ResourceGraph
    
    The graphs are not so mini anymore.

 data/gnome-boxes.gresource.xml               |    2 +-
 data/gtk-style.css                           |    2 +-
 data/ui/{mini-graph.ui => resource-graph.ui} |    2 +-
 src/Makefile.am                              |    2 +-
 src/libvirt-machine-properties.vala          |    6 +++---
 src/{mini-graph.vala => resource-graph.vala} |    6 +++---
 6 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/data/gnome-boxes.gresource.xml b/data/gnome-boxes.gresource.xml
index 77530e9..af12211 100644
--- a/data/gnome-boxes.gresource.xml
+++ b/data/gnome-boxes.gresource.xml
@@ -12,7 +12,7 @@
     <file preprocess="xml-stripblanks">ui/display-toolbar.ui</file>
     <file preprocess="xml-stripblanks">ui/empty-boxes.ui</file>
     <file preprocess="xml-stripblanks">ui/editable-entry.ui</file>
-    <file preprocess="xml-stripblanks">ui/mini-graph.ui</file>
+    <file preprocess="xml-stripblanks">ui/resource-graph.ui</file>
     <file preprocess="xml-stripblanks">ui/notification.ui</file>
     <file preprocess="xml-stripblanks">ui/properties-toolbar.ui</file>
     <file preprocess="xml-stripblanks">ui/properties-window.ui</file>
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 9653796..f8856f7 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -25,7 +25,7 @@
     background-color: @theme_fg_color;
 }
 
-BoxesMiniGraph {
+BoxesResourceGraph {
     background-color: @theme_bg_color;
     border-color: @borders;
     color: @theme_fg_color;
diff --git a/data/ui/mini-graph.ui b/data/ui/resource-graph.ui
similarity index 80%
rename from data/ui/mini-graph.ui
rename to data/ui/resource-graph.ui
index dc67660..9b382ac 100644
--- a/data/ui/mini-graph.ui
+++ b/data/ui/resource-graph.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.9 -->
-  <template class="BoxesMiniGraph" parent="GtkDrawingArea">
+  <template class="BoxesResourceGraph" parent="GtkDrawingArea">
     <property name="visible">True</property>
     <property name="width-request">32</property>
     <property name="hexpand">True</property>
diff --git a/src/Makefile.am b/src/Makefile.am
index 2f720c3..6e66c84 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -120,7 +120,7 @@ gnome_boxes_SOURCES =                               \
        machine.vala                            \
        main.vala                               \
        media-manager.vala                      \
-       mini-graph.vala                         \
+       resource-graph.vala                     \
        notification.vala                       \
        notificationbar.vala                    \
        os-database.vala                        \
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 338b3a1..a52e28b 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -369,20 +369,20 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
         grid.vexpand = false;
 
         // CPU
-        var cpu_graph = new MiniGraph (100);
+        var cpu_graph = new ResourceGraph (100);
         cpu_graph.npoints = 20;
         grid.attach (cpu_graph, 0, 0, 1, 1);
         var label = new Gtk.Label (_("CPU"));
         grid.attach (label, 0, 1, 1, 1);
 
         // I/O
-        var io_graph = new MiniGraph (20);
+        var io_graph = new ResourceGraph (20);
         grid.attach (io_graph, 1, 0, 1, 1);
         label = new Gtk.Label (_("I/O"));
         grid.attach (label, 1, 1, 1, 1);
 
         // Network
-        var net_graph = new MiniGraph (20);
+        var net_graph = new ResourceGraph (20);
         grid.attach (net_graph, 2, 0, 1, 1);
         label = new Gtk.Label (_("Network"));
         grid.attach (label, 2, 1, 1, 1);
diff --git a/src/mini-graph.vala b/src/resource-graph.vala
similarity index 92%
rename from src/mini-graph.vala
rename to src/resource-graph.vala
index 1b2d0a3..71c83b3 100644
--- a/src/mini-graph.vala
+++ b/src/resource-graph.vala
@@ -1,7 +1,7 @@
 // This file is part of GNOME Boxes. License: LGPLv2+
 
-[GtkTemplate (ui = "/org/gnome/Boxes/ui/mini-graph.ui")]
-private class Boxes.MiniGraph: Gtk.DrawingArea {
+[GtkTemplate (ui = "/org/gnome/Boxes/ui/resource-graph.ui")]
+private class Boxes.ResourceGraph: Gtk.DrawingArea {
     private double[] _points;
     public double[] points { get { return _points; }
         set {
@@ -18,7 +18,7 @@ private class Boxes.MiniGraph: Gtk.DrawingArea {
         }
     }
 
-    public MiniGraph (double ymax) {
+    public ResourceGraph (double ymax) {
         this.ymax = ymax;
         width_request = 120;
         height_request = 60;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]