MateMDIChild

MateMDIChild

Synopsis

#include <libmateui/libmateui.h>

GtkWidget *         (*MateMDIChildViewCreator)         (MateMDIChild *Param1,
                                                         gpointer Param2);
GList *             (*MateMDIChildMenuCreator)         (MateMDIChild *Param1,
                                                         GtkWidget *Param2,
                                                         gpointer Param3);
gchar *             (*MateMDIChildConfigFunc)          (MateMDIChild *Param1,
                                                         gpointer Param2);
GtkWidget *         (*MateMDIChildLabelFunc)           (MateMDIChild *Param1,
                                                         GtkWidget *Param2,
                                                         gpointer Param3);
struct              MateMDIChild;
GtkWidget *         mate_mdi_child_add_view            (MateMDIChild *mdi_child);
void                mate_mdi_child_remove_view         (MateMDIChild *mdi_child,
                                                         GtkWidget *view);
void                mate_mdi_child_set_name            (MateMDIChild *mdi_child,
                                                         const gchar *name);
void                mate_mdi_child_set_menu_template   (MateMDIChild *mdi_child,
                                                         MateUIInfo *menu_tmpl);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----MateMDIChild
                     +----MateMDIGenericChild

Description

Details

MateMDIChildViewCreator ()

GtkWidget *         (*MateMDIChildViewCreator)         (MateMDIChild *Param1,
                                                         gpointer Param2);

Warning

MateMDIChildViewCreator is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Returns :


MateMDIChildMenuCreator ()

GList *             (*MateMDIChildMenuCreator)         (MateMDIChild *Param1,
                                                         GtkWidget *Param2,
                                                         gpointer Param3);

Warning

MateMDIChildMenuCreator is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Param3 :

Returns :


MateMDIChildConfigFunc ()

gchar *             (*MateMDIChildConfigFunc)          (MateMDIChild *Param1,
                                                         gpointer Param2);

Warning

MateMDIChildConfigFunc is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Returns :


MateMDIChildLabelFunc ()

GtkWidget *         (*MateMDIChildLabelFunc)           (MateMDIChild *Param1,
                                                         GtkWidget *Param2,
                                                         gpointer Param3);

Warning

MateMDIChildLabelFunc is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Param3 :

Returns :


struct MateMDIChild

struct MateMDIChild;

Warning

MateMDIChild is deprecated and should not be used in newly-written code.


mate_mdi_child_add_view ()

GtkWidget *         mate_mdi_child_add_view            (MateMDIChild *mdi_child);

Warning

mate_mdi_child_add_view is deprecated and should not be used in newly-written code.

Creates a new view of a child (a GtkWidget) adds it to the list of the views and returns a pointer to it. Virtual function that has to be specified for classes derived from MateMDIChild is used to create the new view.

mdi_child :

A pointer to a MateMDIChild object.

Returns :

A pointer to the new view.

mate_mdi_child_remove_view ()

void                mate_mdi_child_remove_view         (MateMDIChild *mdi_child,
                                                         GtkWidget *view);

Warning

mate_mdi_child_remove_view is deprecated and should not be used in newly-written code.

Removes view view from the list of mdi_child's views and unrefs it.

mdi_child :

A pointer to a MateMDIChild object.

view :

View to be removed.

mate_mdi_child_set_name ()

void                mate_mdi_child_set_name            (MateMDIChild *mdi_child,
                                                         const gchar *name);

Warning

mate_mdi_child_set_name is deprecated and should not be used in newly-written code.

Changes name of mdi_child to name. name is duplicated and stored in mdi_child. If mdi_child has already been added to MateMDI, it also takes care of updating it.

mdi_child :

A pointer to a MateMDIChild object.

name :

String containing the new name for the child.

mate_mdi_child_set_menu_template ()

void                mate_mdi_child_set_menu_template   (MateMDIChild *mdi_child,
                                                         MateUIInfo *menu_tmpl);

Warning

mate_mdi_child_set_menu_template is deprecated and should not be used in newly-written code.

Sets the template for menus that are added and removed when differrent children get activated. This way, each child can modify the MDI menubar to suit its needs. If no template is set, the create_menus virtual function will be used for creating these menus (it has to return a GList of menu items). If no such function is specified, the menubar will be unchanged by MDI children.

mdi_child :

A pointer to a MateMDIChild object.

menu_tmpl :

A MateUIInfo array describing the child specific menus.