ide-glib

ide-glib

Functions

Description

Functions

ide_gettext ()

const gchar *
ide_gettext (const gchar *message);

ide_g_task_return_boolean_from_main ()

void
ide_g_task_return_boolean_from_main (GTask *task,
                                     gboolean value);

This is just like g_task_return_boolean() except that it enforces that the current stack return to the main context before dispatching the callback.


ide_g_task_return_int_from_main ()

void
ide_g_task_return_int_from_main (GTask *task,
                                 gint value);

ide_g_task_return_pointer_from_main ()

void
ide_g_task_return_pointer_from_main (GTask *task,
                                     gpointer value,
                                     GDestroyNotify notify);

ide_g_task_return_error_from_main ()

void
ide_g_task_return_error_from_main (GTask *task,
                                   GError *error);

Like g_task_return_error() but ensures we return to the main loop before dispatching the result.

Parameters

task

a GTask

 

error

a GError.

[transfer full]

ide_g_file_get_uncanonical_relative_path ()

gchar *
ide_g_file_get_uncanonical_relative_path
                               (GFile *file,
                                GFile *other);

This function is similar to g_file_get_relative_path() except that file and other only need to have a shared common ancestor.

This is useful if you must use a relative path instead of the absolute, canonical path.

This is being implemented for use when communicating to GDB. When that becomes unnecessary, this should no longer be used.

Parameters

file

a GFile

 

other

a GFile with a common ancestor to file

 

Returns

A relative path, or NULL if no common ancestor was found for the relative path.

[nullable]

Since: 3.28

Types and Values