remove unused get of has_tooltip.

2007-02-06  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
	remove unused get of has_tooltip.

	* tests/testtooltips.c (query_tooltip_tree_view_cb): use the
	portable g_snprintf instead of snprintf.


svn path=/trunk/; revision=17266
This commit is contained in:
Kristian Rietveld 2007-02-06 13:13:19 +00:00 committed by Kristian Rietveld
parent 3c65aade6f
commit af7f77d97b
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2007-02-06 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
remove unused get of has_tooltip.
* tests/testtooltips.c (query_tooltip_tree_view_cb): use the
portable g_snprintf instead of snprintf.
2007-02-06 Michael Natterer <mitch@imendio.com>
* gtk/gtktooltip.c (gtk_tooltip_finalize): chain up.

View File

@ -500,7 +500,6 @@ find_topmost_widget_coords_from_event (GdkEvent *event,
gdouble dx, dy;
GtkWidget *tmp;
GtkWidget *orig;
gboolean has_tooltip;
gdk_event_get_coords (event, &dx, &dy);
tx = dx;
@ -508,8 +507,6 @@ find_topmost_widget_coords_from_event (GdkEvent *event,
orig = tmp = find_widget_under_pointer (event->any.window, &tx, &ty);
g_object_get (tmp, "has-tooltip", &has_tooltip, NULL);
if (tmp && (x != NULL || y != NULL))
{
if (tmp != orig)

View File

@ -115,7 +115,7 @@ query_tooltip_tree_view_cb (GtkWidget *widget,
gtk_tree_model_get (model, &iter, 0, &tmp, -1);
pathstring = gtk_tree_path_to_string (path);
snprintf (buffer, 511, "<b>Path %s:</b> %s", pathstring, tmp);
g_snprintf (buffer, 511, "<b>Path %s:</b> %s", pathstring, tmp);
gtk_tooltip_set_markup (tooltip, buffer);
gtk_tree_path_free (path);