[gtk+] Inspector: Make monitor rows unactivatable
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Inspector: Make monitor rows unactivatable
- Date: Tue, 25 Aug 2015 16:16:46 +0000 (UTC)
commit 30d56933d44d88c3f99b9f5e0c8d5264694026c3
Author: Timm Bäder <mail baedert org>
Date: Mon Aug 24 16:06:08 2015 +0200
Inspector: Make monitor rows unactivatable
gtk/inspector/general.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c
index 4979207..0611373 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -293,6 +293,7 @@ init_display (GtkInspectorGeneral *gen)
for (i = 0; i < gdk_screen_get_n_monitors (screen); i++)
{
+ GtkWidget *row;
GtkWidget *box;
GtkWidget *label;
gchar *text;
@@ -333,8 +334,12 @@ init_display (GtkInspectorGeneral *gen)
gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0);
g_free (text);
- gtk_widget_show_all (box);
- gtk_list_box_insert (GTK_LIST_BOX (gen->priv->x_box), box, -1);
+ row = gtk_list_box_row_new ();
+ gtk_container_add (GTK_CONTAINER (row), box);
+ gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
+ gtk_widget_show_all (row);
+
+ gtk_list_box_insert (GTK_LIST_BOX (gen->priv->x_box), row, -1);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]