mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:05:59 +01:00
Mark _get_types as G_GNUC_CONST
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
4c692a0db8
commit
1317675c47
9 changed files with 10 additions and 10 deletions
|
@ -31,7 +31,7 @@ struct _ZathuraPlainDatabaseClass
|
|||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GType zathura_plaindatabase_get_type(void);
|
||||
GType zathura_plaindatabase_get_type(void) G_GNUC_CONST;
|
||||
/**
|
||||
* Initialize database system.
|
||||
*
|
||||
|
|
|
@ -31,7 +31,7 @@ struct _ZathuraSQLDatabaseClass
|
|||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GType zathura_sqldatabase_get_type(void);
|
||||
GType zathura_sqldatabase_get_type(void) G_GNUC_CONST;
|
||||
|
||||
/**
|
||||
* Initialize database system.
|
||||
|
|
|
@ -54,7 +54,7 @@ struct _ZathuraDatabaseInterface
|
|||
girara_list_t* (*get_recent_files)(ZathuraDatabase* db, int max);
|
||||
};
|
||||
|
||||
GType zathura_database_get_type(void);
|
||||
GType zathura_database_get_type(void) G_GNUC_CONST;
|
||||
|
||||
/**
|
||||
* Add or update bookmark in the database.
|
||||
|
|
|
@ -37,7 +37,7 @@ struct zathura_dbus_class_s
|
|||
(G_TYPE_INSTANCE_GET_CLASS((obj), ZATHURA_TYPE_DBUS, \
|
||||
ZathuraDbusClass))
|
||||
|
||||
GType zathura_dbus_get_type(void);
|
||||
GType zathura_dbus_get_type(void) G_GNUC_CONST;
|
||||
|
||||
ZathuraDbus* zathura_dbus_new(zathura_t* zathura);
|
||||
|
||||
|
|
|
@ -28,6 +28,6 @@ struct zathura_glibfilemonitor_class_s
|
|||
ZathuraFileMonitorClass parent_class;
|
||||
};
|
||||
|
||||
GType zathura_glibfilemonitor_get_type(void);
|
||||
GType zathura_glibfilemonitor_get_type(void) G_GNUC_CONST;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,6 @@ struct zathura_signalfilemonitor_class_s
|
|||
ZathuraFileMonitorClass parent_class;
|
||||
};
|
||||
|
||||
GType zathura_signalfilemonitor_get_type(void);
|
||||
GType zathura_signalfilemonitor_get_type(void) G_GNUC_CONST;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -48,7 +48,7 @@ struct zathura_filemonitor_class_s
|
|||
*
|
||||
* @return the type
|
||||
*/
|
||||
GType zathura_filemonitor_get_type(void);
|
||||
GType zathura_filemonitor_get_type(void) G_GNUC_CONST;
|
||||
|
||||
/**
|
||||
* Type of file monitor.
|
||||
|
|
|
@ -41,7 +41,7 @@ struct zathura_page_widget_class_s
|
|||
* Returns the type of the page view widget.
|
||||
* @return the type
|
||||
*/
|
||||
GType zathura_page_widget_get_type(void);
|
||||
GType zathura_page_widget_get_type(void) G_GNUC_CONST;
|
||||
/**
|
||||
* Create a page view widget.
|
||||
* @param zathura the zathura instance
|
||||
|
|
|
@ -39,7 +39,7 @@ struct zathura_renderer_class_s
|
|||
* Returns the type of the renderer.
|
||||
* @return the type
|
||||
*/
|
||||
GType zathura_renderer_get_type(void);
|
||||
GType zathura_renderer_get_type(void) G_GNUC_CONST;
|
||||
/**
|
||||
* Create a renderer.
|
||||
* @return a renderer object
|
||||
|
@ -172,7 +172,7 @@ struct zathura_render_request_class_s
|
|||
* Returns the type of the render request.
|
||||
* @return the type
|
||||
*/
|
||||
GType zathura_page_render_info_get_type(void);
|
||||
GType zathura_page_render_info_get_type(void) G_GNUC_CONST;
|
||||
/**
|
||||
* Create a render request object
|
||||
* @param renderer a renderer object
|
||||
|
|
Loading…
Reference in a new issue