File: api-breaks.xml

package info (click to toggle)
gedit 48.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,636 kB
  • sloc: ansic: 47,496; python: 649; xml: 536; objc: 446; makefile: 205; sh: 62
file content (314 lines) | stat: -rw-r--r-- 10,491 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
 <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
]>

<part id="api-breaks">
  <title>API Breaks</title>

  <para>
    gedit is a quite old piece of software (created in 1998, at the beginnings
    of the GNOME project), and as every software, the code evolves during its
    lifetime. So there are sometimes API breaks for gedit plugins, there are no
    API stability guarantees.
  </para>

  <refsect1>
    <title>47 -> 48</title>
    <itemizedlist>
      <listitem>
        <para>
          <link linkend="gedit-window-get-bottom-panel">gedit_window_get_bottom_panel()</link>
          now returns a <link linkend="TeplPanel">TeplPanel</link>.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>46 -> 47</title>
    <itemizedlist>
      <listitem>
        <para>
          The <link linkend="GeditWindow-active-tab-changed">GeditWindow::active-tab-changed</link>
          signal has a different API: the tab parameter has been removed and the
          signal is also called when the active tab becomes NULL.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GeditWindow::active-tab-state-changed</code> signal has been
          removed. It was unused and was anyway there for convenience (it was
          not an essential API).
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GeditWindow::tabs-reordered</code> signal has been removed.
          It was unused. Also, functions like
          <link linkend="gedit-window-get-documents">gedit_window_get_documents()</link>
          don't specify the order in which the objects are listed.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GeditTab::drop-uris</code> signal has been removed. You can
          use the <link linkend="GeditView-drop-uris">GeditView::drop-uris</link>
          signal instead (it is the same).
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_utils_location_get_dirname_for_display()</code>
          function has been removed.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_app_set_window_title()</code> function is now private.
          The window title is handled by the gedit core and should not be
          altered by plugins.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_app_process_window_event()</code> function is now
          private. The function should be only useful to the gedit core, not
          plugins.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>45 -> 46</title>
    <itemizedlist>
      <listitem>
        <para>
          The <link linkend="gedit-window-get-side-panel">gedit_window_get_side_panel()</link>
          function now returns a <link linkend="TeplPanel">TeplPanel</link>.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_statusbar_new()</code> and
          <code>gedit_statusbar_set_window_state()</code> functions have been
          removed.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_utils_set_atk_name_description()</code> function has
          been removed.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>44 -> 45</title>
    <itemizedlist>
      <listitem>
        <para>
          Vala plugins need to rely on the GObject Introspection file instead of
          the vapi. The latter is no longer generated.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_window_create_tab_from_location()</code> and
          <code>gedit_window_create_tab_from_stream()</code> functions have been
          removed, use
          <link linkend="gedit-window-create-tab">gedit_window_create_tab()</link>
          followed by
          <link linkend="gedit-tab-load-file">gedit_tab_load_file()</link> or
          <link linkend="gedit-tab-load-stream">gedit_tab_load_stream()</link>
          instead.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>43 -> 44</title>
    <itemizedlist>
      <listitem>
        <para>
          When an URI is added to the
          <link linkend="GtkRecentManager">GtkRecentManager</link>,
          the <code>groups</code> field of
          <link linkend="GtkRecentData">GtkRecentData</link>
          is no longer set. You can rely on the application name instead.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_document_get_language()</code> function has been
          removed, use
          <link linkend="gtk-source-buffer-get-language">gtk_source_buffer_get_language()</link>
          instead.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_document_get_short_name_for_display()</code> function has been
          removed, use
          <link linkend="tepl-file-get-short-name">tepl_file_get_short_name()</link>
          instead.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_document_is_untitled()</code> function has been
          removed, use
          <link linkend="tepl-file-get-location">tepl_file_get_location()</link>
          instead. If the location is <code>NULL</code>, it means that the
          document is untitled. The <link linkend="TeplFile">TeplFile</link>
          object should be retrieved with
          <link linkend="tepl-buffer-get-file">tepl_buffer_get_file()</link>
          (<link linkend="GeditDocument">GeditDocument</link> inherits from
          <link linkend="TeplBuffer">TeplBuffer</link>).
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_statusbar_set_overwrite()</code>
          and <code>gedit_statusbar_clear_overwrite()</code>
          functions have been removed.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>3.38 -> 40</title>
    <itemizedlist>
      <listitem>
        <para>
          All previously deprecated APIs have been removed.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GeditProgressInfoBar</code> class has been removed, you can
          use <link linkend="TeplProgressInfoBar">TeplProgressInfoBar</link>
          instead.
        </para>
      </listitem>
      <listitem>
        <para>
          <link linkend="GeditDocument">GeditDocument</link> is now a subclass
          of <link linkend="TeplBuffer">TeplBuffer</link>.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GeditDocument::cursor-moved</code> signal has been removed.
          You can use the <link linkend="TeplBuffer">TeplBuffer</link> API
          instead.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_document_get_uri_for_display()</code> function has
          been removed from the public API.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GeditDocument:shortname</code> property has been removed.
          You can use the <link linkend="TeplFile">TeplFile</link> API instead.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_document_is_untouched()</code> function has been
          removed. You can use the <link linkend="TeplBuffer">TeplBuffer</link>
          API instead.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_view_set_font()</code> function has been removed.
        </para>
      </listitem>
      <listitem>
        <para>
          <code>DEBUG_METADATA</code> has been removed.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>3.36.0 -> 3.37.1</title>
    <itemizedlist>
      <listitem>
        <para>
          All previously deprecated APIs have been removed.
        </para>
      </listitem>
      <listitem>
        <para>
          The lockdown support has been removed (for the
          org.gnome.desktop.lockdown GSettings). So the
          <code>gedit_app_get_lockdown()</code> function has been removed.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GBOOLEAN_TO_POINTER()</code> and
          <code>GPOINTER_TO_BOOLEAN()</code> macros have been removed from
          <code>gedit-utils.h</code>.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>gedit_utils_get_current_workspace()</code>,
          <code>gedit_utils_get_window_workspace()</code> and
          <code>gedit_utils_get_current_viewport()</code> functions have been
          removed because workspaces information is not available on Wayland.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>3.34.0 -> 3.35.2</title>
    <itemizedlist>
      <listitem>
        <para>
          All previously deprecated APIs have been removed.
        </para>
      </listitem>
      <listitem>
        <para>
          The <code>GeditDocument:use-gvfs-metadata</code> property has been
          removed. But there was anyway a warning for not using that property in
          a gedit plugin.
        </para>
      </listitem>
      <listitem>
        <para>
          For <link linkend="gedit-document-get-metadata">gedit_document_get_metadata()</link>
          and <link linkend="gedit-document-set-metadata">gedit_document_set_metadata()</link>,
          the key names should now have the prefix <code>"gedit-"</code> with
          possibly an additional namespace for the plugin name, for example
          <code>"gedit-spell-foobar"</code>. So the key names are now the same
          regardless of the operating system, and the key names should no longer
          start with <code>"metadata::"</code>.
        </para>
      </listitem>
    </itemizedlist>
  </refsect1>

  <refsect1>
    <title>For previous gedit versions</title>
    <para>
      See the
      <ulink url="https://wiki.gnome.org/Apps/Gedit/Attic/Old_API_Changes">Old API Changes wiki page</ulink>.
    </para>
  </refsect1>
</part>