[Fwd: [gtk-list] problem with SpinButton inside a ListItem]



Todd Dukes wrote:

> Should I be able to put a spin button inside a list item?
> I can get a hbox with a label inside it to work ok. If I
> add a spin button before the label I get messages like this
>
> ** WARNING **: file gtkwidget.c: line 2451 (gtk_widget_set_parent):
> "widget->parent == NULL"
>
> when I call append_items ()   ( I am using gtk--)
>

I figured it out.

You cannot use Gtk_ListItems as elements to put inside a Gtk_List in gtk--
with append_items. You must use the  c style GtkListItems.

This is the second time I've done this. Hope this helps someone else.

Todd


--
   ==============================================================
   | Todd Dukes                      E-MAIL:  tdukes@ibmoto.com |
   | Motorola Somerset                  Phone:   (512) 424-8008 |
   | MS OE70                                                    |
   | 6300 Bridgepoint Parkway Building #3                       |
   | Austin, Texas 78730                                        |
   ==============================================================




Should I be able to put a spin button inside a list item?
I can get a hbox with a label inside it to work ok. If I
add a spin button before the label I get messages like this

** WARNING **: file gtkwidget.c: line 2451 (gtk_widget_set_parent):
"widget->parent == NULL"

when I call append_items ()   ( I am using gtk--)

Email me and I can send an example of about 80 lines that
shows the problem.

thanks
Todd

--
   ==============================================================
   | Todd Dukes                      E-MAIL:  tdukes@ibmoto.com |
   | Motorola Somerset                  Phone:   (512) 424-8008 |
   | MS OE70                                                    |
   | 6300 Bridgepoint Parkway Building #3                       |
   | Austin, Texas 78730                                        |
   ==============================================================


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null





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