mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Bug 574283 – unused assignment and dead code in
2009-03-19 Claudio Saavedra <csaavedra@igalia.com> Bug 574283 – unused assignment and dead code in gtk_widget_set_tooltip_window() * gtk/gtkwidget.c: (gtk_widget_set_tooltip_window): Remove an unused assignment, improving checks, and clean up method. svn path=/trunk/; revision=22575
This commit is contained in:
parent
576ef4d6ea
commit
584bd9cbc6
@ -1,3 +1,11 @@
|
||||
2009-03-19 Claudio Saavedra <csaavedra@igalia.com>
|
||||
|
||||
Bug 574283 – unused assignment and dead code in
|
||||
gtk_widget_set_tooltip_window()
|
||||
|
||||
* gtk/gtkwidget.c: (gtk_widget_set_tooltip_window): Remove
|
||||
an unused assignment and clean up, improving checks.
|
||||
|
||||
2009-03-18 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* gtk/gtkscalebutton.c: add static function
|
||||
|
@ -10082,28 +10082,24 @@ void
|
||||
gtk_widget_set_tooltip_window (GtkWidget *widget,
|
||||
GtkWindow *custom_window)
|
||||
{
|
||||
gboolean tmp;
|
||||
gboolean has_tooltip;
|
||||
gchar *tooltip_markup;
|
||||
GtkWindow *tooltip_window;
|
||||
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
if (custom_window)
|
||||
g_return_if_fail (GTK_IS_WINDOW (custom_window));
|
||||
g_return_if_fail (custom_window == NULL || GTK_IS_WINDOW (custom_window));
|
||||
|
||||
tooltip_window = g_object_get_qdata (G_OBJECT (widget), quark_tooltip_window);
|
||||
tooltip_markup = g_object_get_qdata (G_OBJECT (widget), quark_tooltip_markup);
|
||||
|
||||
if (custom_window)
|
||||
g_object_ref (custom_window);
|
||||
|
||||
tooltip_window = custom_window;
|
||||
g_object_set_qdata_full (G_OBJECT (widget), quark_tooltip_window,
|
||||
tooltip_window, g_object_unref);
|
||||
custom_window, g_object_unref);
|
||||
|
||||
tmp = (tooltip_window != NULL || tooltip_markup != NULL);
|
||||
gtk_widget_real_set_has_tooltip (widget, tmp, FALSE);
|
||||
has_tooltip = (custom_window != NULL || tooltip_markup != NULL);
|
||||
gtk_widget_real_set_has_tooltip (widget, has_tooltip, FALSE);
|
||||
|
||||
if (tmp)
|
||||
if (has_tooltip)
|
||||
gtk_widget_trigger_tooltip_query (widget);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user