Hello, i am trying to code a preview using a gimp aspect i use the
following code, but the preview always remains black no matter what
the original image was.
..
      preview = gimp_aspect_preview_new (drawable, NULL);
      gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
 //preview = gimp_aspect_preview_new(drawable,NULL);
 // gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
 g_signal_connect (G_OBJECT (preview), "button_press_event",
                  G_CALLBACK (button_press_event), NULL);
 gtk_widget_show(preview);
..

If i use the same code with the drawable preview function instead:

preview = gimp_drawable_preview_new (drawable, NULL);

i can see a preview. Nevertheless i would like to use the gimpaspect
due to the fixed aspect ratio. Anyone having an idea what i am doing
wrong?


regards,
Kristian
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to