Change CairoWidget::get_active() to be const
authorTim Mayberry <mojofunk@gmail.com>
Fri, 5 Feb 2016 13:10:49 +0000 (23:10 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 11 Feb 2016 02:15:07 +0000 (12:15 +1000)
libs/gtkmm2ext/gtkmm2ext/cairo_widget.h

index b6b4ccd83e0c7e2626928e3d755ea42110146c8c..f6db0dbe94c0ef8e528d804fe236ee0afcb721a7 100644 (file)
@@ -54,7 +54,7 @@ public:
           that only use the Active and Normal active states.
        */
        void set_active (bool);
-       bool get_active () { return active_state() != Gtkmm2ext::Off; }
+       bool get_active () const { return active_state() != Gtkmm2ext::Off; }
 
        /* widgets can be told to only draw their "foreground, and thus leave
           in place whatever background is drawn by their parent. the default