[glom/gtkmm4v4] gtkmm4: Remove calls to (removed) set/add_events().



commit 2df8b68cc61cb1a80ab3dc784301c4e3a68ce4ed
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Jun 19 20:16:10 2017 +0200

    gtkmm4: Remove calls to (removed) set/add_events().

 glom/mode_data/datawidget/datawidget.cc   |    2 --
 glom/mode_data/datawidget/label.cc        |    1 -
 glom/mode_data/db_adddel/db_adddel.cc     |    1 -
 glom/mode_data/flowtablewithfields.cc     |    1 -
 glom/utility_widgets/notebooklabelglom.cc |    1 -
 5 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/glom/mode_data/datawidget/datawidget.cc b/glom/mode_data/datawidget/datawidget.cc
index 5611271..785e85d 100644
--- a/glom/mode_data/datawidget/datawidget.cc
+++ b/glom/mode_data/datawidget/datawidget.cc
@@ -247,8 +247,6 @@ DataWidget::DataWidget(const std::shared_ptr<LayoutItem_Field>& field, const Gli
 #ifndef GLOM_ENABLE_CLIENT_ONLY
   setup_menu(this);
 #endif // GLOM_ENABLE_CLIENT_ONLY
-
-  set_events(Gdk::EventMask::BUTTON_PRESS_MASK);
 }
 
 void DataWidget::on_widget_edited()
diff --git a/glom/mode_data/datawidget/label.cc b/glom/mode_data/datawidget/label.cc
index fddbec2..8bc21f4 100644
--- a/glom/mode_data/datawidget/label.cc
+++ b/glom/mode_data/datawidget/label.cc
@@ -53,7 +53,6 @@ void Label::init()
 
   add(m_label);
   m_label.show();
-  set_events(Gdk::EventMask::ALL_EVENTS_MASK);
   //This would be more efficient if we were only using the (base) EventBox to get events,
   //but we also want to allow changing of the background color, so we don't use it: 
set_visible_window(false);
 
diff --git a/glom/mode_data/db_adddel/db_adddel.cc b/glom/mode_data/db_adddel/db_adddel.cc
index 92056ce..fca21f0 100644
--- a/glom/mode_data/db_adddel/db_adddel.cc
+++ b/glom/mode_data/db_adddel/db_adddel.cc
@@ -89,7 +89,6 @@ DbAddDel::DbAddDel()
   //Make sure that the TreeView doesn't start out only big enough for zero items.
   set_height_rows(6, 6);
 
-  m_tree_view.add_events(Gdk::EventMask::BUTTON_PRESS_MASK); //Allow us to catch button_press_event and 
button_release_event
   m_tree_view.signal_button_press_event().connect_notify( sigc::mem_fun(*this, 
&DbAddDel::on_treeview_button_press_event) );
   m_tree_view.signal_columns_changed().connect( sigc::mem_fun(*this, &DbAddDel::on_treeview_columns_changed) 
);
   //signal_button_press_event().connect(sigc::mem_fun(*this, &DbAddDel::on_button_press_event_Popup));
diff --git a/glom/mode_data/flowtablewithfields.cc b/glom/mode_data/flowtablewithfields.cc
index be1d3e6..1d65166 100644
--- a/glom/mode_data/flowtablewithfields.cc
+++ b/glom/mode_data/flowtablewithfields.cc
@@ -500,7 +500,6 @@ void FlowTableWithFields::add_field(const std::shared_ptr<LayoutItem_Field>& lay
   eventbox->set_halign(Gtk::Align::START);
   info.m_first_eventbox = eventbox; //Remember it so we can retrieve the column number later from FlowTable.
   eventbox->set_visible_window(false);
-  eventbox->set_events(Gdk::EventMask::ALL_EVENTS_MASK);
 
   add_widgets(*eventbox, *(info.m_second), true);
 
diff --git a/glom/utility_widgets/notebooklabelglom.cc b/glom/utility_widgets/notebooklabelglom.cc
index b06de10..6f2e7cb 100644
--- a/glom/utility_widgets/notebooklabelglom.cc
+++ b/glom/utility_widgets/notebooklabelglom.cc
@@ -46,7 +46,6 @@ void NotebookLabel::init()
 {
   add(m_label);
   m_label.show();
-  set_events (Gdk::EventMask::ALL_EVENTS_MASK);
   set_visible_window (false);
   setup_menu(this);
 }


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