Bug#370557: libgtk2.0-0: Editable cells in TreeStore are not
correctly aligned
markus koller
markus-koller at gmx.ch
Mon Jun 5 21:13:22 UTC 2006
Package: libgtk2.0-0
Version: 2.8.18-1
Severity: minor
Hi
It seems the libgtk2.0-0 update from 2.8.17 to 2.8.18 introduced a minor
cosmetic bug where the text entry for editable cells in a TreeView isn't
correctly aligned, i.e. it's about 10 pixels too far to the right.
This only happens when you press enter on the selected cell, if you click
on it, the entry is correctly aligned.
I've attached two samples, one for PyGTK and one for Ruby-GTK2, which both
exhibit the bug. I can confirm that they both behave correctly if I
downgrade to 2.8.17 again.
Cheers,
Markus
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (100, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=C, LC_CTYPE=de_CH (charmap=ISO-8859-1)
Versions of packages libgtk2.0-0 depends on:
ii libatk1.0-0 1.11.4-2 The ATK accessibility toolkit
ii libc6 2.3.6-7 GNU C Library: Shared libraries
ii libcairo2 1.0.4-2 The Cairo 2D vector graphics libra
ii libfontconfig1 2.3.2-5.1 generic font configuration library
ii libglib2.0-0 2.10.3-1 The GLib library of C routines
ii libgtk2.0-bin 2.8.18-1 The programs for the GTK+ graphica
ii libgtk2.0-common 2.8.18-1 Common files for the GTK+ graphica
ii libjpeg62 6b-12 The Independent JPEG Group's JPEG
ii libpango1.0-0 1.12.3-1 Layout and rendering of internatio
ii libpng12-0 1.2.8rel-5.1 PNG library - runtime
ii libtiff4 3.8.2-1 Tag Image File Format (TIFF) libra
ii libx11-6 2:1.0.0-6 X11 client-side library
ii libxcursor1 1.1.5.2-5 X cursor management library
ii libxext6 1:1.0.0-4 X11 miscellaneous extension librar
ii libxfixes3 1:3.0.1.2-4 X11 miscellaneous 'fixes' extensio
ii libxi6 1:1.0.0-5 X11 Input extension library
ii libxinerama1 1:1.0.1-4 X11 Xinerama extension library
ii libxrandr2 2:1.1.0.2-4 X11 RandR extension library
ii libxrender1 1:0.9.0.2-4 X Rendering Extension client libra
Versions of packages libgtk2.0-0 recommends:
ii hicolor-icon-theme 0.8-3 default fallback theme for FreeDes
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 503 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20060605/f092d221/test.py
-------------- next part --------------
#!/usr/bin/ruby
require 'gtk2'
Gtk.init
w = Gtk::Window.new
w.set_default_size(300, 300)
model = Gtk::TreeStore.new(String)
row = model.append(nil)
row[0] = "press enter"
view = Gtk::TreeView.new(model)
w << view
col = Gtk::TreeViewColumn.new
view.append_column(col)
render = Gtk::CellRendererText.new
render.editable = true
render.signal_connect('edited') do |render,path,text|
row = model.get_iter(path)
row[0] = text
end
col.pack_start(render, true)
col.set_attributes(render, :text => 0)
w.show_all
Gtk.main
More information about the Pkg-gnome-maintainers
mailing list