How to clean cairo_surface_t when i draw line or other, within video play
Hello, First ,thanks for your reading. I have a problem,my program have one thread to get IMAGE from v4l2,and render to drawingarea, there are some functions request draw line ,poly,ellipse,text,on the image, in real time, but need to save the prev drawing. i put a cairo_surface_t on the IMAGE(as GdkPixmap),created with: cairo_surface_t*cairo_surface_create_similar(cairo_surface_t *other, cairo_content_t content,(COLOR_ALPHA) int width, int height); BUT ,there is one problem, when mouse moving,the drawed line was allow on it. how can i clear the prev drawing? i use another surface on it,and drawing one time i clear it,(cairo_set_operator(CLEAR),cairo_paint), but it two slow, how can i do this. can only clear the path i drawed? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Howto correctly generate "expandable void"?
Hi, i have a vbox with a bunch of buttons. I want some of them to appear at the top and some of them at the bottom. The buttons should not be expanded and the space between them should also not expand except the space between the two groups. Something like this: (a) (b) (c) (x) (y) (z) How is this done correctly without having some invisible item i can place between both groups and which is set to expand/fill? Till ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Print dialog is too big on some systems (Ubuntu 8.04 on an Asus Eee)
Hey all, I'm using the standard print method from Gtk (not Gtkmm because of a bug in the mm implementation), and the print dialog is way too big for the (admittedly very small) screen on the Asus Eee PC (800x480). Am I stuck with this behavior? The QA folks noted that Open Office has a dialog that's the right size -- did they roll their own? Thanks in advance for your ideas. -Garth -- Garth Upshaw Garth's KidStuff ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Howto correctly generate "expandable void"?
Hi, Le Fri, 24 Oct 2008 21:01:04 +0200, "Till Harbaum / Lists" <[EMAIL PROTECTED]> a écrit : > Hi, > > i have a vbox with a bunch of buttons. I want some of them to appear > at the top and some of them at the bottom. The buttons should not be > expanded and the space between them should also not expand except the > space between the two groups. Something like this: > How is this done correctly without having some invisible item i can > place between both groups and which is set to expand/fill? I don't look to answer you with a direct response, but yet, I want to let you know about glade. You can put your widgets easily in a window and play with the positioning and so on. One way would be to add items a,b,c inside one vbox that is put as first element of the main vbox, and which is also set to expand/fill. The latter rows, for items x,y,z, would be put at the bottom. > Till HTH Mike ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Howto correctly generate "expandable void"?
Till, I have not tested this yet, but I can give you an ideal of what I would try first. Window -vbox -- vbutton_box(a,b,c) -- postioned using start -- vbutton_box(x,y,z) -- postioned using end Here is the code. ***BEGIN /* Button Alignment */ #include int main(int argc, char *argv[] ) { GtkWidget *window = NULL; GtkWidget *vbox = NULL; GtkWidget *button = NULL; GtkWidget *bbox= NULL; gtk_init (&argc, &argv); /* create window, etc */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "expandable void"); gtk_container_set_border_width (GTK_CONTAINER (window), 5); g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (gtk_main_quit), NULL); /* * Create the main vbox */ vbox = gtk_vbox_new (FALSE, 5); gtk_container_add (GTK_CONTAINER (window), vbox); /* * Create the Top Group of buttons */ bbox = gtk_vbutton_box_new (); gtk_container_set_border_width (GTK_CONTAINER (bbox), 5); gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_START); gtk_box_set_spacing (GTK_BOX (bbox), 6); gtk_box_pack_start (GTK_BOX (vbox), bbox, TRUE, TRUE, 5); button = gtk_button_new_from_stock (GTK_STOCK_OK); gtk_container_add (GTK_CONTAINER (bbox), button); button = gtk_button_new_from_stock (GTK_STOCK_CANCEL); gtk_container_add (GTK_CONTAINER (bbox), button); button = gtk_button_new_from_stock (GTK_STOCK_HELP); gtk_container_add (GTK_CONTAINER (bbox), button); /* * Create the Bottom Group of buttons */ bbox = gtk_vbutton_box_new (); gtk_container_set_border_width (GTK_CONTAINER (bbox), 5); gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_END); gtk_box_set_spacing (GTK_BOX (bbox), 6); gtk_box_pack_end (GTK_BOX (vbox), bbox, TRUE, TRUE, 5); button = gtk_button_new_from_stock (GTK_STOCK_OK); gtk_container_add (GTK_CONTAINER (bbox), button); button = gtk_button_new_from_stock (GTK_STOCK_CANCEL); gtk_container_add (GTK_CONTAINER (bbox), button); button = gtk_button_new_from_stock (GTK_STOCK_HELP); gtk_container_add (GTK_CONTAINER (bbox), button); gtk_widget_show_all (window); gtk_main(); return 0; } ***END On Fri, 2008-10-24 at 21:01 +0200, Till Harbaum / Lists wrote: > Hi, > > i have a vbox with a bunch of buttons. I want some of them to appear at the > top > and some of them at the bottom. The buttons should not be expanded and the > space between them should also not expand except the space between the two > groups. Something like this: > > (a) > (b) > (c) > > > > > (x) > (y) > (z) > > How is this done correctly without having some invisible item i can place > between > both groups and which is set to expand/fill? > > Till > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list