+2005-09-08 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * lib/ev-tooltip.c: (ev_tooltip_set_position):
+
+ Add some space from the cursor, hardcoded but I couldnt
+ find a better way.
+
2005-09-07 Marco Pesenti Gritti <mpg@redhat.com>
* lib/ev-tooltip.c:
#define DEFAULT_DELAY 500
#define STICKY_DELAY 500
#define STICKY_REVERT_DELAY 1000
+#define SPACE_FROM_CURSOR 10
struct _EvTooltipPrivate {
GtkWidget *label;
void
ev_tooltip_set_position (EvTooltip *tooltip, int x, int y)
{
- int root_x = 0, root_y = 0;
+ int root_x, root_y;
if (tooltip->parent != NULL) {
gdk_window_get_origin (tooltip->parent->window, &root_x, &root_y);
}
- gtk_window_move (GTK_WINDOW (tooltip), x + root_x, y + root_y);
+ gtk_window_move (GTK_WINDOW (tooltip),
+ x + root_x + SPACE_FROM_CURSOR,
+ y + root_y + SPACE_FROM_CURSOR);
}
static gboolean