tooltip: remove unused variable and related g_object_set

We never use the value of has_tooltip. This is a left-over from the refactoring
of gtk_tooltip_run_requery().
This commit is contained in:
Stefan Sauer 2015-03-03 07:49:38 +01:00
parent 05ef31362d
commit bb78a39103

View File

@ -1209,7 +1209,6 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
GdkWindow *window;
GtkWidget *tooltip_widget;
GtkTooltip *tooltip;
gboolean has_tooltip;
gboolean return_value = FALSE;
tooltip = g_object_get_data (G_OBJECT (display),
@ -1244,8 +1243,6 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
if (!tooltip_widget)
return;
g_object_get (tooltip_widget, "has-tooltip", &has_tooltip, NULL);
return_value = gtk_tooltip_run_requery (&tooltip_widget, tooltip, &x, &y);
if (!return_value)
return;