pike.git / src / post_modules / GTK2 / source / gtksocket.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtksocket.pre:1:   /* -*- C -*- */   class GTK2.Socket;   inherit GTK2.Container;    - %{ - #ifndef __NT__ - #include <gdk/gdkx.h> - #else - #include <gdk/gdkwin32.h> - #endif - %} -  +    //! Together with W(Plug), GTK2.Socket provides the ability to embed   //! widgets from one process into another process in a fashion that is   //! transparent to the user. One process creates a GTK2.Socket widget   //! and, passes the XID of that widget's window to the other process,   //! which then creates a W(Plug) window with that XID. Any widgets   //! contained in the W(Plug) then will appear inside the first   //! applications window.   //! <p>   //! Note that if you pass the XID of the socket to another process   //! that will create a plug in the socket, you must make sure that the
pike.git/src/post_modules/GTK2/source/gtksocket.pre:47:    gs=gtk_socket_new();    THIS->obj=G_OBJECT(gs);    }    pgtk2__init_this_object();   }      int id()   //! Returns the window id, to be sent to the application providing the plug.   //! <br />You must realize this widget before calling this function.   { -  void *wid = (void *)(ptrdiff_t)gtk_socket_get_id(GTK_SOCKET(THIS->obj)); +  ptrdiff_t wid = (ptrdiff_t)gtk_socket_get_id(GTK_SOCKET(THIS->obj));    pgtk2_pop_n_elems(args); -  push_longest ((ptrdiff_t) wid); +  push_int64 (wid);   }      void add_id(int wid);   //! Adds an XEMBED client, such as a W(Plug), to the W(Socket).      int get_id();   //! Gets the window id of a W(Socket) widget, which can then be used   //! to create a client embedded inside the socket, for instance with   //! GTK2.Plug->create().