[gst-debugger] gst-debugger: lock widgets if property is not writable



commit 25503413dcbb518c92df7a1030ae9fb89c0cb469
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Tue Sep 22 11:33:09 2015 +0200

    gst-debugger: lock widgets if property is not writable

 src/gst-debugger/modules/gst_properties_module.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gst-debugger/modules/gst_properties_module.cpp 
b/src/gst-debugger/modules/gst_properties_module.cpp
index 400f7e9..8950424 100644
--- a/src/gst-debugger/modules/gst_properties_module.cpp
+++ b/src/gst-debugger/modules/gst_properties_module.cpp
@@ -149,6 +149,7 @@ void GstPropertiesModule::append_property(const std::shared_ptr<GValueBase>& val
        hbox->pack_start(*lbl, false, false);
        auto value_widget = value_base->get_widget();
        value_widget->show();
+       value_widget->set_sensitive(property->flags() & G_PARAM_WRITABLE);
        hbox->pack_start(*value_widget, true, true);
        hbox->pack_start(*btn, false, false);
        properties_box->pack_start(*hbox);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]