From a30c90206d7011905955063ae432a5be30dca6f4 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 4 Jun 2013 13:32:08 +0200 Subject: all interface classes define the same type InterfaceCurrent, simplifying the interface object definition * they still define their own classes (e.g. InterfaceNCurses), InterfaceCurrent is a typedef --- src/interface-gtk.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/interface-gtk.h') diff --git a/src/interface-gtk.h b/src/interface-gtk.h index ed2cabe..e2d1589 100644 --- a/src/interface-gtk.h +++ b/src/interface-gtk.h @@ -28,8 +28,7 @@ #include "interface.h" -/* object declared in main.cpp */ -extern class InterfaceGtk : public Interface { +typedef class InterfaceGtk : public Interface { GtkWidget *window; GtkWidget *editor_widget; GtkWidget *cmdline_widget; @@ -86,6 +85,6 @@ public: private: static void widget_set_font(GtkWidget *widget, const gchar *font_name); -} interface; +} InterfaceCurrent; #endif -- cgit v1.2.3