size of widget
- From: Michal ROMAN <michal roman nov sk>
- To: gtk-app-devel-list gnome org
- Subject: size of widget
- Date: Thu, 19 Jul 2001 16:42:01 +0200
Hi all,
I have one small problem.
I've defined GtkEntry widget and I want to set minimal and maximal size
of this widget.
entry1 = gtk_entry_new ();
gtk_widget_ref (entry1);
gtk_widget_set_usize (entry1, 50, -2);
gtk_widget_show (entry1);
gtk_box_pack_start (GTK_BOX (hbox1), entry1, FALSE, TRUE, 0);
This code sets only actual size of widget.
I'd like to set minimal and maximal size of entry, but I don't want to
enable expanding entry into its container.
I've tried :
gtk_widget_set_usize (entry1, 30, -2);
gtk_widget_set_usize (entry1, 100, -2);
but it sets only actual size. When a user resizes a window, entry widget
don't change its size from minimum to maximum.
Any advises?
Thank's for your time.
Michal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]