[gedit/wip/misc: 1/2] Utils: deprecate gedit_warning()



commit 55c5f142389c2a823352aa6cf4d776c119703bc9
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Mar 20 18:50:31 2020 +0100

    Utils: deprecate gedit_warning()

 docs/reference/gedit-sections.txt | 2 +-
 gedit/gedit-utils.c               | 8 ++++++++
 gedit/gedit-utils.h               | 8 +++++---
 3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/docs/reference/gedit-sections.txt b/docs/reference/gedit-sections.txt
index 69f928a85..403ba4f0d 100644
--- a/docs/reference/gedit-sections.txt
+++ b/docs/reference/gedit-sections.txt
@@ -348,7 +348,6 @@ gedit_menu_extension_get_type
 <FILE>gedit-utils</FILE>
 gedit_utils_menu_position_under_tree_view
 gedit_utils_set_atk_name_description
-gedit_warning
 gedit_utils_basename_for_display
 gedit_utils_decode_uri
 gedit_utils_drop_get_uris
@@ -357,4 +356,5 @@ gedit_utils_is_valid_location
 gedit_utils_location_get_dirname_for_display
 gedit_utils_set_direct_save_filename
 gedit_utils_newline_type_to_string
+gedit_warning
 </SECTION>
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index d7bbd2c44..60fc8438c 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -87,6 +87,14 @@ gedit_utils_set_atk_name_description (GtkWidget   *widget,
                atk_object_set_description (aobj, description);
 }
 
+/**
+ * gedit_warning:
+ * @parent:
+ * @format:
+ * @...:
+ *
+ * Deprecated: 3.38: Use tepl_utils_show_warning_dialog() instead.
+ */
 void
 gedit_warning (GtkWindow *parent, const gchar *format, ...)
 {
diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h
index 6f00ed675..d9d031a83 100644
--- a/gedit/gedit-utils.h
+++ b/gedit/gedit-utils.h
@@ -33,9 +33,6 @@ gboolean                   gedit_utils_menu_position_under_tree_view          (G
 void                       gedit_utils_set_atk_name_description               (GtkWidget       *widget,
                                                                                const gchar     *name,
                                                                                const gchar     *description);
-void                       gedit_warning                                       (GtkWindow      *parent,
-                                                                                const gchar    *format,
-                                                                                ...) G_GNUC_PRINTF(2, 3);
 
 gchar                     *gedit_utils_location_get_dirname_for_display        (GFile          *location);
 
@@ -56,6 +53,11 @@ GtkSourceCompressionType   gedit_utils_get_compression_type_from_content_type (c
 gchar                     *gedit_utils_set_direct_save_filename               (GdkDragContext       
*context);
 const gchar               *gedit_utils_newline_type_to_string                 (GtkSourceNewlineType  
newline_type);
 
+G_DEPRECATED_FOR (tepl_utils_show_warning_dialog)
+void                       gedit_warning                                       (GtkWindow      *parent,
+                                                                                const gchar    *format,
+                                                                                ...) G_GNUC_PRINTF(2, 3);
+
 G_END_DECLS
 
 #endif /* GEDIT_UTILS_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]