"Esquibel, Rick" wrote:
>
> I'm having a problem accessing data in a GtkList.
> I created the widgets and callbacks with Glade and
> added code to access the data. Here is a short
> description of what the code is doing.
>
> The GtkList shm_list_widget is created inside the dataset_window.
> The shm_list_widget is loaded in load_shm_list_widget().
> The selected items in shm_list_widget should be accessed in
> on_shm_list_widget_selection_changed(), but I keep on getting
> item_str = NULL when I try to access the data with
> gtk_object_get_data().
>
> Can anybody tell me what I'm doing wrong?????
>
> The relevant code is:
>
> static const gchar *ShmListKey = "ShmListKey";
> static const gchar *ShmListKey = "ShmItemKey";
You have defined the same variable twice here.
> gtk_object_set_data(GTK_OBJECT(local_shm_list), ShmListKey, "Shm Segment");
> item_str = gtk_object_get_data(dlist->data, ShmItemKey);
Why are you using different keys?
Damon
_______________________________________________
Glade-devel maillist - [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel