GNOME Bugzilla – Bug 96580
size arguments are ignored
Last modified: 2006-04-11 07:09:34 UTC
Hi, http://bugs.debian.org/166004 I'm using a zvt widget inside another application. Whether I create the widget with a specified size or set it's size after creation, it fails to obey those settings. A small sample program which shows the behaviour is included below. The resulting window always contains a 1 by 1 character term widget. Removing the zvt_term_set_size call, moving it around to any place from just after zvt creation to right before gtk_main, leaving out the size request upon creation (using plain zvt_term_new) doesn't matter a bit. Oh, btw, you should also build the API reference for libzvt; a library without it's documentation is of little worth to developers. ***** #include <gtk/gtk.h> #include <libzvt/libzvt.h> void destroy (GtkWidget* widget, gpointer data) { gtk_main_quit (); } int main (int argc, char* argv[]) { GtkWidget *term, *win; gtk_init (&argc, &argv); win = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (G_OBJECT (win), "destroy", G_CALLBACK (destroy), NULL); gtk_container_set_border_width (GTK_CONTAINER (win), 10); term = zvt_term_new_with_size (80, 24); zvt_term_set_size (ZVT_TERM (term), 80, 24); gtk_widget_show (term); gtk_container_add (GTK_CONTAINER (win), term); gtk_widget_show (win); gtk_main (); return 0; } *****
Use Vte.