I dont know if you succeeded in this problem, but I would be very interested to have fresh news.

As a side note, I had problems compiling your C program, until I added

#include <stdio.h> #include <X11/Xlib.h> #include <X11/Xutil.h>
moreover, I was unable to run the perl program: I let it collect the xid by:
$window_id_of_program_to_embed=`getwindowid2 $windowname`;
(where getwindowid2 is your C program, which outputs just the numerical idof any window named $windowname)

the program just creates an empty box, without errors/warnings, and the app to be embedded just stays there.

Any idea?

alessandro


In reply to Re: Embedding Programs with Gtk2::Socket by alexxxm
in thread Embedding Programs with Gtk2::Socket by eibwen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.