[gnome-system-monitor] Better use of space on minimum size
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Better use of space on minimum size
- Date: Mon, 22 May 2017 19:08:37 +0000 (UTC)
commit d65fe9ee1c750ca8d41d6c32596ca1d1922658da
Author: Robert Roth <robert roth off gmail com>
Date: Mon May 22 22:05:38 2017 +0300
Better use of space on minimum size
data/interface.ui | 8 ++++----
src/interface.cpp | 5 +++++
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/data/interface.ui b/data/interface.ui
index bba3bb6..33cad2f 100644
--- a/data/interface.ui
+++ b/data/interface.ui
@@ -175,7 +175,7 @@
<property name="vexpand">True</property>
<property name="border_width">12</property>
<property name="orientation">vertical</property>
- <property name="spacing">12</property>
+ <property name="spacing">8</property>
<child>
<object class="GtkLabel" id="cpu_label">
<property name="visible">True</property>
@@ -206,7 +206,7 @@
<property name="can_focus">False</property>
<property name="margin_start">57</property>
<property name="hexpand">True</property>
- <property name="row_spacing">4</property>
+ <property name="row_spacing">1</property>
<property name="column_spacing">6</property>
<property name="row_homogeneous">True</property>
<property name="column_homogeneous">True</property>
@@ -282,7 +282,7 @@
<property name="can_focus">False</property>
<property name="margin_start">54</property>
<property name="hexpand">True</property>
- <property name="row_spacing">4</property>
+ <property name="row_spacing">0</property>
<property name="column_spacing">6</property>
<property name="row_homogeneous">True</property>
<child>
@@ -370,7 +370,7 @@
<property name="margin_start">54</property>
<property name="margin_end">38</property>
<property name="hexpand">True</property>
- <property name="row_spacing">4</property>
+ <property name="row_spacing">0</property>
<property name="column_spacing">6</property>
<property name="row_homogeneous">True</property>
<child>
diff --git a/src/interface.cpp b/src/interface.cpp
index 626b6b8..6534ef5 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -189,6 +189,7 @@ create_sys_view (GsmApplication *app, GtkBuilder * builder)
cpu_graph_box = GTK_BOX (gtk_builder_get_object (builder, "cpu_graph_box"));
cpu_graph = new LoadGraph(LOAD_GRAPH_CPU);
+ gtk_widget_set_size_request (GTK_WIDGET(load_graph_get_widget(cpu_graph)), -1, 70);
gtk_box_pack_start (cpu_graph_box,
GTK_WIDGET (load_graph_get_widget(cpu_graph)),
TRUE,
@@ -244,6 +245,7 @@ create_sys_view (GsmApplication *app, GtkBuilder * builder)
mem_graph_box = GTK_BOX (gtk_builder_get_object (builder, "mem_graph_box"));
mem_graph = new LoadGraph(LOAD_GRAPH_MEM);
+ gtk_widget_set_size_request (GTK_WIDGET(load_graph_get_widget(mem_graph)), -1, 70);
gtk_box_pack_start (mem_graph_box,
GTK_WIDGET (load_graph_get_widget(mem_graph)),
TRUE,
@@ -283,6 +285,7 @@ create_sys_view (GsmApplication *app, GtkBuilder * builder)
net_graph_box = GTK_BOX (gtk_builder_get_object (builder, "net_graph_box"));
net_graph = new LoadGraph(LOAD_GRAPH_NET);
+ gtk_widget_set_size_request (GTK_WIDGET(load_graph_get_widget(net_graph)), -1, 70);
gtk_box_pack_start (net_graph_box,
GTK_WIDGET (load_graph_get_widget(net_graph)),
TRUE,
@@ -293,6 +296,7 @@ create_sys_view (GsmApplication *app, GtkBuilder * builder)
color_picker = gsm_color_button_new (
&net_graph->colors.at(0), GSMCP_TYPE_NETWORK_IN);
+ gtk_widget_set_valign (GTK_WIDGET(color_picker), GTK_ALIGN_CENTER);
g_signal_connect (G_OBJECT (color_picker), "color-set",
G_CALLBACK (cb_net_in_color_changed), app);
title_text = g_strdup_printf(title_template, _("Receiving"));
@@ -307,6 +311,7 @@ create_sys_view (GsmApplication *app, GtkBuilder * builder)
color_picker = gsm_color_button_new (
&net_graph->colors.at(1), GSMCP_TYPE_NETWORK_OUT);
+ gtk_widget_set_valign (GTK_WIDGET(color_picker), GTK_ALIGN_CENTER);
g_signal_connect (G_OBJECT (color_picker), "color-set",
G_CALLBACK (cb_net_out_color_changed), app);
title_text = g_strdup_printf(title_template, _("Sending"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]