Commit be221f8f authored by Paolo Borelli's avatar Paolo Borelli

documents-panel: use G_DECLARE macros

Note that we do not (yet) use them for the Rows objects internally
since they do some smart magic to share code among different row
types
parent a17c5e75
This diff is collapsed.
......@@ -27,46 +27,9 @@
G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define GEDIT_TYPE_DOCUMENTS_PANEL (gedit_documents_panel_get_type())
#define GEDIT_DOCUMENTS_PANEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GEDIT_TYPE_DOCUMENTS_PANEL, GeditDocumentsPanel))
#define GEDIT_DOCUMENTS_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GEDIT_TYPE_DOCUMENTS_PANEL, GeditDocumentsPanelClass))
#define GEDIT_IS_DOCUMENTS_PANEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GEDIT_TYPE_DOCUMENTS_PANEL))
#define GEDIT_IS_DOCUMENTS_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEDIT_TYPE_DOCUMENTS_PANEL))
#define GEDIT_DOCUMENTS_PANEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GEDIT_TYPE_DOCUMENTS_PANEL, GeditDocumentsPanelClass))
/* Private structure type */
typedef struct _GeditDocumentsPanelPrivate GeditDocumentsPanelPrivate;
/*
* Main object structure
*/
typedef struct _GeditDocumentsPanel GeditDocumentsPanel;
struct _GeditDocumentsPanel
{
GtkBox vbox;
#define GEDIT_TYPE_DOCUMENTS_PANEL (gedit_documents_panel_get_type())
/*< private > */
GeditDocumentsPanelPrivate *priv;
};
/*
* Class definition
*/
typedef struct _GeditDocumentsPanelClass GeditDocumentsPanelClass;
struct _GeditDocumentsPanelClass
{
GtkBoxClass parent_class;
};
/*
* Public methods
*/
GType gedit_documents_panel_get_type (void) G_GNUC_CONST;
G_DECLARE_FINAL_TYPE (GeditDocumentsPanel, gedit_documents_panel, GEDIT, DOCUMENTS_PANEL, GtkBox)
GtkWidget *gedit_documents_panel_new (GeditWindow *window);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment