Top |
Functions
Functions
anjuta_util_copy_file ()
gboolean anjuta_util_copy_file (const gchar *src
,const gchar *dest
,gboolean show_error
);
Copies src
to dest
and shows a dialog error in case is needed.
anjuta_util_color_from_string ()
void anjuta_util_color_from_string (const gchar *val
,guint16 *r
,guint16 *g
,guint16 *b
);
anjuta_util_string_from_color ()
gchar * anjuta_util_string_from_color (guint16 r
,guint16 g
,guint16 b
);
anjuta_util_button_new_with_stock_image ()
GtkWidget * anjuta_util_button_new_with_stock_image (const gchar *text
,const gchar *stock_id
);
anjuta_util_dialog_add_button ()
GtkWidget * anjuta_util_dialog_add_button (GtkDialog *dialog
,const gchar *text
,const gchar *stock_id
,gint response_id
);
anjuta_util_dialog_error ()
void anjuta_util_dialog_error (GtkWindow *parent
,const gchar *mesg
,...
);
anjuta_util_dialog_warning ()
void anjuta_util_dialog_warning (GtkWindow *parent
,const gchar *mesg
,...
);
anjuta_util_dialog_info ()
void anjuta_util_dialog_info (GtkWindow *parent
,const gchar *mesg
,...
);
anjuta_util_dialog_error_system ()
void anjuta_util_dialog_error_system (GtkWindow *parent
,gint errnum
,const gchar *mesg
,...
);
anjuta_util_dialog_boolean_question ()
gboolean anjuta_util_dialog_boolean_question (GtkWindow *parent
,gboolean default_to_yes
,const gchar *mesg
,...
);
anjuta_util_dialog_input ()
gboolean anjuta_util_dialog_input (GtkWindow *parent
,const gchar *label
,const gchar *default_value
,gchar **value
);
anjuta_util_package_is_installed ()
gboolean anjuta_util_package_is_installed (const gchar *lib
,gboolean show
);
anjuta_util_prog_is_installed ()
gboolean anjuta_util_prog_is_installed (const gchar *prog
,gboolean show
);
anjuta_util_jump_to_matching_brace ()
gboolean anjuta_util_jump_to_matching_brace (IAnjutaIterable *iter
,gchar brace
,gint limit
);
anjuta_util_parse_args_from_string ()
GList *
anjuta_util_parse_args_from_string (const gchar *string
);
Parse arguments from a string to a GList.
anjuta_util_type_from_string ()
int anjuta_util_type_from_string (AnjutaUtilStringMap *map
,const char *str
);
anjuta_util_string_from_type ()
const char * anjuta_util_string_from_type (AnjutaUtilStringMap *map
,int type
);
anjuta_util_glist_strings_prefix ()
void anjuta_util_glist_strings_prefix (GList *list
,const gchar *prefix
);
anjuta_util_glist_strings_sufix ()
void anjuta_util_glist_strings_sufix (GList *list
,const gchar *sufix
);
anjuta_util_glist_strings_join ()
gchar * anjuta_util_glist_strings_join (GList *list
,gchar *delimiter
);
anjuta_util_update_string_list ()
GList * anjuta_util_update_string_list (GList *p_list
,const gchar *p_str
,gint length
);
anjuta_util_user_shell ()
gchar *
anjuta_util_user_shell (void
);
Retrieves the user's preferred shell.
anjuta_util_user_terminal ()
gchar **
anjuta_util_user_terminal (void
);
Retrieves the user's preferred terminal.
anjuta_util_execute_shell ()
GPid anjuta_util_execute_shell (const gchar *dir
,const gchar *command
);
anjuta_util_execute_terminal_shell ()
GPid anjuta_util_execute_terminal_shell (const gchar *dir
,const gchar *command
);
anjuta_util_get_current_dir ()
gchar *
anjuta_util_get_current_dir (void
);
Get current working directory, unlike g_get_current_dir, keeps symbolic links in path name.
anjuta_util_file_new_for_commandline_arg ()
GFile *
anjuta_util_file_new_for_commandline_arg
(const gchar *arg
);
Create a new file corresponding to arg, unlike g_file_new_for_commandline_arg, keeps symbolic links in path name.
anjuta_util_replace_home_dir_with_tilde ()
gchar *
anjuta_util_replace_home_dir_with_tilde
(const gchar *uri
);
anjuta_util_shell_expand ()
gchar *
anjuta_util_shell_expand (const gchar *string
);
Expand environment variables $(var_name) and tilde (~) in the input string.
anjuta_util_str_middle_truncate ()
gchar * anjuta_util_str_middle_truncate (const gchar *string
,guint truncate_length
);
anjuta_util_is_project_file ()
gboolean
anjuta_util_is_project_file (const gchar *filename
);
Return TRUE
if the file is an anjuta project file. It is implemented by
checking only the file extension. So it does not check the existence
of the file. But it is working on an URI if it does not containt a
fragment.
anjuta_util_is_template_file ()
gboolean
anjuta_util_is_template_file (const gchar *filename
);
Return TRUE
if the file is an template project file. It is implemented by
checking only the file extension. So it does not check the existence
of the file. But it is working on an URI if it does not containt a
fragment.
anjuta_util_get_file_info_mime_type ()
gchar *
anjuta_util_get_file_info_mime_type (GFileInfo *info
);
anjuta_util_get_local_path_from_uri ()
gchar *
anjuta_util_get_local_path_from_uri (const gchar *uri
);
anjuta_util_help_display ()
void anjuta_util_help_display (GtkWidget *parent
,const gchar *doc_id
,const gchar *item
);
anjuta_util_get_user_cache_file ()
GFile * anjuta_util_get_user_cache_file (const gchar *path
,...
);
anjuta_util_get_user_config_file ()
GFile * anjuta_util_get_user_config_file (const gchar *path
,...
);
anjuta_util_get_user_data_file_path ()
gchar * anjuta_util_get_user_data_file_path (const gchar *path
,...
);
anjuta_util_get_user_cache_file_path ()
gchar * anjuta_util_get_user_cache_file_path (const gchar *path
,...
);
anjuta_util_get_user_config_file_path ()
gchar * anjuta_util_get_user_config_file_path (const gchar *path
,...
);
anjuta_util_convert_gfile_list_to_path_list ()
GList *
anjuta_util_convert_gfile_list_to_path_list
(GList *list
);
anjuta_util_convert_gfile_list_to_relative_path_list ()
GList * anjuta_util_convert_gfile_list_to_relative_path_list (GList *list
,const gchar *parent
);
anjuta_util_convert_string_list_to_array ()
GPtrArray *
anjuta_util_convert_string_list_to_array
(GList *list
);
anjuta_util_list_all_dir_children ()
void anjuta_util_list_all_dir_children (GList **children
,GFile *dir
);
anjuta_util_builder_new ()
GtkBuilder * anjuta_util_builder_new (const gchar *filename
,GError **error
);
Create a new GtkBuilder object and load the file in it. Display an error
if the file is missing. Use a dialog if error is NULL
, just a warning
if the error can be reported.
anjuta_util_builder_get_objects ()
gboolean anjuta_util_builder_get_objects (GtkBuilder *builder
,const gchar *first_widget
,...
);
Create a new GtkBuilder object and load the file in it. Display an error
if the file is missing. Use a dialog if error is NULL
, just a warning
if the error can be reported.
anjuta_utils_drop_get_files ()
GSList *
anjuta_utils_drop_get_files (GtkSelectionData *selection_data
);
Create a list of valid uri's from a uri-list drop.
anjuta_util_clone_string_gptrarray ()
GPtrArray *
anjuta_util_clone_string_gptrarray (const GPtrArray *source
);
ANJUTA_TYPE_BEGIN()
#define ANJUTA_TYPE_BEGIN(class_name, prefix, parent_type)
Create a new GObject for Anjuta. You can use ANJUTA_TYPE_ADD_INTERFACE to add interfaces to it and should close it using ANJUTA_TYPE_END
ANJUTA_TYPE_ADD_INTERFACE()
#define ANJUTA_TYPE_ADD_INTERFACE(prefix,interface_type)
Adds an interface to a declaration started with ANJUTA_TYPE_BEGIN