summaryrefslogtreecommitdiff
path: root/src/sysinfo.cpp
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-10-08 15:40:54 +0300
committermonsta <[email protected]>2017-10-08 15:40:54 +0300
commit2f427cf39a1df42a6719b99aa1f57bce78008180 (patch)
treece414a2007e888bdbcf33fc6b1eeaeb117808b38 /src/sysinfo.cpp
parent921902843a4ba34ca3d4f9a9df22311caeb75f3f (diff)
downloadmate-system-monitor-2f427cf39a1df42a6719b99aa1f57bce78008180.tar.bz2
mate-system-monitor-2f427cf39a1df42a6719b99aa1f57bce78008180.tar.xz
sysinfo: disable focus in all labels
Diffstat (limited to 'src/sysinfo.cpp')
-rw-r--r--src/sysinfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index f5465ba..1620523 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -708,6 +708,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
@@ -719,6 +720,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
@@ -802,6 +804,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
@@ -816,6 +819,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);
@@ -832,6 +836,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);