[Glade-devel] glade 3.5.2 GtkTreeView

On Thu, Oct 30, 2008 at 1:39 PM, Sven Richter <sveri-list at gmx.de> wrote:
On Thu, Oct 30, 2008 at 5:10 PM, Tristan Van Berkom
<tristan.van.berkom at gmail.com> wrote:

On Thu, Oct 30, 2008 at 11:51 AM, Sven Richter <sveri-list at gmx.de> wrote:
I have to set "manually" set them clickable
with: GtkTreeView.set_headers_clickable(True)
in my program code.
I am storing the Glade code in libGlade format.

Hmmm in this case I think this is a gtk+ treeview
constructor bug, if:
 - you are using libglade
 - the clickable property is actually saved in
   the resulting glade file (if thats not the case
   then its a default value mixup we can fix)

I think the problem is that it is not saved
in the glade file.
Here is the part of the gtktreeview:
  <widget class="GtkTreeView" id="tvPlaylist">
    <property name="visible">True</property>
    <property name="can_focus">True</property>
    <signal name="row_activated" handler="on_tvPlaylist_row_activated"/>

At least i dont know enough about glade to be totally
sure about it, i think its up to you.

Then what I suspect, is that treeview installs the property with a
default of TRUE,
and then behaves with a default of FALSE, in which case we mark it
in the gtk+.xml catalog as "save-always" and be done with it, could you try
for me adding the property into the file by hand:

  <property name="headers-clickable">True</property>

(if that indeed is the correct name), if the treeview does indeed
work with the property specified, then I can just adjust our catalog
and fix the issue.

(lt-glade-3:12870): GladeUI-CRITICAL **: Unable to load image (Failed to
open file '/usr/local/share/glade3/
pixmaps/plus.png': No such file or directory)
(lt-glade-3:12870): GladeUI-WARNING **: Failed to open catalog directory
'/usr/local/share/glade3/catalogs': Error opening directory
'/usr/local/share/glade3/catalogs': No such file or directory

Since glade comes with a frontend, a core shared library and plugins, you
really need an installation, just do something like this:

./configure --prefix=/opt && make && make install

then run /opt/bin/glade-3 :)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]