![]() |
![]() |
![]() |
Reference Manual of the tinymail framework | ![]() |
---|---|---|---|---|
TnyGtkMsgWindow; TnyMsgWindow* tny_gtk_msg_window_new (TnyMsgView *msgview); void tny_gtk_msg_window_set_view (TnyGtkMsgWindow *self, TnyMsgView *view);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----TnyGtkMsgWindow
TnyGtkMsgWindow implements AtkImplementorIface, GtkBuildable, TnyMimePartView, TnyMsgView and TnyMsgWindow.
A type that decorates the TnyMsgView and is implemented by inheriting GtkWindow. It wraps the TnyMsgView instance with a window. It expects this view implementation to inherit from GtkWidget. Therefore it's soft coupled with implementations like TnyMsgView for Gtk+ and TnyMozEmbedMsgView which is also implemented by inheriting from a GtkWidget descendant, but uses a GtkMozEmbed HTML component.
You cannot use TnyMsgView implementations that don't inherit from a GtkWidget type with this type.
typedef struct _TnyGtkMsgWindow TnyGtkMsgWindow;
All implementations are rather simple, they all simply forward the instruction to a priv->msg_view instance which is a TnyMsgView or the decorated one.
Next to forwarding the instructions, this implementation also makes sure that priv->msg_view is embedded in a GtkWindow and that for example the window's title is set correctly (and things like that).
You can inherit this type in case you want to have a more decorated windowed message viewer. You can also again decorate it (I would recommend decorating TnyGtkMsgView in stead, in that case).
TnyMsgWindow* tny_gtk_msg_window_new (TnyMsgView *msgview);
Create a GtkWindow that implements TnyMsgView by decorating msgview
.
msgview : |
a TnyMsgView to decorate |
Returns : | a new TnyMsgWindow instance implemented for Gtk+ |
void tny_gtk_msg_window_set_view (TnyGtkMsgWindow *self, TnyMsgView *view);
Set the view
to decorate with self
self : |
a TnyGtkMsgView instance |
view : |
a TnyMsgView to decorate |