| 1395 relation = atk_relation_new (rel_obj, 1, ATK_RELATION_LABEL_FOR); |
1395 relation = atk_relation_new (rel_obj, 1, ATK_RELATION_LABEL_FOR); |
| 1396 atk_relation_set_add (set, relation); |
1396 atk_relation_set_add (set, relation); |
| 1397 g_object_unref (relation); |
1397 g_object_unref (relation); |
| 1398 } |
1398 } |
| 1399 |
1399 |
| |
1400 #if GTK_CHECK_VERSION(2,2,0) |
| 1400 static void |
1401 static void |
| 1401 gaim_gtk_menu_position_func(GtkMenu *menu, |
1402 gaim_gtk_menu_position_func(GtkMenu *menu, |
| 1402 gint *x, |
1403 gint *x, |
| 1403 gint *y, |
1404 gint *y, |
| 1404 gboolean *push_in, |
1405 gboolean *push_in, |
| 1564 gtk_tree_view_get_cursor (tv, &path, &col); |
1567 gtk_tree_view_get_cursor (tv, &path, &col); |
| 1565 gtk_tree_view_get_cell_area (tv, path, col, &rect); |
1568 gtk_tree_view_get_cell_area (tv, path, col, &rect); |
| 1566 |
1569 |
| 1567 *x += rect.x+rect.width; |
1570 *x += rect.x+rect.width; |
| 1568 *y += rect.y+rect.height+ythickness; |
1571 *y += rect.y+rect.height+ythickness; |
| |
1572 #if GTK_CHECK_VERSION(2,2,0) |
| 1569 gaim_gtk_menu_position_func (menu, x, y, push_in, data); |
1573 gaim_gtk_menu_position_func (menu, x, y, push_in, data); |
| 1570 } |
1574 #endif |
| |
1575 } |