![]() |
![]() |
![]() |
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;
A TnyMsgView that is a GtkWindow too.
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).
free-function: g_object_unref
TnyMsgWindow* tny_gtk_msg_window_new (TnyMsgView *msgview);
Create a GtkWindow that implements TnyMsgView by decorating msgview
. The
view
instance must inherit the GtkWidget type. The returned value will
inherit GtkWindow
msgview : |
a TnyMsgView to decorate or wrap with a GtkWindow |
Returns : | (caller-owns): a new TnyMsgWindow |
Since 1.0 audience: application-developer
void tny_gtk_msg_window_set_view (TnyGtkMsgWindow *self, TnyMsgView *view);
Set view
to become decorated or windowed by self
. The view
must inherit
GtkWidget.
self : |
a TnyGtkMsgView |
view : |
a TnyMsgView to decorate |
Since 1.0 audience: application-developer