[gedit/wip/gedit-document-deprecations: 1/2] Deprecate gedit_document_set_short_name_for_display()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/gedit-document-deprecations: 1/2] Deprecate gedit_document_set_short_name_for_display()
- Date: Thu, 11 Jun 2015 10:13:59 +0000 (UTC)
commit 6e52e08722a93aba5b3b253e4e8e9d1d6d8c97c8
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Jun 11 11:52:26 2015 +0200
Deprecate gedit_document_set_short_name_for_display()
It is used nowhere in gedit or gedit-plugins.
gedit/gedit-document.c | 5 +++++
gedit/gedit-document.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 5774c73..7ebe173 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -293,7 +293,9 @@ gedit_document_set_property (GObject *object,
switch (prop_id)
{
case PROP_SHORTNAME:
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gedit_document_set_short_name_for_display (doc, g_value_get_string (value));
+ G_GNUC_END_IGNORE_DEPRECATIONS;
break;
case PROP_CONTENT_TYPE:
@@ -1098,6 +1100,9 @@ gedit_document_get_short_name_for_display (GeditDocument *doc)
* gedit_document_set_short_name_for_display:
* @doc:
* @short_name: (allow-none):
+ *
+ * Deprecated: 3.18: Unused function. The intent is to change the
+ * #GeditDocument:shortname property to be read-only.
*/
void
gedit_document_set_short_name_for_display (GeditDocument *doc,
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index 07716d4..fb0d9f9 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -63,6 +63,7 @@ gchar *gedit_document_get_uri_for_display (GeditDocument *doc);
gchar *gedit_document_get_short_name_for_display (GeditDocument *doc);
+G_DEPRECATED
void gedit_document_set_short_name_for_display (GeditDocument *doc,
const gchar *short_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]