\section{applet.c File Reference}
\label{applet_8c}\index{applet.c@{applet.c}}
Implementing ROX applets. 

{\tt \#include \char`\"{}rox-clib.h\char`\"{}}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$X11/Xlib.h$>$}\par
{\tt \#include $<$gtk/gtk.h$>$}\par
{\tt \#include $<$gdk/gdkx.h$>$}\par
{\tt \#include \char`\"{}rox.h\char`\"{}}\par
{\tt \#include \char`\"{}error.h\char`\"{}}\par
{\tt \#include \char`\"{}rox\_\-debug.h\char`\"{}}\par
{\tt \#include \char`\"{}applet.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
{\bf ROXApplet\-Info} $\ast$ {\bf rox\_\-applet\_\-get\_\-position} (Gtk\-Widget $\ast$plug)
\item 
{\bf ROXApplet\-Info} $\ast$ {\bf applet\_\-get\_\-position} (Gtk\-Widget $\ast$plug)
\item 
void {\bf rox\_\-applet\_\-popup\_\-menu} (Gtk\-Widget $\ast$plug, Gtk\-Widget $\ast$menu, Gdk\-Event\-Button $\ast$evbut)
\item 
void {\bf applet\_\-popup\_\-menu} (Gtk\-Widget $\ast$plug, Gtk\-Widget $\ast$menu, Gdk\-Event\-Button $\ast$evbut)
\end{CompactItemize}


\subsection{Detailed Description}
Implementing ROX applets. 

\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]\doxyref{applet.c}{p.}{applet_8c},v 1.8 2006/08/12 17:04:56 stephen Exp \end{Desc}
\end{Desc}
\begin{Desc}
\item[Author:]Stephen Watson {\tt stephen@kerofin.demon.co.uk} \end{Desc}


\subsection{Function Documentation}
\index{applet.c@{applet.c}!applet_get_position@{applet\_\-get\_\-position}}
\index{applet_get_position@{applet\_\-get\_\-position}!applet.c@{applet.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf ROXApplet\-Info}$\ast$ applet\_\-get\_\-position (Gtk\-Widget $\ast$ {\em plug})}\label{applet_8c_4ff337a4af98212858b49072eae6fdd8}


Return the location of an applet's icon.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em plug}]the widget that the applet created in the panel. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]pointer to applet info, pass to g\_\-free() when done.\end{Desc}
\begin{Desc}
\item[{\bf Deprecated}]Use \doxyref{rox\_\-applet\_\-get\_\-position()}{p.}{applet_8c_10e7172f7e0784e8630a97c645c50dcf} instead. \end{Desc}
\index{applet.c@{applet.c}!applet_popup_menu@{applet\_\-popup\_\-menu}}
\index{applet_popup_menu@{applet\_\-popup\_\-menu}!applet.c@{applet.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void applet\_\-popup\_\-menu (Gtk\-Widget $\ast$ {\em plug}, Gtk\-Widget $\ast$ {\em menu}, Gdk\-Event\-Button $\ast$ {\em evbut})}\label{applet_8c_cfb87d5638586313bba2272194a28ce7}


Popup a menu in the appropriate place for an applet's icon.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftrightarrow$} {\em plug}]the Gtk\-Plug object used to hold the applet \item[\mbox{$\leftarrow$} {\em menu}]the menu to show \item[\mbox{$\leftarrow$} {\em evbut}]the button event that triggered the menu, or {\tt NULL} if the menu was triggered by some other means\end{description}
\end{Desc}
\begin{Desc}
\item[{\bf Deprecated}]Use \doxyref{rox\_\-applet\_\-popup\_\-menu()}{p.}{applet_8c_2b4ad018641d91e94cfa312024642387} instead. \end{Desc}
\index{applet.c@{applet.c}!rox_applet_get_position@{rox\_\-applet\_\-get\_\-position}}
\index{rox_applet_get_position@{rox\_\-applet\_\-get\_\-position}!applet.c@{applet.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf ROXApplet\-Info}$\ast$ rox\_\-applet\_\-get\_\-position (Gtk\-Widget $\ast$ {\em plug})}\label{applet_8c_10e7172f7e0784e8630a97c645c50dcf}


Return the location of an applet's icon.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em plug}]the widget that the applet created in the panel. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]pointer to applet info, pass to g\_\-free() when done. \end{Desc}
\index{applet.c@{applet.c}!rox_applet_popup_menu@{rox\_\-applet\_\-popup\_\-menu}}
\index{rox_applet_popup_menu@{rox\_\-applet\_\-popup\_\-menu}!applet.c@{applet.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void rox\_\-applet\_\-popup\_\-menu (Gtk\-Widget $\ast$ {\em plug}, Gtk\-Widget $\ast$ {\em menu}, Gdk\-Event\-Button $\ast$ {\em evbut})}\label{applet_8c_2b4ad018641d91e94cfa312024642387}


Popup a menu in the appropriate place for an applet's icon.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftrightarrow$} {\em plug}]the Gtk\-Plug object used to hold the applet \item[\mbox{$\leftarrow$} {\em menu}]the menu to show \item[\mbox{$\leftarrow$} {\em evbut}]the button event that triggered the menu, or {\tt NULL} if the menu was triggered by some other means \end{description}
\end{Desc}
