[vte] widget: Deprecate geometry helpers
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Deprecate geometry helpers
- Date: Sat, 21 Oct 2017 20:30:48 +0000 (UTC)
commit e2108c7db3c1136777212ed33ba8ab716e87b4f2
Author: Christian Persch <chpe src gnome org>
Date: Sat Oct 21 22:30:29 2017 +0200
widget: Deprecate geometry helpers
They can't work correctly since gtk+ removed geometry support,
so all apps need to handle this themselves.
src/vte/vtedeprecated.h | 12 ++++++++++++
src/vte/vteterminal.h | 10 ----------
src/vtegtk.cc | 4 ++++
3 files changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/src/vte/vtedeprecated.h b/src/vte/vtedeprecated.h
index d0a0c29..98cc73c 100644
--- a/src/vte/vtedeprecated.h
+++ b/src/vte/vtedeprecated.h
@@ -93,6 +93,18 @@ _VTE_DEPRECATED
_VTE_PUBLIC
void vte_terminal_copy_clipboard(VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
+_VTE_DEPRECATED
+_VTE_PUBLIC
+void vte_terminal_get_geometry_hints(VteTerminal *terminal,
+ GdkGeometry *hints,
+ int min_rows,
+ int min_columns) _VTE_GNUC_NONNULL(1) _VTE_GNUC_NONNULL(2);
+
+_VTE_DEPRECATED
+_VTE_PUBLIC
+void vte_terminal_set_geometry_hints_for_window(VteTerminal *terminal,
+ GtkWindow *window) _VTE_GNUC_NONNULL(1) _VTE_GNUC_NONNULL(2);
+
G_END_DECLS
#undef _VTE_DEPRECATED
diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
index 156358e..1d4a81f 100644
--- a/src/vte/vteterminal.h
+++ b/src/vte/vteterminal.h
@@ -458,16 +458,6 @@ void vte_terminal_set_input_enabled (VteTerminal *terminal,
_VTE_PUBLIC
gboolean vte_terminal_get_input_enabled (VteTerminal *terminal) _VTE_GNUC_NONNULL(1);
-/* Window geometry helpers */
-_VTE_PUBLIC
-void vte_terminal_get_geometry_hints(VteTerminal *terminal,
- GdkGeometry *hints,
- int min_rows,
- int min_columns) _VTE_GNUC_NONNULL(1) _VTE_GNUC_NONNULL(2);
-_VTE_PUBLIC
-void vte_terminal_set_geometry_hints_for_window(VteTerminal *terminal,
- GtkWindow *window) _VTE_GNUC_NONNULL(1) _VTE_GNUC_NONNULL(2);
-
/* Writing contents out */
_VTE_PUBLIC
gboolean vte_terminal_write_contents_sync (VteTerminal *terminal,
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index d671957..3dbbc73 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -3529,6 +3529,8 @@ vte_terminal_set_font_scale(VteTerminal *terminal,
* See gtk_window_set_geometry_hints() for more information.
*
* @terminal must be realized (see gtk_widget_get_realized()).
+ *
+ * Deprecated: 0.52
*/
void
vte_terminal_get_geometry_hints(VteTerminal *terminal,
@@ -3578,6 +3580,8 @@ vte_terminal_get_geometry_hints(VteTerminal *terminal,
* gtk_window_set_geometry_hints() for more information.
*
* @terminal must be realized (see gtk_widget_get_realized()).
+ *
+ * Deprecated: 0.52
*/
void
vte_terminal_set_geometry_hints_for_window(VteTerminal *terminal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]