summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2017-10-21 22:30:29 +0200
committerChristian Persch <chpe@src.gnome.org>2017-10-21 22:30:29 +0200
commite2108c7db3c1136777212ed33ba8ab716e87b4f2 (patch)
tree9318aad9b7f520bb25f97c327155493ddb29b829
parent05f936a295b7af63e447ea74769aa32d59b12379 (diff)
downloadvte-e2108c7db3c1136777212ed33ba8ab716e87b4f2.tar.gz
widget: Deprecate geometry helpers
They can't work correctly since gtk+ removed geometry support, so all apps need to handle this themselves.
-rw-r--r--src/vte/vtedeprecated.h12
-rw-r--r--src/vte/vteterminal.h10
-rw-r--r--src/vtegtk.cc4
3 files changed, 16 insertions, 10 deletions
diff --git a/src/vte/vtedeprecated.h b/src/vte/vtedeprecated.h
index d0a0c29b..98cc73ca 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 156358e4..1d4a81fd 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 d671957a..3dbbc730 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,