[gtk+] inspector: Set statistics button sensitivity
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Set statistics button sensitivity
- Date: Sat, 8 Nov 2014 14:58:58 +0000 (UTC)
commit ae4aaf73549d05ce82885cc3b4bc64c5a522e8f4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 8 09:57:48 2014 -0500
inspector: Set statistics button sensitivity
After moving the button the header, it is now visible when
statistics are not available. Disable it in this case.
gtk/inspector/statistics.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/statistics.c b/gtk/inspector/statistics.c
index de13e94..34eb3fe 100644
--- a/gtk/inspector/statistics.c
+++ b/gtk/inspector/statistics.c
@@ -364,7 +364,10 @@ constructed (GObject *object)
if (has_instance_counts ())
update_type_counts (sl);
else
- gtk_stack_set_visible_child_name (GTK_STACK (sl->priv->stack), "excuse");
+ {
+ gtk_stack_set_visible_child_name (GTK_STACK (sl->priv->stack), "excuse");
+ gtk_widget_set_sensitive (sl->priv->button, FALSE);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]