diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/gtkutil.c | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ff7382a87e4..74105503040 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-07-08 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2011-07-08 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * gtkutil.c (xg_prepare_tooltip): Fix indentation and comment. | ||
| 4 | Put text in x->ttip_lbl instead of gtk_tooltip_set_text (Bug#8591). | ||
| 5 | (xg_hide_tooltip): Fix comment. | ||
| 6 | |||
| 3 | * nsterm.m (initFrameFromEmacs): Don't use ns_return_types | 7 | * nsterm.m (initFrameFromEmacs): Don't use ns_return_types |
| 4 | in registerServicesMenuSendTypes. | 8 | in registerServicesMenuSendTypes. |
| 5 | (validRequestorForSendType): Don't check ns_return_types. | 9 | (validRequestorForSendType): Don't check ns_return_types. |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 343fcfa083a..b11500bf860 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -659,8 +659,8 @@ qttip_cb (GtkWidget *widget, | |||
| 659 | 659 | ||
| 660 | int | 660 | int |
| 661 | xg_prepare_tooltip (FRAME_PTR f, | 661 | xg_prepare_tooltip (FRAME_PTR f, |
| 662 | Lisp_Object string, | 662 | Lisp_Object string, |
| 663 | int *width, | 663 | int *width, |
| 664 | int *height) | 664 | int *height) |
| 665 | { | 665 | { |
| 666 | #ifndef USE_GTK_TOOLTIP | 666 | #ifndef USE_GTK_TOOLTIP |
| @@ -697,11 +697,12 @@ xg_prepare_tooltip (FRAME_PTR f, | |||
| 697 | (gtk_widget_get_display (GTK_WIDGET (x->ttip_window))), | 697 | (gtk_widget_get_display (GTK_WIDGET (x->ttip_window))), |
| 698 | "gdk-display-current-tooltip", NULL); | 698 | "gdk-display-current-tooltip", NULL); |
| 699 | 699 | ||
| 700 | /* Put out dummy widget in so we can get callbacks for unrealize and | 700 | /* Put our dummy widget in so we can get callbacks for unrealize and |
| 701 | hierarchy-changed. */ | 701 | hierarchy-changed. */ |
| 702 | gtk_tooltip_set_custom (x->ttip_widget, widget); | 702 | gtk_tooltip_set_custom (x->ttip_widget, widget); |
| 703 | 703 | ||
| 704 | gtk_tooltip_set_text (x->ttip_widget, SSDATA (encoded_string)); | 704 | gtk_tooltip_set_text (x->ttip_widget, ""); |
| 705 | gtk_label_set_text (GTK_LABEL (x->ttip_lbl), SSDATA (encoded_string)); | ||
| 705 | gtk_widget_get_preferred_size (GTK_WIDGET (x->ttip_window), NULL, &req); | 706 | gtk_widget_get_preferred_size (GTK_WIDGET (x->ttip_window), NULL, &req); |
| 706 | if (width) *width = req.width; | 707 | if (width) *width = req.width; |
| 707 | if (height) *height = req.height; | 708 | if (height) *height = req.height; |
| @@ -731,7 +732,7 @@ xg_show_tooltip (FRAME_PTR f, int root_x, int root_y) | |||
| 731 | } | 732 | } |
| 732 | 733 | ||
| 733 | /* Hide tooltip if shown. Do nothing if not shown. | 734 | /* Hide tooltip if shown. Do nothing if not shown. |
| 734 | Return non-zero if tip was hidden, non-ero if not (i.e. not using | 735 | Return non-zero if tip was hidden, non-zero if not (i.e. not using |
| 735 | system tooltips). */ | 736 | system tooltips). */ |
| 736 | 737 | ||
| 737 | int | 738 | int |