Re: GtkEntry ... change size



Mariano Gaudix wrote:
¿ how I disable expansion ?
I used the sentences  .

gtk_widget_set_vexpand (GTK_WIDGET(entry ) , FALSE ) ;

gtk_widget_set_hexpand (GTK_WIDGET(entry ) , FALSE ) ;


But  these  sentences    don't  run   .

I know those are the new "GTK3" functions, but I still mainly use GTK2.

Try:
    gtk_container_add( GTK_CONTAINER( hBox ), entry );
    gtk_box_set_child_packing( GTK_BOX( hBox ), entry,
                               FALSE, TRUE, 0, GTK_PACK_START );
    gtk_widget_show( entry );



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