aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2017-12-20 21:14:19 -0500
committerGlenn Morris2017-12-20 21:14:19 -0500
commitb5f140166ab9057b9e9dd56fd332e6b2937388c4 (patch)
treeaba8c8cc99db410ccec64d1fab7c55d2ed43b6f8 /src
parent5bf3ab291c90b4976e70694982db55dad3fa84cd (diff)
parent4122d54067c61bbdff5aab7ddf5dfe5b5797b218 (diff)
downloademacs-b5f140166ab9057b9e9dd56fd332e6b2937388c4.tar.gz
emacs-b5f140166ab9057b9e9dd56fd332e6b2937388c4.zip
Merge from origin/emacs-26
4122d54 Fix updating scrollbar sizes when scaling is in effect 21a212f Collect GnuTLS extensions and use them to set %DUMBFW if supp... 936136e * test/lisp/emacs-lisp/derived-tests.el: Fix copy&paste lefto... 07b7fb9 * lisp/subr.el (delayed-after-hook-functions): Rename from ..... a5b0a4e * lisp/net/shr.el (shr-string-pixel-width): Return pixel-widt... c51e797 python.el doc fixes c62ced5 Make 'mouse-drag-and-drop-region' more robust and customizable
Diffstat (limited to 'src')
-rw-r--r--src/gnutls.c14
-rw-r--r--src/gtkutil.c8
2 files changed, 20 insertions, 2 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index 4622011bc10..8db201ae834 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -2415,7 +2415,10 @@ GnuTLS 3 or higher : the list will contain `gnutls3'.
2415GnuTLS MACs : the list will contain `macs'. 2415GnuTLS MACs : the list will contain `macs'.
2416GnuTLS digests : the list will contain `digests'. 2416GnuTLS digests : the list will contain `digests'.
2417GnuTLS symmetric ciphers: the list will contain `ciphers'. 2417GnuTLS symmetric ciphers: the list will contain `ciphers'.
2418GnuTLS AEAD ciphers : the list will contain `AEAD-ciphers'. */) 2418GnuTLS AEAD ciphers : the list will contain `AEAD-ciphers'.
2419%DUMBFW : the list will contain `ClientHello\ Padding'.
2420Any GnuTLS extension with ID up to 100
2421 : the list will contain its name. */)
2419 (void) 2422 (void)
2420{ 2423{
2421 Lisp_Object capabilities = Qnil; 2424 Lisp_Object capabilities = Qnil;
@@ -2436,6 +2439,15 @@ GnuTLS AEAD ciphers : the list will contain `AEAD-ciphers'. */)
2436 capabilities = Fcons (intern("macs"), capabilities); 2439 capabilities = Fcons (intern("macs"), capabilities);
2437# endif /* HAVE_GNUTLS3 */ 2440# endif /* HAVE_GNUTLS3 */
2438 2441
2442 for (unsigned int ext=0; ext < 100; ext++)
2443 {
2444 const char* name = gnutls_ext_get_name(ext);
2445 if (name != NULL)
2446 {
2447 capabilities = Fcons (intern(name), capabilities);
2448 }
2449 }
2450
2439# ifdef WINDOWSNT 2451# ifdef WINDOWSNT
2440 Lisp_Object found = Fassq (Qgnutls, Vlibrary_cache); 2452 Lisp_Object found = Fassq (Qgnutls, Vlibrary_cache);
2441 if (CONSP (found)) 2453 if (CONSP (found))
diff --git a/src/gtkutil.c b/src/gtkutil.c
index c279f1d2bcd..ecb40285853 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -3899,7 +3899,7 @@ xg_update_scrollbar_pos (struct frame *f,
3899 top /= scale; 3899 top /= scale;
3900 left /= scale; 3900 left /= scale;
3901 height /= scale; 3901 height /= scale;
3902 left -= (scale - 1) * ((width / scale) >> 1); 3902 width /= scale;
3903 3903
3904 /* Clear out old position. */ 3904 /* Clear out old position. */
3905 int oldx = -1, oldy = -1, oldw, oldh; 3905 int oldx = -1, oldy = -1, oldw, oldh;
@@ -3975,6 +3975,12 @@ xg_update_horizontal_scrollbar_pos (struct frame *f,
3975 GtkWidget *wfixed = f->output_data.x->edit_widget; 3975 GtkWidget *wfixed = f->output_data.x->edit_widget;
3976 GtkWidget *wparent = gtk_widget_get_parent (wscroll); 3976 GtkWidget *wparent = gtk_widget_get_parent (wscroll);
3977 gint msl; 3977 gint msl;
3978 int scale = xg_get_scale (f);
3979
3980 top /= scale;
3981 left /= scale;
3982 height /= scale;
3983 width /= scale;
3978 3984
3979 /* Clear out old position. */ 3985 /* Clear out old position. */
3980 int oldx = -1, oldy = -1, oldw, oldh; 3986 int oldx = -1, oldy = -1, oldw, oldh;