[latexila] Create categories of utils functions
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Create categories of utils functions
- Date: Fri, 10 Jul 2015 13:32:08 +0000 (UTC)
commit 2a81cba6fcc0f6d6448b5e99cc340c777e40ef99
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Jul 10 15:19:27 2015 +0200
Create categories of utils functions
Reorder only the header and the gtk-doc section, not the C file.
docs/reference/latexila-sections.txt | 8 ++++----
src/liblatexila/latexila-utils.h | 32 ++++++++++++++++++++------------
2 files changed, 24 insertions(+), 16 deletions(-)
---
diff --git a/docs/reference/latexila-sections.txt b/docs/reference/latexila-sections.txt
index f9d110b..a800012 100644
--- a/docs/reference/latexila-sections.txt
+++ b/docs/reference/latexila-sections.txt
@@ -275,13 +275,13 @@ LATEXILA_TYPE_TEMPLATES_PERSONAL
latexila_utils_get_shortname
latexila_utils_get_extension
latexila_utils_replace_home_dir_with_tilde
-latexila_utils_register_icons
-latexila_utils_get_pixbuf_from_icon_name
-latexila_utils_str_replace
latexila_utils_file_query_exists_async
latexila_utils_file_query_exists_finish
+latexila_utils_create_parent_directories
latexila_utils_show_uri
latexila_utils_get_dialog_component
-latexila_utils_create_parent_directories
latexila_utils_join_widgets
+latexila_utils_get_pixbuf_from_icon_name
+latexila_utils_str_replace
+latexila_utils_register_icons
</SECTION>
diff --git a/src/liblatexila/latexila-utils.h b/src/liblatexila/latexila-utils.h
index 415871d..b2bccaf 100644
--- a/src/liblatexila/latexila-utils.h
+++ b/src/liblatexila/latexila-utils.h
@@ -24,21 +24,14 @@
G_BEGIN_DECLS
+/* File utilities */
+
gchar * latexila_utils_get_shortname (const gchar *filename);
gchar * latexila_utils_get_extension (const gchar *filename);
gchar * latexila_utils_replace_home_dir_with_tilde (const gchar *filename);
-void latexila_utils_register_icons (void);
-
-GdkPixbuf * latexila_utils_get_pixbuf_from_icon_name (const gchar *icon_name,
- GtkIconSize icon_size);
-
-gchar * latexila_utils_str_replace (const gchar *string,
- const gchar *search,
- const gchar *replacement);
-
void latexila_utils_file_query_exists_async (GFile *file,
GCancellable *cancellable,
GAsyncReadyCallback callback,
@@ -47,20 +40,35 @@ void latexila_utils_file_query_exists_async (GFile
gboolean latexila_utils_file_query_exists_finish (GFile *file,
GAsyncResult *result);
+gboolean latexila_utils_create_parent_directories (GFile *file,
+ GError **error);
+
void latexila_utils_show_uri (GdkScreen *screen,
const gchar *uri,
guint32 timestamp,
GError **error);
+/* UI utilities */
+
GtkWidget * latexila_utils_get_dialog_component (const gchar *title,
GtkWidget *widget);
-gboolean latexila_utils_create_parent_directories (GFile *file,
- GError **error);
-
GtkWidget * latexila_utils_join_widgets (GtkWidget *widget_top,
GtkWidget *widget_bottom);
+GdkPixbuf * latexila_utils_get_pixbuf_from_icon_name (const gchar *icon_name,
+ GtkIconSize icon_size);
+
+/* String utilities */
+
+gchar * latexila_utils_str_replace (const gchar *string,
+ const gchar *search,
+ const gchar *replacement);
+
+/* Others */
+
+void latexila_utils_register_icons (void);
+
G_END_DECLS
#endif /* __LATEXILA_UTILS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]