How do I put GtkButton on GtkEntry widget?
I wrote the next code:
GtkWidget * gtk_button_entry_add_button(GtkButtonEntry * entry, gint alignment)
GtkWidget * b = gtk_button_new_with_label("...");
entry->buttons = g_list_append(entry->buttons, b);
b->allocation.x = 20;
b->allocation.y = 0;
b->allocation.width = 20;
b->allocation.height = 20;
b->requisition.width = 20;
b->requisition.height = 20;
if(GTK_WIDGET_MAPPED(GTK_WIDGET(entry)) && !GTK_WIDGET_MAPPED(b))
// gtk_container_add(GTK_CONTAINER(entry), b);
entry - is my own widget, it inherited from GtkEntry
I created a button, putted it on the entry widget, but the button doesn't appear :( what's wrong?