Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

gtk-mta-editor.h File Reference

#include <gtk/gtkwidget.h>
#include "mta.h"

Include dependency graph for gtk-mta-editor.h:

Include dependency graph

Go to the source code of this file.

Typedefs

typedef XePGtkMTAEditor_s XePGtkMTAEditor
typedef void(* XePGtkMTAEditorCb )(XePGtkMTAEditor *mtaeditor, gpointer data)

Functions

XePGtkMTAEditora_GtkMTAEditor_new (GtkWidget *toplevel)
void a_GtkMTAEditor_free (XePGtkMTAEditor *mtaeditor)
void a_GtkMTAEditor_set_mta (XePGtkMTAEditor *mtaeditor, XePMTA *mta)
XePMTAa_GtkMTAEditor_get_mta (XePGtkMTAEditor *mtaeditor)
void a_GtkMTAEditor_show (XePGtkMTAEditor *mtaeditor)
void a_GtkMTAEditor_set_ok_callback (XePGtkMTAEditor *mtaeditor, XePGtkMTAEditorCb func, gpointer data)


Typedef Documentation

typedef struct XePGtkMTAEditor_s XePGtkMTAEditor
 

typedef void(* XePGtkMTAEditorCb)(XePGtkMTAEditor *mtaeditor, gpointer data)
 


Function Documentation

void a_GtkMTAEditor_free XePGtkMTAEditor mtaeditor  ) 
 

XePMTA* a_GtkMTAEditor_get_mta XePGtkMTAEditor mtaeditor  ) 
 

Get the current mta

Parameters:
mtaeditor the XePMTAEditor This should be called from withing the OK callback to retrieve the eventually created MTA. This function return NULL if called twice in a row without a a_GtkMTAEditor_set_mta() between them.

XePGtkMTAEditor* a_GtkMTAEditor_new GtkWidget *  toplevel  ) 
 

void a_GtkMTAEditor_set_mta XePGtkMTAEditor mtaeditor,
XePMTA mta
 

Set the MTA to be edited or create a new one to edit

Parameters:
mtaeditor the XePMTAEditor
mta the XePMTA to edit, or NULL to create a new one, in which case, the OK callback function should call a_GtkMTAEditor_get_mta() to get a pointer to the new XePMTA. If not, the newly created server will be freeed.

void a_GtkMTAEditor_set_ok_callback XePGtkMTAEditor mtaeditor,
XePGtkMTAEditorCb  func,
gpointer  data
 

Set the function to be called whenever OK is clicked The callback function should call a_GtkMTAEditor_get_mta() to get the created MTA (when NULL is passed to a_GtkMTAEditor_set_mta())

Parameters:
mtaeditor the XePMTAEditor
func the callback function to be called after user hits OK
data the user data to pass to the function as second argument

void a_GtkMTAEditor_show XePGtkMTAEditor mtaeditor  ) 
 


Generated on Wed Oct 22 15:52:21 2003 for XetPan by doxygen 1.3.2