[gst-debugger] gst-debugger: fix removing query hook
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gst-debugger] gst-debugger: fix removing query hook
- Date: Tue, 6 Oct 2015 17:05:21 +0000 (UTC)
commit 2b2a79733f1d3954cdd88acc6ebc755c0ddb596c
Author: Marcin Kolny <marcin kolny gmail com>
Date: Tue Oct 6 19:04:31 2015 +0200
gst-debugger: fix removing query hook
src/gst-debugger/modules/event_module.h | 6 ++++++
src/gst-debugger/modules/qe_control_module.h | 6 ------
src/gst-debugger/modules/query_module.h | 6 ++++++
3 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/gst-debugger/modules/event_module.h b/src/gst-debugger/modules/event_module.h
index 5bba2fa..80dac5c 100644
--- a/src/gst-debugger/modules/event_module.h
+++ b/src/gst-debugger/modules/event_module.h
@@ -29,6 +29,12 @@ class EventControlModule : virtual public ControlModule, public QEControlModule
void add_hook() override;
void remove_hook(const Gtk::TreeModel::Row& row) override;
+ bool hook_is_the_same(const Gtk::TreeModel::Row& row, gconstpointer confirmation) override
+ {
+ auto pad = reinterpret_cast<const GstDebugger::PadHookRequest*>(confirmation);
+ return row[hooks_model_columns.int1] == pad->event().type() && row[hooks_model_columns.str2]
== pad->pad();
+ }
+
public:
EventControlModule();
virtual ~EventControlModule() {}
diff --git a/src/gst-debugger/modules/qe_control_module.h b/src/gst-debugger/modules/qe_control_module.h
index 94ccb16..e5b5746 100644
--- a/src/gst-debugger/modules/qe_control_module.h
+++ b/src/gst-debugger/modules/qe_control_module.h
@@ -21,12 +21,6 @@ protected:
Gtk::Label *pad_path_label;
Gtk::ComboBox *types_combobox;
- bool hook_is_the_same(const Gtk::TreeModel::Row& row, gconstpointer confirmation) override
- {
- auto pad = reinterpret_cast<const GstDebugger::PadHookRequest*>(confirmation);
- return row[hooks_model_columns.int1] == pad->event().type() && row[hooks_model_columns.str2]
== pad->pad();
- }
-
public:
QEControlModule(const std::string& enum_name)
: enum_name(enum_name)
diff --git a/src/gst-debugger/modules/query_module.h b/src/gst-debugger/modules/query_module.h
index 24c6818..1818d37 100644
--- a/src/gst-debugger/modules/query_module.h
+++ b/src/gst-debugger/modules/query_module.h
@@ -29,6 +29,12 @@ class QueryControlModule : virtual public ControlModule, public QEControlModule
void add_hook() override;
void remove_hook(const Gtk::TreeModel::Row& row) override;
+ bool hook_is_the_same(const Gtk::TreeModel::Row& row, gconstpointer confirmation) override
+ {
+ auto pad = reinterpret_cast<const GstDebugger::PadHookRequest*>(confirmation);
+ return row[hooks_model_columns.int1] == pad->query().type() && row[hooks_model_columns.str2]
== pad->pad();
+ }
+
public:
QueryControlModule();
virtual ~QueryControlModule() {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]