[gtkmm-documentation] Adapt to some Gdk::Event& (and subclasses) parameters as const&



commit b31f0b5bfe4bcc34c41b35727bcf5458b5acc583
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Sat Oct 14 09:10:09 2017 +0200

    Adapt to some Gdk::Event& (and subclasses) parameters as const&
    
    Bug 135978

 examples/book/clipboard/ideal/examplewindow.cc     |    2 +-
 examples/book/clipboard/ideal/examplewindow.h      |    2 +-
 .../others/cellrenderercustom/cellrendererpopup.cc |    2 +-
 .../others/cellrenderercustom/cellrendererpopup.h  |    2 +-
 .../cellrenderercustom/cellrenderertoggle.cc       |    4 ++--
 examples/others/cellrenderercustom/popupentry.cc   |    2 +-
 examples/others/cellrenderercustom/popupentry.h    |    2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/examples/book/clipboard/ideal/examplewindow.cc b/examples/book/clipboard/ideal/examplewindow.cc
index 59fc0c2..293fe0d 100644
--- a/examples/book/clipboard/ideal/examplewindow.cc
+++ b/examples/book/clipboard/ideal/examplewindow.cc
@@ -117,7 +117,7 @@ void ExampleWindow::on_button_paste()
   update_paste_status();
 }
 
-void ExampleWindow::on_clipboard_owner_change(Gdk::EventOwnerChange&)
+void ExampleWindow::on_clipboard_owner_change(const Gdk::EventOwnerChange&)
 {
   update_paste_status();
 }
diff --git a/examples/book/clipboard/ideal/examplewindow.h b/examples/book/clipboard/ideal/examplewindow.h
index 00e2346..412ea90 100644
--- a/examples/book/clipboard/ideal/examplewindow.h
+++ b/examples/book/clipboard/ideal/examplewindow.h
@@ -30,7 +30,7 @@ protected:
   void on_button_copy();
   void on_button_paste();
 
-  void on_clipboard_owner_change(Gdk::EventOwnerChange& event);
+  void on_clipboard_owner_change(const Gdk::EventOwnerChange& event);
   void on_clipboard_get(Gtk::SelectionData& selection_data, guint info);
   void on_clipboard_clear();
 
diff --git a/examples/others/cellrenderercustom/cellrendererpopup.cc 
b/examples/others/cellrenderercustom/cellrendererpopup.cc
index bfb3dfa..ec5023c 100644
--- a/examples/others/cellrenderercustom/cellrendererpopup.cc
+++ b/examples/others/cellrenderercustom/cellrendererpopup.cc
@@ -125,7 +125,7 @@ void CellRendererPopup::get_preferred_width_for_height_vfunc(Gtk::Widget& widget
   natural_width += button_width_;
 }
 
-Gtk::CellEditable* CellRendererPopup::start_editing_vfunc(Gdk::Event&,
+Gtk::CellEditable* CellRendererPopup::start_editing_vfunc(const Gdk::Event&,
                                                           Gtk::Widget&,
                                                           const Glib::ustring& path,
                                                           const Gdk::Rectangle&,
diff --git a/examples/others/cellrenderercustom/cellrendererpopup.h 
b/examples/others/cellrenderercustom/cellrendererpopup.h
index cbb9d41..db59558 100644
--- a/examples/others/cellrenderercustom/cellrendererpopup.h
+++ b/examples/others/cellrenderercustom/cellrendererpopup.h
@@ -47,7 +47,7 @@ protected:
   void get_preferred_width_for_height_vfunc(Gtk::Widget& widget, int height,
     int& minimum_width, int& natural_width) const override;
 
-  Gtk::CellEditable* start_editing_vfunc(Gdk::Event& event,
+  Gtk::CellEditable* start_editing_vfunc(const Gdk::Event& event,
                                          Gtk::Widget& widget,
                                          const Glib::ustring& path,
                                          const Gdk::Rectangle& background_area,
diff --git a/examples/others/cellrenderercustom/cellrenderertoggle.cc 
b/examples/others/cellrenderercustom/cellrenderertoggle.cc
index f8090be..c493e37 100644
--- a/examples/others/cellrenderercustom/cellrenderertoggle.cc
+++ b/examples/others/cellrenderercustom/cellrenderertoggle.cc
@@ -58,7 +58,7 @@ protected:
                       const Gdk::Rectangle& cell_area,
                       Gtk::CellRendererState flags) override;
 
-  bool activate_vfunc(Gdk::Event& event,
+  bool activate_vfunc(const Gdk::Event& event,
                       Gtk::Widget& widget,
                       const Glib::ustring& path,
                       const Gdk::Rectangle& background_area,
@@ -224,7 +224,7 @@ void MyCellRendererToggle::snapshot_vfunc(Gtk::Snapshot& snapshot,
   }
 }
 
-bool MyCellRendererToggle::activate_vfunc(Gdk::Event&,
+bool MyCellRendererToggle::activate_vfunc(const Gdk::Event&,
                                           Gtk::Widget&,
                                           const Glib::ustring& path,
                                           const Gdk::Rectangle&,
diff --git a/examples/others/cellrenderercustom/popupentry.cc 
b/examples/others/cellrenderercustom/popupentry.cc
index 5e86cef..b7c347c 100644
--- a/examples/others/cellrenderercustom/popupentry.cc
+++ b/examples/others/cellrenderercustom/popupentry.cc
@@ -130,7 +130,7 @@ bool PopupEntry::on_key_press_event(Gdk::EventKey& key_event)
   return Gtk::Box::on_key_press_event(key_event);
 }
 
-void PopupEntry::start_editing_vfunc(Gdk::Event&)
+void PopupEntry::start_editing_vfunc(const Gdk::Event&)
 {
   entry_->select_region(0, -1);
 
diff --git a/examples/others/cellrenderercustom/popupentry.h b/examples/others/cellrenderercustom/popupentry.h
index 17b0294..8d0d797 100644
--- a/examples/others/cellrenderercustom/popupentry.h
+++ b/examples/others/cellrenderercustom/popupentry.h
@@ -43,7 +43,7 @@ public:
 
 protected:
   bool on_key_press_event(Gdk::EventKey& key_event) override;
-  void start_editing_vfunc(Gdk::Event& event) override;
+  void start_editing_vfunc(const Gdk::Event& event) override;
 
 private:
   typedef PopupEntry Self;


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