removed code that was special-casing RTL since
2006-07-26 Michael Natterer <mitch@gimp.org> * app/widgets/gimpcontainertreeview.c (gimp_container_tree_view_button_press): removed code that was special-casing RTL since gtk_tree_view_get_path_at_pos() takes this correctly into account now. Fixes bug #348347. * app/widgets/gimpdockable.c (gimp_dockable_size_allocate): fix menu button positioning for RTL.
This commit is contained in:

committed by
Michael Natterer

parent
57d73d6a95
commit
c09e7f5914
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
2006-07-26 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpcontainertreeview.c
|
||||
(gimp_container_tree_view_button_press): removed code that was
|
||||
special-casing RTL since gtk_tree_view_get_path_at_pos() takes
|
||||
this correctly into account now. Fixes bug #348347.
|
||||
|
||||
* app/widgets/gimpdockable.c (gimp_dockable_size_allocate): fix
|
||||
menu button positioning for RTL.
|
||||
|
||||
2006-07-25 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimplevelstool.c (levels_input_area_event): Applied
|
||||
|
@ -837,23 +837,14 @@ gimp_container_tree_view_button_press (GtkWidget *widget,
|
||||
GimpContainerView *container_view = GIMP_CONTAINER_VIEW (tree_view);
|
||||
GtkTreeViewColumn *column;
|
||||
GtkTreePath *path;
|
||||
gint x;
|
||||
|
||||
tree_view->dnd_viewable = NULL;
|
||||
|
||||
if (! GTK_WIDGET_HAS_FOCUS (widget))
|
||||
gtk_widget_grab_focus (widget);
|
||||
|
||||
/* Actually gtk_tree_view_get_path_at_pos() should take care of the
|
||||
* render direction, but unfortunately it doesn't seem to do that.
|
||||
*/
|
||||
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
|
||||
x = MAX (widget->requisition.width, widget->allocation.width) - bevent->x;
|
||||
else
|
||||
x = bevent->x;
|
||||
|
||||
if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget),
|
||||
x, bevent->y,
|
||||
bevent->x, bevent->y,
|
||||
&path, &column, NULL, NULL))
|
||||
{
|
||||
GimpViewRenderer *renderer;
|
||||
|
@ -292,8 +292,7 @@ gimp_dockable_size_allocate (GtkWidget *widget,
|
||||
container->border_width -
|
||||
button_requisition.width);
|
||||
else
|
||||
child_allocation.x = (allocation->x + container->border_width +
|
||||
button_requisition.width);
|
||||
child_allocation.x = allocation->x + container->border_width;
|
||||
|
||||
child_allocation.y = allocation->y + container->border_width;
|
||||
child_allocation.width = button_requisition.width;
|
||||
|
Reference in New Issue
Block a user