msgstr ""
"Project-Id-Version: PACKAGE 0.1\n"
"Report-Msgid-Bugs-To: dani@danigm.net\n"
-"POT-Creation-Date: 2010-05-02 23:18+0200\n"
+"POT-Creation-Date: 2010-05-04 23:47+0200\n"
"PO-Revision-Date: 2010-01-24 20:48+0100\n"
"Last-Translator: Daniel Garcia <dani@danigm.net>\n"
"Language-Team: \n"
msgid "double click here"
msgstr "haz doble click aquí"
+#. TODO add tooltip_notify
+#: ../src/selector-tool.c:633
+msgid "press esc to go back"
+msgstr "pulsa esc para volver atrás"
+
#: ../src/svgimage.c:68
#, c-format
msgid "Couldn't load %s\n"
empty_tool_area (tbo);
tbo_tooltip_set (NULL, 0, 0, tbo);
// TODO add tooltip_notify
- //tbo_tooltip_set (_("press esc to go back"), 200, 50, tbo);
+ tbo_tooltip_set_center_timeout (_("press esc to go back"), 3000, tbo);
}
START_X = x;
return TRUE;
}
+gboolean
+quit_tooltip_cb (gpointer p)
+{
+ tbo_tooltip_set (NULL, 0, 0, (TboWindow*) p);
+ return FALSE;
+}
+
void
tbo_tooltip_draw_background (cairo_t *cr, int w, int h)
{
cairo_translate (cr, -posx, -posy);
}
+
+void
+tbo_tooltip_set_center_timeout (const char *tooltip, int timeout, TboWindow *tbo)
+{
+ int x, y;
+ x = tbo->drawing->allocation.width / 2;
+ y = tbo->drawing->allocation.height / 2;
+
+ tbo_tooltip_set (tooltip, x, y, tbo);
+ g_timeout_add (timeout, quit_tooltip_cb, tbo);
+}
#include "tbo-window.h"
void tbo_tooltip_set (const char *tooltip, int x, int y, TboWindow *tbo);
+void tbo_tooltip_set_center_timeout (const char *tooltip, int timeout, TboWindow *tbo);
GString *tbo_tooltip_get ();
void tbo_tooltip_draw (cairo_t *cr);