summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-10-08 15:40:54 +0300
committermonsta <[email protected]>2017-10-08 15:51:19 +0300
commit6001bbc1e684ed9668af9207e1d3aa59ab407307 (patch)
treedb8fc71ca4b5b2ff165e32dee73df27ea15fea08
parenta351f6c5960be352232beb57778de799fc17d4c8 (diff)
downloadmate-system-monitor-6001bbc1e684ed9668af9207e1d3aa59ab407307.tar.bz2
mate-system-monitor-6001bbc1e684ed9668af9207e1d3aa59ab407307.tar.xz
sysinfo: disable focus in all labels
-rw-r--r--src/sysinfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 1e4e8ff..f7602cf 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -711,6 +711,7 @@ 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);
+ gtk_widget_set_can_focus(header, FALSE);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (header), 0.0);
#else
@@ -722,6 +723,7 @@ add_row(GtkGrid * table, const char * label, const char * value, int row)
GtkWidget *label_widget = gtk_label_new(value);
gtk_label_set_selectable(GTK_LABEL(label_widget), TRUE);
+ gtk_widget_set_can_focus(label_widget, FALSE);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (label_widget), 0.0);
#else
@@ -805,6 +807,7 @@ procman_create_sysinfo_view(void)
distro_release_label = gtk_label_new("???");
gtk_label_set_selectable(GTK_LABEL(distro_release_label), TRUE);
+ gtk_widget_set_can_focus(distro_release_label, FALSE);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (distro_release_label), 0.0);
#else
@@ -819,6 +822,7 @@ procman_create_sysinfo_view(void)
markup = g_strdup_printf(_("Kernel %s"), data->kernel.c_str());
header = gtk_label_new(markup);
gtk_label_set_selectable(GTK_LABEL(header), TRUE);
+ gtk_widget_set_can_focus(header, FALSE);
g_free(markup);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (header), 0.0);
@@ -835,6 +839,7 @@ procman_create_sysinfo_view(void)
markup = g_strdup_printf(_("MATE %s"), data->mate_version.c_str());
header = gtk_label_new(markup);
gtk_label_set_selectable(GTK_LABEL(header), TRUE);
+ gtk_widget_set_can_focus(header, FALSE);
g_free(markup);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (header), 0.0);