[gnome-system-monitor] Use relative positions to the labels to attach the net pickers.
- From: Benoît Dejean <bdejean src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Use relative positions to the labels to attach the net pickers.
- Date: Thu, 29 Sep 2016 23:41:23 +0000 (UTC)
commit 9b7a826e290b03f20e2100ca0c8a9adb8c34ff79
Author: Benoit Dejean <bdejean gmail com>
Date: Fri Sep 30 01:31:05 2016 +0200
Use relative positions to the labels to attach the net pickers.
src/interface.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/interface.cpp b/src/interface.cpp
index a9f2752..8ba9475 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -300,9 +300,8 @@ create_sys_view (GsmApplication *app, GtkBuilder * builder)
gsm_color_button_set_title(color_picker, title_text);
g_free(title_text);
- gtk_grid_attach (table, GTK_WIDGET (color_picker), 0, 0, 1, 2);
-
label = GTK_LABEL (gtk_builder_get_object(builder, "receiving_label"));
+ gtk_grid_attach_next_to (table, GTK_WIDGET (color_picker), GTK_WIDGET (label), GTK_POS_LEFT, 1, 2);
gtk_grid_attach_next_to (table, GTK_WIDGET (load_graph_get_labels(net_graph)->net_in), GTK_WIDGET
(label), GTK_POS_RIGHT, 1, 1);
label = GTK_LABEL (gtk_builder_get_object(builder, "total_received_label"));
gtk_grid_attach_next_to (table, GTK_WIDGET (load_graph_get_labels(net_graph)->net_in_total), GTK_WIDGET
(label), GTK_POS_RIGHT, 1, 1);
@@ -315,9 +314,8 @@ create_sys_view (GsmApplication *app, GtkBuilder * builder)
gsm_color_button_set_title(color_picker, title_text);
g_free(title_text);
- gtk_grid_attach (table, GTK_WIDGET (color_picker), 4, 0, 1, 2);
-
label = GTK_LABEL (gtk_builder_get_object(builder, "sending_label"));
+ gtk_grid_attach_next_to (table, GTK_WIDGET (color_picker), GTK_WIDGET (label), GTK_POS_LEFT, 1, 2);
gtk_grid_attach_next_to (table, GTK_WIDGET (load_graph_get_labels(net_graph)->net_out), GTK_WIDGET
(label), GTK_POS_RIGHT, 1, 1);
label = GTK_LABEL (gtk_builder_get_object(builder, "total_sent_label"));
gtk_grid_attach_next_to (table, GTK_WIDGET (load_graph_get_labels(net_graph)->net_out_total), GTK_WIDGET
(label), GTK_POS_RIGHT, 1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]