[geany/geany] bf3140: Do not call deprecated functions on newer GTK+.
Neil Hodgson
git-noreply at xxxxx
Mon May 2 13:19:26 UTC 2016
Branch: refs/heads/master
Author: Neil Hodgson <nyamatongwe at gmail.com>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 02 May 2016 13:19:26 UTC
Commit: bf3140004d1618e0ae5fad1595aadf6835a97551
https://github.com/geany/geany/commit/bf3140004d1618e0ae5fad1595aadf6835a97551
Log Message:
-----------
Do not call deprecated functions on newer GTK+.
X-Scintilla-Bug-URL: https://sourceforge.net/p/scintilla/bugs/1825/
X-Scintilla-Commit-ID: 5e4f2e6c167ee30e2c2bfadd1b1579c3d8716c60
Modified Paths:
--------------
scintilla/gtk/ScintillaGTK.cxx
Modified: scintilla/gtk/ScintillaGTK.cxx
6 lines changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -472,8 +472,10 @@ void ScintillaGTK::RealizeThis(GtkWidget *widget) {
#else
gdk_window_set_user_data(gtk_widget_get_window(widget), widget);
#endif
+#if !GTK_CHECK_VERSION(3,18,0)
gtk_style_context_set_background(gtk_widget_get_style_context(widget),
gtk_widget_get_window(widget));
+#endif
gdk_window_show(gtk_widget_get_window(widget));
UnRefCursor(cursor);
#else
@@ -1223,7 +1225,9 @@ bool ScintillaGTK::ModifyScrollBars(int nMax, int nPage) {
gtk_adjustment_set_upper(adjustmentv, nMax + 1);
gtk_adjustment_set_page_size(adjustmentv, nPage);
gtk_adjustment_set_page_increment(adjustmentv, pageScroll);
+#if !GTK_CHECK_VERSION(3,18,0)
gtk_adjustment_changed(GTK_ADJUSTMENT(adjustmentv));
+#endif
modified = true;
}
@@ -1242,7 +1246,9 @@ bool ScintillaGTK::ModifyScrollBars(int nMax, int nPage) {
gtk_adjustment_set_page_size(adjustmenth, pageWidth);
gtk_adjustment_set_page_increment(adjustmenth, pageIncrement);
gtk_adjustment_set_step_increment(adjustmenth, charWidth);
+#if !GTK_CHECK_VERSION(3,18,0)
gtk_adjustment_changed(GTK_ADJUSTMENT(adjustmenth));
+#endif
modified = true;
}
if (modified && (paintState == painting)) {
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list