[Xfce4-commits] [xfce/xfce4-power-manager] 39/63: Hide column headers for device details
noreply at xfce.org
noreply at xfce.org
Sun Mar 22 13:02:34 CET 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit 4281865753a04ab0e6fcb32f44987b6cb9aec728
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Mar 15 17:22:02 2015 +0100
Hide column headers for device details
The contents of that listview are very obvious without them.
---
settings/xfpm-settings.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index ec2256d..ae6e4a5 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -2062,6 +2062,7 @@ add_device (UpDevice *device)
/* Create the page that the update_device_details will update/replace */
view = gtk_tree_view_new ();
gtk_notebook_append_page (GTK_NOTEBOOK (device_details_notebook), view, NULL);
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view), FALSE);
/* Create the list store that the devices view will display */
devices_store = gtk_list_store_new (XFPM_DEVICE_INFO_LAST, G_TYPE_STRING, G_TYPE_STRING);
@@ -2074,14 +2075,12 @@ add_device (UpDevice *device)
col = gtk_tree_view_column_new();
gtk_tree_view_column_pack_start (col, renderer, FALSE);
gtk_tree_view_column_set_attributes (col, renderer, "text", XFPM_DEVICE_INFO_NAME, NULL);
- gtk_tree_view_column_set_title (col, _("Attribute"));
gtk_tree_view_append_column (GTK_TREE_VIEW (view), col);
/*Device Attribute Value*/
col = gtk_tree_view_column_new();
gtk_tree_view_column_pack_start (col, renderer, FALSE);
gtk_tree_view_column_set_attributes (col, renderer, "text", XFPM_DEVICE_INFO_VALUE, NULL);
- gtk_tree_view_column_set_title (col, _("Value"));
gtk_tree_view_append_column (GTK_TREE_VIEW (view), col);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list