[gtkmm: 2/5] Gtk: make FileFilter inherit Filter
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm: 2/5] Gtk: make FileFilter inherit Filter
- Date: Mon, 10 Aug 2020 11:20:08 +0000 (UTC)
commit f5e2eba38034018f37e46513ecb07642e5afdaa7
Author: Andreas Persson <andreasp56 outlook com>
Date: Sun Aug 9 20:20:22 2020 +0200
Gtk: make FileFilter inherit Filter
GtkFileFilter has been changed to be a GtkFilter. Adopt to the change.
gtk/src/filefilter.hg | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/src/filefilter.hg b/gtk/src/filefilter.hg
index b9223c29..50e4437c 100644
--- a/gtk/src/filefilter.hg
+++ b/gtk/src/filefilter.hg
@@ -15,11 +15,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <glibmm/object.h>
+#include <gtkmm/filter.h>
#include <gtkmm/buildable.h>
_DEFS(gtkmm,gtk)
-_PINCLUDE(glibmm/private/object_p.h)
+_PINCLUDE(gtkmm/private/filter_p.h)
namespace Gtk
{
@@ -39,10 +39,9 @@ namespace Gtk
*
* Filters are used by adding them to a Gtk::FileChooser. See Gtk::FileChooser::add_filter().
*/
-class GTKMM_API FileFilter : public Glib::Object, public Buildable
+class GTKMM_API FileFilter : public Gtk::Filter, public Buildable
{
- _CLASS_GOBJECT(FileFilter, GtkFileFilter, GTK_FILE_FILTER, Glib::Object, GObject, , , GTKMM_API)
- _DERIVES_INITIALLY_UNOWNED()
+ _CLASS_GOBJECT(FileFilter, GtkFileFilter, GTK_FILE_FILTER, Gtk::Filter, GtkFilter, , , GTKMM_API)
_IMPLEMENTS_INTERFACE(Buildable)
protected:
_CTOR_DEFAULT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]