aboutsummaryrefslogtreecommitdiffstats
path: root/src/pgtkfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pgtkfns.c')
-rw-r--r--src/pgtkfns.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index c604e2f1002..9c37c04810c 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -3128,7 +3128,7 @@ x_hide_tip (bool delete)
3128 value of x_gtk_use_system_tooltips might not be the same as used 3128 value of x_gtk_use_system_tooltips might not be the same as used
3129 for the tooltip we have to hide, see Bug#30399. */ 3129 for the tooltip we have to hide, see Bug#30399. */
3130 if ((NILP (tip_last_frame) && NILP (tip_frame)) 3130 if ((NILP (tip_last_frame) && NILP (tip_frame))
3131 || (!x_gtk_use_system_tooltips 3131 || (!use_system_tooltips
3132 && !delete 3132 && !delete
3133 && FRAMEP (tip_frame) 3133 && FRAMEP (tip_frame)
3134 && FRAME_LIVE_P (XFRAME (tip_frame)) 3134 && FRAME_LIVE_P (XFRAME (tip_frame))
@@ -3161,7 +3161,7 @@ x_hide_tip (bool delete)
3161 /* When using GTK+ system tooltips (compare Bug#41200) reset 3161 /* When using GTK+ system tooltips (compare Bug#41200) reset
3162 tip_last_frame. It will be reassigned when showing the next 3162 tip_last_frame. It will be reassigned when showing the next
3163 GTK+ system tooltip. */ 3163 GTK+ system tooltip. */
3164 if (x_gtk_use_system_tooltips) 3164 if (use_system_tooltips)
3165 tip_last_frame = Qnil; 3165 tip_last_frame = Qnil;
3166 3166
3167 /* Now look whether there's an Emacs tip around. */ 3167 /* Now look whether there's an Emacs tip around. */
@@ -3171,7 +3171,7 @@ x_hide_tip (bool delete)
3171 3171
3172 if (FRAME_LIVE_P (f)) 3172 if (FRAME_LIVE_P (f))
3173 { 3173 {
3174 if (delete || x_gtk_use_system_tooltips) 3174 if (delete || use_system_tooltips)
3175 { 3175 {
3176 /* Delete the Emacs tooltip frame when DELETE is true 3176 /* Delete the Emacs tooltip frame when DELETE is true
3177 or we change the tooltip type from an Emacs one to 3177 or we change the tooltip type from an Emacs one to
@@ -3267,7 +3267,7 @@ Text larger than the specified size is clipped. */)
3267 else 3267 else
3268 CHECK_FIXNUM (dy); 3268 CHECK_FIXNUM (dy);
3269 3269
3270 if (x_gtk_use_system_tooltips) 3270 if (use_system_tooltips)
3271 { 3271 {
3272 bool ok; 3272 bool ok;
3273 3273
@@ -4068,12 +4068,6 @@ If more space for files in the file chooser dialog is wanted, set this to nil
4068to turn the additional text off. */); 4068to turn the additional text off. */);
4069 x_gtk_file_dialog_help_text = true; 4069 x_gtk_file_dialog_help_text = true;
4070 4070
4071 DEFVAR_BOOL ("x-gtk-use-system-tooltips", x_gtk_use_system_tooltips,
4072 doc: /* If non-nil with a Gtk+ built Emacs, the Gtk+ tooltip is used.
4073Otherwise use Emacs own tooltip implementation.
4074When using Gtk+ tooltips, the tooltip face is not used. */);
4075 x_gtk_use_system_tooltips = true;
4076
4077 DEFVAR_LISP ("x-max-tooltip-size", Vx_max_tooltip_size, 4071 DEFVAR_LISP ("x-max-tooltip-size", Vx_max_tooltip_size,
4078 doc: /* Maximum size for tooltips. 4072 doc: /* Maximum size for tooltips.
4079Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */); 4073Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */);