comparison src/gtkutils.c @ 8247:4a6448907382

[gaim-migrate @ 8970] someone find out if this fixes the compile for gtk 2.0.x committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 12 Feb 2004 21:36:58 +0000
parents 4beaf6b35483
children e39ea2b4f6cd
comparison
equal deleted inserted replaced
8246:e7524f4b4ed2 8247:4a6448907382
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,
1544 { 1545 {
1545 *y = monitor.y; 1546 *y = monitor.y;
1546 } 1547 }
1547 } 1548 }
1548 1549
1550 #endif
1551
1549 void 1552 void
1550 gaim_gtk_treeview_popup_menu_position_func(GtkMenu *menu, 1553 gaim_gtk_treeview_popup_menu_position_func(GtkMenu *menu,
1551 gint *x, 1554 gint *x,
1552 gint *y, 1555 gint *y,
1553 gboolean *push_in, 1556 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 }