mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
tooltip: Fold a function into its only caller
This commit is contained in:
parent
badcf022bf
commit
846a6e8157
@ -422,21 +422,6 @@ gtk_tooltip_trigger_tooltip_query (GdkDisplay *display)
|
||||
gtk_tooltip_handle_event_internal (GDK_MOTION_NOTIFY, window, x, y);
|
||||
}
|
||||
|
||||
/* private functions */
|
||||
|
||||
static void
|
||||
gtk_tooltip_reset (GtkTooltip *tooltip)
|
||||
{
|
||||
gtk_tooltip_set_markup (tooltip, NULL);
|
||||
gtk_tooltip_set_icon (tooltip, NULL);
|
||||
gtk_tooltip_set_tip_area (tooltip, NULL);
|
||||
|
||||
/* See if the custom widget is again set from the query-tooltip
|
||||
* callback.
|
||||
*/
|
||||
tooltip->custom_was_reset = FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_tooltip_window_hide (GtkWidget *widget,
|
||||
gpointer user_data)
|
||||
@ -788,7 +773,15 @@ gtk_tooltip_run_requery (GtkWidget **widget,
|
||||
gboolean has_tooltip = FALSE;
|
||||
gboolean return_value = FALSE;
|
||||
|
||||
gtk_tooltip_reset (tooltip);
|
||||
/* Reset tooltip */
|
||||
gtk_tooltip_set_markup (tooltip, NULL);
|
||||
gtk_tooltip_set_icon (tooltip, NULL);
|
||||
gtk_tooltip_set_tip_area (tooltip, NULL);
|
||||
|
||||
/* See if the custom widget is again set from the query-tooltip
|
||||
* callback.
|
||||
*/
|
||||
tooltip->custom_was_reset = FALSE;
|
||||
|
||||
do
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user