Commit 6c7b3142 authored by Bruno Coudoin's avatar Bruno Coudoin

Added suppoort for tooltip on our main goo canvas.

Now the animation activity does display tooltips on tool buttons.
parent 90454c32
......@@ -25,6 +25,8 @@ import gcompris.sound
import gtk
import gtk.gdk
from gcompris import gcompris_gettext as _
# This is the color selector of the animation activity.
class Color:
......@@ -81,6 +83,7 @@ class Color:
fill_color_rgba = self.fill,
stroke_color_rgba = 0xFFFFFFFFL,
line_width=1.0,
tooltip = _("Fill color...")
)
self.strokecolor_tool = goocanvas.Rect(
......@@ -92,6 +95,7 @@ class Color:
fill_color_rgba = self.stroke,
stroke_color_rgba = 0xFFFFFFFFL,
line_width=1.0,
tooltip = _("Stroke color...")
)
self.fillcolor_tool.connect("button_press_event",
......
......@@ -743,13 +743,14 @@ class Gcompris_anim:
# Draw the background area
goocanvas.Image(
parent = self.rootitem,
goocanvas.Image(
parent = self.rootitem,
pixbuf = gcompris.utils.load_pixmap("anim/counter.png"),
x=x_left - -11,
y=y_top - 2,
y=y_top - 20,
width=70.0,
height=34.0,
tooltip = _("Current frame")
)
......
......@@ -800,6 +800,10 @@ static void setup_window ()
canvas = goo_canvas_new();
g_object_set (canvas,
"has-tooltip", TRUE,
NULL);
g_object_set (G_OBJECT(goo_canvas_get_root_item(GOO_CANVAS(canvas))),
"can-focus", TRUE,
NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment