I got gimp plugin app from this site
I want to convert this to stand alone gtk APP.
so first I write this app
    GtkWidget *image = gtk_image_new_from_file
    GtkWidget *window;

    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_window_set_title (GTK_WINDOW (window), "gtk-foobar");

    gtk_container_add (GTK_CONTAINER (window), image);
    /* Exit when the window is closed */

    g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);

    gtk_widget_show_all (GTK_WIDGET (window));

    GdkPixbuf *pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(image));

    gdk_pixbuf_save (pixbuf,"outtest.png","png",NULL,NULL);

this app is working well.
So next I want to add this plugin code before gtk_widget_show_all
(GTK_WIDGET (window));
and show converted image .
But I don't know how to connect gimp image with gtk  image
and how to get gimp drawable data from this gtk window.
please help me
gtk-app-devel-list mailing list

Reply via email to