diff options
author | Philipp Stephani <phst@google.com> | 2017-08-27 12:41:06 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-09-19 17:41:32 +0200 |
commit | b1f83c10df7d1bbb16f4e13d18119ad4aa1a2137 (patch) | |
tree | 21372d3df3ce8229a4735909139403706ebf096a /src/gtkutil.c | |
parent | 0bddbbc5aae621d5875880ac3e63f68d481df7c3 (diff) | |
download | emacs-b1f83c10df7d1bbb16f4e13d18119ad4aa1a2137.tar.gz |
Don't call deprecated GTK function gtk_adjustment_changed
* src/gtkutil.c (xg_set_toolkit_scroll_bar_thumb)
(xg_set_toolkit_horizontal_scroll_bar_thumb): Remove calls to
deprecated function gtk_adjustment_changed. This function has been
deprecated since GTK+ 3.18.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r-- | src/gtkutil.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 0203a5d5c1a..1073bd9384a 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -4085,8 +4085,10 @@ xg_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, if (int_gtk_range_get_value (GTK_RANGE (wscroll)) != value) gtk_range_set_value (GTK_RANGE (wscroll), (gdouble)value); +#if ! GTK_CHECK_VERSION (3, 18, 0) else if (changed) gtk_adjustment_changed (adj); +#endif xg_ignore_gtk_scrollbar = 0; @@ -4123,7 +4125,9 @@ xg_set_toolkit_horizontal_scroll_bar_thumb (struct scroll_bar *bar, gtk_adjustment_configure (adj, (gdouble) value, (gdouble) lower, (gdouble) upper, (gdouble) step_increment, (gdouble) page_increment, (gdouble) pagesize); +#if ! GTK_CHECK_VERSION (3, 18, 0) gtk_adjustment_changed (adj); +#endif unblock_input (); } } |