Two questions (.._size_request for Gtk_Bin and .._border_width for Gtk_Button)
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: gtk-list redhat com
- Subject: Two questions (.._size_request for Gtk_Bin and .._border_width for Gtk_Button)
- Date: Tue, 31 Mar 1998 15:35:34 +0200
Hi,
I've two questions:
1. Why doesn't GtkBin have size_request functions, that you can have a
GtkButton inside a GtkFrame (without Gtk?Box) and it still is resizing
properly?
2. If I do a gtk_container_border_width on a GtkButton, very strange
things happen (compilable example follows). (GNOME does this is the
gnome-hello-examples).
Thats it.
And now the example ( resize the window very large and highlight the
button through moving the mouse onto it.)
BTW: I'm using 0.99.9 on sparc-sun-solaris2.5.1.
#include <gtk/gtk.h>
int
main(int argc, char** argv)
{
GtkButton* Button;
GtkWindow* Window;
gtk_init ( &argc, &argv );
Window = (GtkWindow*) gtk_window_new( GTK_WINDOW_TOPLEVEL );
Button = (GtkButton*) gtk_button_new_with_label( "kinda odd, eh?" );
gtk_container_add( GTK_CONTAINER( Window ), GTK_WIDGET( Button ) );
gtk_container_border_width( GTK_CONTAINER( Button ), 20 );
gtk_widget_show( GTK_WIDGET( Button ) );
gtk_widget_show( GTK_WIDGET( Window ) );
gtk_main();
return 0;
}
Bye
Sebastian
--
+--------------============##################============--------------+
| Sebastian Wilhelmi, Institut fuer Rechnerentwurf und Fehlertoleranz, |
| Universitaet Karlsruhe; Gebaeude 20.20, Raum 263, D-76128 Karlsruhe |
| mail: wilhelmi@ira.uka.de; fax: +49 721 370455; fon: +49 721 6084353 |
+----------------> http://goethe.ira.uka.de/~wilhelmi <----------------+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]