summaryrefslogtreecommitdiff
path: root/src/sysinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysinfo.cpp')
-rw-r--r--src/sysinfo.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 2c50005..6e8e122 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -708,22 +708,14 @@ add_row(GtkGrid * table, const char * label, const char * value, int row)
GtkWidget *header = gtk_label_new(NULL);
gtk_label_set_markup(GTK_LABEL(header), label);
gtk_label_set_selectable(GTK_LABEL(header), TRUE);
-#if GTK_CHECK_VERSION (3, 14, 0)
gtk_widget_set_halign (header, GTK_ALIGN_START);
-#else
- gtk_misc_set_alignment(GTK_MISC(header), 0.0, 0.5);
-#endif
gtk_grid_attach(
table, header,
0, row, 1, 1);
GtkWidget *label_widget = gtk_label_new(value);
gtk_label_set_selectable(GTK_LABEL(label_widget), TRUE);
-#if GTK_CHECK_VERSION (3, 14, 0)
gtk_widget_set_halign (label_widget, GTK_ALIGN_START);
-#else
- gtk_misc_set_alignment(GTK_MISC(label_widget), 0.0, 0.5);
-#endif
gtk_grid_attach(
table, label_widget,
1, row, 1, 1);
@@ -763,16 +755,11 @@ procman_create_sysinfo_view(void)
else {
logo = gtk_image_new_from_file(DATADIR "/pixmaps/mate-system-monitor/side.png");
}
-#if GTK_CHECK_VERSION (3, 14, 0)
gtk_widget_set_valign (logo, GTK_ALIGN_START);
gtk_widget_set_margin_start (logo, 5);
gtk_widget_set_margin_end (logo, 5);
gtk_widget_set_margin_top (logo, 12);
gtk_widget_set_margin_bottom (logo, 12);
-#else
- gtk_misc_set_alignment(GTK_MISC(logo), 0.5, 0.0);
- gtk_misc_set_padding(GTK_MISC(logo), 5, 12);
-#endif
gtk_box_pack_start(GTK_BOX(hbox), logo, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(logo), "draw", G_CALLBACK(sysinfo_logo_draw), NULL);
@@ -807,11 +794,7 @@ procman_create_sysinfo_view(void)
distro_release_label = gtk_label_new("???");
gtk_label_set_selectable(GTK_LABEL(distro_release_label), TRUE);
-#if GTK_CHECK_VERSION (3, 14, 0)
gtk_widget_set_halign (distro_release_label, GTK_ALIGN_START);
-#else
- gtk_misc_set_alignment(GTK_MISC(distro_release_label), 0.0, 0.5);
-#endif
gtk_grid_attach(
GTK_GRID(distro_table), distro_release_label,
0, table_count, 1, 1);
@@ -822,11 +805,7 @@ procman_create_sysinfo_view(void)
header = gtk_label_new(markup);
gtk_label_set_selectable(GTK_LABEL(header), TRUE);
g_free(markup);
-#if GTK_CHECK_VERSION (3, 14, 0)
gtk_widget_set_halign (header, GTK_ALIGN_START);
-#else
- gtk_misc_set_alignment(GTK_MISC(header), 0.0, 0.5);
-#endif
gtk_grid_attach(
GTK_GRID(distro_table), header,
0, table_count, 1, 1);
@@ -838,11 +817,7 @@ procman_create_sysinfo_view(void)
header = gtk_label_new(markup);
gtk_label_set_selectable(GTK_LABEL(header), TRUE);
g_free(markup);
-#if GTK_CHECK_VERSION (3, 14, 0)
gtk_widget_set_halign (header, GTK_ALIGN_START);
-#else
- gtk_misc_set_alignment(GTK_MISC(header), 0.0, 0.5);
-#endif
gtk_grid_attach(
GTK_GRID(distro_table), header,
0, table_count, 1, 1);