Top | ![]() |
![]() |
![]() |
![]() |
guint | gtk_source_get_major_version () |
guint | gtk_source_get_minor_version () |
guint | gtk_source_get_micro_version () |
gboolean | gtk_source_check_version () |
#define | GTK_SOURCE_CHECK_VERSION() |
#define | GTK_SOURCE_MAJOR_VERSION |
#define | GTK_SOURCE_MINOR_VERSION |
#define | GTK_SOURCE_MICRO_VERSION |
guint
gtk_source_get_major_version (void
);
Returns the major version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 3.)
This function is in the library, so it represents the GtkSourceView library your code is running against. Contrast with the GTK_SOURCE_MAJOR_VERSION macro, which represents the major version of the GtkSourceView headers you have included when compiling your code.
Since: 3.20
guint
gtk_source_get_minor_version (void
);
Returns the minor version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 20.)
This function is in the library, so it represents the GtkSourceView library your code is running against. Contrast with the GTK_SOURCE_MINOR_VERSION macro, which represents the minor version of the GtkSourceView headers you have included when compiling your code.
Since: 3.20
guint
gtk_source_get_micro_version (void
);
Returns the micro version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 0.)
This function is in the library, so it represents the GtkSourceView library your code is running against. Contrast with the GTK_SOURCE_MICRO_VERSION macro, which represents the micro version of the GtkSourceView headers you have included when compiling your code.
Since: 3.20
gboolean gtk_source_check_version (guint major
,guint minor
,guint micro
);
Like GTK_SOURCE_CHECK_VERSION, but the check for gtk_source_check_version is at runtime instead of compile time. This is useful for compiling against older versions of GtkSourceView, but using features from newer versions.
major |
the major version to check |
|
minor |
the minor version to check |
|
micro |
the micro version to check |
TRUE
if the version of the GtkSourceView currently loaded
is the same as or newer than the passed-in version.
Since: 3.20
#define GTK_SOURCE_CHECK_VERSION(major, minor, micro)
Macro to test the version of GtkSourceView being compiled against.
major |
major version (e.g. 3 for version 3.20.0) |
|
minor |
minor version (e.g. 20 for version 3.20.0) |
|
micro |
micro version (e.g. 0 for version 3.20.0) |
TRUE
if the version of the GtkSourceView header files
is the same as or newer than the passed-in version.
Since: 3.20
#define GTK_SOURCE_MAJOR_VERSION (3)
Like gtk_source_get_major_version()
, but from the headers used at
application compile time, rather than from the library linked
against at application run time.
Since: 3.20
#define GTK_SOURCE_MINOR_VERSION (19)
Like gtk_source_get_minor_version()
, but from the headers used at
application compile time, rather than from the library linked
against at application run time.
Since: 3.20
#define GTK_SOURCE_MICRO_VERSION (3)
Like gtk_source_get_micro_version()
, but from the headers used at
application compile time, rather than from the library linked
against at application run time.
Since: 3.20