[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: settings: Improve devices tab visually by adding frame
noreply at xfce.org
noreply at xfce.org
Sun Apr 14 23:28:45 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-power-manager.
commit 11fbe5a4a2ee0ab6c22ff2a43c4b8ce35f12c0b0
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Apr 14 23:28:07 2019 +0200
settings: Improve devices tab visually by adding frame
---
settings/xfpm-settings.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index f227546..45b56c2 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -2114,7 +2114,7 @@ add_device (UpDevice *device)
GtkListStore *sideview_store, *devices_store;
GtkTreeViewColumn *col;
GtkCellRenderer *renderer;
- GtkWidget *view;
+ GtkWidget *frame, *view;
const gchar *object_path = up_device_get_object_path(device);
gulong signal_id;
guint index;
@@ -2140,8 +2140,11 @@ add_device (UpDevice *device)
index = gtk_notebook_get_n_pages (GTK_NOTEBOOK (device_details_notebook));
/* Create the page that the update_device_details will update/replace */
+ frame = gtk_frame_new (NULL);
view = gtk_tree_view_new ();
- gtk_notebook_append_page (GTK_NOTEBOOK (device_details_notebook), view, NULL);
+ gtk_container_add (GTK_CONTAINER (frame), view);
+ gtk_widget_show_all (frame);
+ gtk_notebook_append_page (GTK_NOTEBOOK (device_details_notebook), frame, NULL);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view), FALSE);
/* Create the list store that the devices view will display */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list