After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 96580 - size arguments are ignored
size arguments are ignored
Status: RESOLVED OBSOLETE
Product: libzvt
Classification: Deprecated
Component: general
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: jacob berkman
Unknown User
Depends on:
Blocks:
 
 
Reported: 2002-10-23 08:40 UTC by Christian Marillat
Modified: 2006-04-11 07:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Marillat 2002-10-23 08:40:37 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;
}
*****
Comment 1 Behdad Esfahbod 2006-04-11 07:09:34 UTC
Use Vte.