[gnome-multi-writer] trivial: Don't show the settings button if no device is connected
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-multi-writer] trivial: Don't show the settings button if no device is connected
- Date: Fri, 9 Jan 2015 20:42:58 +0000 (UTC)
commit b8f360cdc2ff0dc637d26e10f00f006938f49009
Author: Richard Hughes <richard hughsie com>
Date: Fri Jan 9 20:37:56 2015 +0000
trivial: Don't show the settings button if no device is connected
src/gmw-main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gmw-main.c b/src/gmw-main.c
index 25454b1..46922fa 100644
--- a/src/gmw-main.c
+++ b/src/gmw-main.c
@@ -226,6 +226,7 @@ gmw_refresh_ui (GmwPrivate *priv)
/* allow changing settings */
w = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_settings"));
gtk_widget_set_sensitive (w, g_thread_pool_get_num_threads (priv->thread_pool) == 0);
+ gtk_widget_set_visible (w, priv->devices->len > 0);
/* update buttons */
w = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_cancel"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]