diff options
author | infirit <[email protected]> | 2014-12-18 12:46:07 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-18 12:46:07 +0100 |
commit | d3c5d8d393afbeb250c9edfd2763239cb1a4b06f (patch) | |
tree | 936f4424f247c6e84d85c16b022e3b4a2a2c87c0 | |
parent | ecb5966e7f2d9983fadadff64860d4682a1eb92a (diff) | |
download | mate-system-monitor-d3c5d8d393afbeb250c9edfd2763239cb1a4b06f.tar.bz2 mate-system-monitor-d3c5d8d393afbeb250c9edfd2763239cb1a4b06f.tar.xz |
Make labels on sysinfo tab selectable
Taken from GSM commit: 75ffd9c656aa7cc4bedcdfb89f5edabc9894a939
From: Robert Roth <[email protected]>
Gnome bug: http://bugzilla.gnome.org/show_bug.cgi?id=399067
-rw-r--r-- | src/sysinfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp index 70275eb..fc7b3c9 100644 --- a/src/sysinfo.cpp +++ b/src/sysinfo.cpp @@ -563,6 +563,7 @@ static GtkWidget* add_row(GtkTable * table, const char * label, const char * value, int row) { GtkWidget *header = gtk_label_new(label); + gtk_label_set_selectable(GTK_LABEL(header), TRUE); gtk_misc_set_alignment(GTK_MISC(header), 0.0, 0.5); gtk_table_attach( table, header, @@ -571,6 +572,7 @@ add_row(GtkTable * 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_misc_set_alignment(GTK_MISC(label_widget), 0.0, 0.5); gtk_table_attach( table, label_widget, @@ -648,6 +650,7 @@ procman_create_sysinfo_view(void) unsigned table_count = 0; distro_release_label = gtk_label_new("???"); + gtk_label_set_selectable(GTK_LABEL(distro_release_label), TRUE); gtk_misc_set_alignment(GTK_MISC(distro_release_label), 0.0, 0.5); gtk_table_attach( GTK_TABLE(distro_table), distro_release_label, @@ -659,6 +662,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); g_free(markup); gtk_misc_set_alignment(GTK_MISC(header), 0.0, 0.5); gtk_table_attach( @@ -672,6 +676,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); g_free(markup); gtk_misc_set_alignment(GTK_MISC(header), 0.0, 0.5); gtk_table_attach( |