On 6 June 2012 09:51, Osmo Antero wrote:
> Hello,
> I wanted to study the GtkCellRendererCombo so I added it directly to the
> treeview (as column).
> The combobox is initially hidden, only the "text" value is shown.
> The combo becomes visible after user clicks or do
Hello,
I wanted to study the GtkCellRendererCombo so I added it directly to the
treeview (as column).
The combobox is initially hidden, only the "text" value is shown.
The combo becomes visible after user clicks or double-clicks the column in
the row.
Unfortunately the click event doe
Hello,
I want to create my own cell-renderer for a treeview widget.
This custom cell will contain a text string and a combobox with some
values.
So my custom cell (row) contains both GtkCellRendererText and
GtkCellRendererCombo widgets.
The cell renderer works well that it displays the text
Hello again,
I have a problem with GtkCellRendererCombo, for which I did not find a
solution yet.
I try to use editing-started signal on that renderer to update combobox
model based on current selection in my treeview. But it segfaults out
when I try to receive the currently selected value
ing type cannot be selected nor the final value
> > > extracted when the dialog completes out of the combo as an integer, I have
> > > to make the list column a string and insert the appropriate string and
> > > decipher the appropriate string at the end as the Combo renderer
, I have
> > to make the list column a string and insert the appropriate string and
> > decipher the appropriate string at the end as the Combo renderer is based on
> > a text entry so there is no equivalent of _get_active() like I have with
> > a "standalone
-1 );
> gtk_list_store_append( master, &iter );
> gtk_list_store_set( master, &iter, TYPE_COL, MY_STRUCT_TYPE_INT,
> TEXT_COL, "Parameter 1",
> TEXT_SENS_COL, FALSE,
> I
TEXT_SENS_COL, FALSE,
INT_COL, 5,
INT_SENS_COL, TRUE,
-1 );
My conclusion was that as the GtkCellRendererCombo was a derivative of
the GtkCellRendererText, (and with
nd insert the appropriate string and
> decipher the appropriate string at the end as the Combo renderer is based on
> a text entry so there is no equivalent of _get_active() like I have with
> a "standalone" combo box?
I don't quite understand what are you trying to say here. But
Please excuse me asking 3 further questions on this excellent example
which does just what I want:
1. Given that this is a dialog which may be popped up and dismissed
several times whilst the application runs, do I need to do any
g_object_unrefs on any of the list stores or other parts to avoid me
; renderer->ref_count = unknown
> renderer->is_floating = true
> adj->ref_count = 1
> adj->is_floating = -1
>
>
> the remaining ref_count of adj shouldn't be freed by you. It
> will be
>
s->dispose of renderer. (that's why that reference
> is owned by renderer: who frees, who owns)
>
> Yu
>
> On Fri, 2008-12-12 at 14:10 +0900, Keedi Kim wrote:
> > HI, :-)
> >
> > Memory leak and reference counts are very confused.
> > I am using GtkTreeView
's why that reference
is owned by renderer: who frees, who owns)
Yu
On Fri, 2008-12-12 at 14:10 +0900, Keedi Kim wrote:
> HI, :-)
>
> Memory leak and reference counts are very confused.
> I am using GtkTreeView with GtkCellRendererCombo and GtkCellRenderSpin.
> So, I use
HI, :-)
Memory leak and reference counts are very confused.
I am using GtkTreeView with GtkCellRendererCombo and GtkCellRenderSpin.
So, I use Adjustment for GtkCellRendererSpin
and GtkListStore(or GtkTreeStore) for GtkCellRenderCombo.
Some of columns uses same Adj, and TreeModel, so saved them
Thanks a zillion that's really useful.
On Wed, 2008-12-10 at 20:13 +0100, Tadej Borovšak wrote:
> Hi.
>
> I'm afraid that the ideal solution cannot be achieved since you would
> need 2 different renderers on the same place. The second proposed
> solution can be achieved and it's quite simple to
Hi.
I'm afraid that the ideal solution cannot be achieved since you would
need 2 different renderers on the same place. The second proposed
solution can be achieved and it's quite simple to code.
And since the example can say more than a thousand words, I wrote a
simple application to demonstrate
In my application I am trying to build a dialog box to display and allow
the user to create/delete/edit a list of some structures.
According to the "type" field in the structures, some variants of the
structures use a string as a parameter, others use an integer. (There is
a "null" option which do
Hello,
I'm searching for an simple example in C of a TreeView
with a combobox inside a cell. I've downloaded and
study some excellent examples by Tim-Philipp Mueller,
but I'm having trouble bridging the gap to create
my own Combobox inside a TreeView.
The basics steps I've followed are:
1) cre
possibly a
NULL pointer.
Then for the TreeView of ListModelA I create a GtkCellRendererCombo and
I use gtk_tree_view_column_set_cell_data_func so I can set the model
property of the cell renderer if the model retrieved from ListModelA is
not NULL. (LancetSectionSymbolCellRendererSetModel)
Then I
to do is pack a column into the treeview along with a
> GtkCellRendererCombo and a cell data function. in the cell data
> function i create a liststore with a G_TYPE_STRING and a
> GDK_TYPE_PIXBUF, fill it with a few rows, and do a
>
> g_object_set(renderer, "model", GTK_
hello,
i can't quite figure out how to use a cell renderer combo. what i'd
like to have is a treeview column with cells that contain some text and
an icon next to the text.
so, what i try to do is pack a column into the treeview along with a
GtkCellRendererCombo and a cell data functi
21 matches
Mail list logo