summaryrefslogtreecommitdiff
path: root/src/sysinfo.cpp
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-05-01 22:10:42 +0200
committerraveit65 <[email protected]>2017-05-04 13:44:32 +0200
commit0df3b4a25216edef47d5a9a2d0ef8dee6a7ba5e1 (patch)
tree7047e482083fab155ebb02449f78f88eac8e2104 /src/sysinfo.cpp
parentb0d163fbad605179f5a547f1f7f30c5ef9ac8ed9 (diff)
downloadmate-system-monitor-0df3b4a25216edef47d5a9a2d0ef8dee6a7ba5e1.tar.bz2
mate-system-monitor-0df3b4a25216edef47d5a9a2d0ef8dee6a7ba5e1.tar.xz
sysinfo: avoid deprecated GtkAlignment
Diffstat (limited to 'src/sysinfo.cpp')
-rw-r--r--src/sysinfo.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 1e4e8ff..f5465ba 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -688,15 +688,12 @@ add_section(GtkBox *vbox , const char * title, int num_row, int num_col, GtkWidg
gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_NONE);
gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0);
- GtkWidget *alignment = gtk_alignment_new(0.5, 0.5, 1.0, 1.0);
- gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 12, 0);
- gtk_container_add(GTK_CONTAINER(frame), alignment);
-
table = gtk_grid_new();
gtk_grid_set_row_spacing(GTK_GRID(table), 6);
gtk_grid_set_column_spacing(GTK_GRID(table), 6);
+ gtk_widget_set_margin_start (GTK_WIDGET(table), 12);
gtk_container_set_border_width(GTK_CONTAINER(table), 6);
- gtk_container_add(GTK_CONTAINER(alignment), table);
+ gtk_container_add(GTK_CONTAINER(frame), table);
if(out_frame)
*out_frame = frame;