I want convert gimp plugin to stand alone program.



Hello
I got gimp plugin app from this site
http://web.archive.org/web/20130313103401if_/http://registry.gimp.org/files/gimp-ace-0.6.7.tar.gz
I want to convert this to stand alone gtk APP.
so first I write this app
    GtkWidget *image = gtk_image_new_from_file
("/home/kokawa2003/Downloads/EFFECT/tanbo.png");
    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]