Sorry about all of these tree view questions, but I'm almost there.
One last thing to resolve and that's how to get a signal notification
when a GtkTreeColumn is resized. There doesn't seem to be anything in
GtkTreeViewColumn or GtkTreeView that I can register for.
thanks,
wes
___
Looks like you have to set "resizable" to TRUE for this to work.
wes
On Wed, Sep 16, 2009 at 12:36 PM, Wesley Smith wrote:
>> Sure you can explicitly set the width of the cells you add to your
>> treeview columns:
>>
>> http://library.gnome.org/devel/gtk/stable/GtkCellRenderer.html#GtkCellRendere
> Sure you can explicitly set the width of the cells you add to your
> treeview columns:
>
> http://library.gnome.org/devel/gtk/stable/GtkCellRenderer.html#GtkCellRenderer--width
I'm doing g_object_set(G_OBJECT(cell_renderer), "width", new_width,
NULL); but it's having no effect whatsoever. Is th
On Wed, Sep 16, 2009 at 2:20 PM, Wesley Smith wrote:
> I'm trying to auto-resize GtkTreeView columns based on the width of
> the GtkTreeView but am not finding any API functions for doing so. My
> problem is as follows:
>
> - I have 4 columns
> - initial widths are 196 8 8 8
> The problem here
I'm trying to auto-resize GtkTreeView columns based on the width of
the GtkTreeView but am not finding any API functions for doing so. My
problem is as follows:
- I have 4 columns
- initial widths are 196 8 8 8
The problem here is that I'm basing the width of the first column
on the view size
I have a GtkCellRendererText and by default it's rendering text with
an offset of about 22 pixels from the left part of the cell. If I get
the xpad property, it's value is 2, so I'm wondering why there might
be some extra offset and how to either change it or get its value.
Could there be some pro
From: Wesley Smith
> >> In the situation I'm talking about, there is no GtkWidget object so
> >> your technique won't work. This is the code I'm going off of
> >> actually. Thus my question is how can I get a pango context from a
> >> GtkCellRendererText?
> >
> > AFAIK, the pango context used
> Hmmm. But then I'm allowed to add many GtkCellRendererText views to
> GtkTreeView and each of those can have different font settings, so
> what would happen then? I might not be getting the correct
> measurements from the PangoContext in GtkTreeView.
AH! I've figured out the answer to my ques
>> In the situation I'm talking about, there is no GtkWidget object so
>> your technique won't work. This is the code I'm going off of
>> actually. Thus my question is how can I get a pango context from a
>> GtkCellRendererText?
>
> AFAIK, the pango context used by the GtkCellRenderer is the sam
From: Wesley Smith
> In the situation I'm talking about, there is no GtkWidget object so
> your technique won't work. This is the code I'm going off of
> actually. Thus my question is how can I get a pango context from a
> GtkCellRendererText?
AFAIK, the pango context used by the GtkCellRende
In the situation I'm talking about, there is no GtkWidget object so
your technique won't work. This is the code I'm going off of
actually. Thus my question is how can I get a pango context from a
GtkCellRendererText?
wes
On Tue, Sep 15, 2009 at 11:16 PM, Ken Resander wrote:
>
> I also had a s
11 matches
Mail list logo